[TRNSYS-users] Include a new type

David BRADLEY d.bradley at tess-inc.com
Mon Mar 4 08:16:03 PST 2013


Josef,
   One (rather minor) note first: you don't need to copy the source code 
over; once you have compiled a DLL, the source code is irrelevant.

   For the problem loading the DLL, there are any number of possible 
causes. Please have your colleague make sure that they are creating a 
"release mode" DLL (this is a setting in the compiler. If you are using 
the IVF compiler, go to the Configuration Manager and set the 
configuration of the project to "release" instead of "debug"). When you 
run the project on your computer, the *.lst and *.log files should 
contain a notice telling you whether external DLLs are being loaded from 
the ..\Trnsys17\UserLib\DebugDLLs or the ..\Trnsys17\UserLib\ReleaseDLLs 
directory. Please verify that they are being loaded on both machines 
from the \ReleaseDLLs\ directory. If making sure that this is all 
correct still doesn't work then it would help me a lot if you could send 
me the DLL, the source code, and the proforma so that I can give it a 
try on my computer and determine the cause of the issue.
Best,
  David


On 3/4/2013 02:18, Lipp, Josef wrote:
>
> Dear TRNSYS Users,
>
> a colleague of mine established a new TRNSYS type (Type 201). And it 
> runs on his laptop.
>
> When I tried to copy and run this new type on my computer I get a 
> TRNSYS message: "type201.dll was found but did not contain any 
> components from the input file".
>
> This leads do an error and TRNSYS message 105: "A type was called in 
> the TRNSYS input file but was either not linked into trndll.dll or was 
> not found in an external dll. A dummy subroutine was called in its 
> place. Please link the TYPE or remove it from the input file
>
> Reported information: Type 201 could not be located in either the 
> trndll.dll or in external dll. Please relink the TRNDLL.dll including 
> this Type or make sure than an external DLL in the ]UserLib\DebugDLLs 
> and \UserLib\ReleaseDLLs folders contain the Type."
>
> I copied the file Type201.for into C:\Trnsys17\SourceCode\Types
>
> and I copied the .tmf file to C:\Trnsys17\Studio\Proformas
>
> and I copied the Type201.dll into the DebugDlls and Release Dlls folder
>
> Thank you for help,
>
> Josef
>
> ___________________________________________
>
> Dipl.-Ing. Josef Lipp
>
> Lehrstuhl für Energiewirtschaft und Anwendungstechnik
>
> Technische Universität München
>
> Arcisstr. 21
>
> 80333 München
>
> Tel.: 089-289-28316
>
> Fax: 089-289-28313
>
> Mail: josef.lipp at tum.de
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20130304/1017afa0/attachment-0001.htm>


More information about the TRNSYS-users mailing list