[TRNSYS-users] Error 412
David Bradley
bradley at tess-inc.com
Mon Nov 9 11:38:31 PST 2009
Robin,
There are two likely causes...
1. check and make sure that the following lines are in your code:
!export this subroutine for its use in external DLLs.
!DEC$ATTRIBUTES DLLEXPORT :: TYPE198
2. if your TRNDll.dll is compiled in debug mode (instead of release
mode) then it will be looking for external DLLs in the
..\Trnsys16\UserLib\DebugDLLs\ directory (instead of the ..\ReleaseDLLs\
directory). If you look a the other DLLs that the *.lst file mentions
that it found and loaded, you should be able to tell which folder the
TRNDll is looking in.
Kind regards,
David
Robin Sluzalek wrote:
> hello trnsys-users,
>
> i added a new component to trnsys:
> i chose the type number 198
> there is a dll in the releasedlls folder "type198.dll".
> the component i created is located in the folder "studio/proforma/user-name/type198.tmf" with all its parameters/outputs/inputs,its type number of course and its "sourcecodefile" - and the sourcecode is located in "sourcecode/types/type198.tmf"
>
> now i receive this error:
>
> *** Fatal Error at time : 0.000000
> Generated by Unit : 3
> Generated by Type : 198
> TRNSYS Message 412 : A TRNSYS Type subroutine was called where the version information was not provided - or not provided correctly. Please check the formulation of the specified TYPE, rebuild the dynamic link library and re-run the simulation
> Reported information : Error 412
>
>
>
> I can't find anything about it on the web. I already tried compiling and rebuilding over and over again. I even chose a new type number and created a new component to re-do everything...
>
> can you help me please
>
> Best regards,
> Robin
>
>
--
***********************************************************************
Thermal Energy System Specialists (TESS), LLC
David BRADLEY 22 N. Carroll Street - Suite 370
Partner Madison, WI 53703
USA
P: +1.608.274.2577
F: +1.608.278.1475
E-mail: bradley at tess-inc.com
Web Pages: http://www.tess-inc.com and http://www.trnsys.com
***********************************************************************
More information about the TRNSYS-users
mailing list