[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] TRNSYS17 rebuilding and external dll problem



Dear Matt and David,

 

Thank you for your nice advices. As David had mentioned, the simplest way of copying Type344.dll (provided release mode) into \DebugDLLs directory worked pretty well!

 

Best regards,

Mika

 

 

From: David BRADLEY [mailto:d.bradley@tess-inc.com]
Sent: Wednesday, March 09, 2011 4:50 AM
To: Yoshinaga Mika
Cc: trnsys-users@cae.wisc.edu
Subject: Re: [TRNSYS-users] TRNSYS17 rebuilding and external dll problem

 

Dear Mika,
  A DLL can be compiled in either "debug" or "release" modes. I think what happened is that your original TRNDll.dll and the Type344.dll that you got from Transsolar are both "release mode" dlls. A release mode TRNDll looks for external DLLs in the ..\Trnsys17\UserLib\
ReleaseDLLs\ directory. When you recompiled TRNDll.dll, however, it recompiled in "debug mode" (this is a compiler configuration setting) so the new TRNDll.dll is now looking for Type344.dll in the ..\Trnsys17\UserLib\DebugDLLs\ directory and there likely isn't a Type344.dll in there. If Type344 does not use any data files then it is pretty safe to just move a copy of Type344.dll into the ..\DebugDLLs\ directory. If it does use data files then you will need to obtain a Type344.dll that is compiled in debug mode instead of release mode.
Kind regards,
 David


On 3/8/2011 01:14, Yoshinaga Mika wrote:

Dear all,
 
I'm facing a difficult problem. A non-standard-type.dll (Type344 from TRNSSOLAR) can't be worked on Simulation Studio after rebuilding TRNDll.dll by CVF6.6b. 
Before rebuilding, Type344 had run successfully. Then I just have opened \TRNSYS17\Compilers\Cvf66\Cvf66.dsw by CVF6.6b and Selected "Build->Rebuild All" and rebuild have done without any error.
After rebuilding, all projects using standard types and non-standard TESS Types could simulate well but a project file including Type344 was ended with the following error message.
 
-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  :  Type344 could not be located in either the trndll.dll or in an external dll. Please relink theTRNDll.dll including this Type or make sure that an external DLL in the \UserLib\DebugDLLs and \UserLib\ReleaseDLLs folders contain the Type.
 
Type344.dll is surely placed in \Trnsys17\UserLib\ReleaseDLLs!! TRNSYS17 has been upgraded to the latest version just to be safe. 
 
I was wondering if you could give me a few tips to clear it up. Thank you in advance.
 
Best regards,
Mika
 
Mika Yoshinaga
Meijo university, Japan
 
 
 
 
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@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@tess-inc.com
 
http://www.tess-inc.com
http://www.trnsys.com