<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Mehdi,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thank you for your prompt response.  The correct type number is used in the proforma window.  The Type number is uniform throughout the Fortran code.  I am using Intel Visual Fortran 2011 XE.  I have a written a number of components that work successfully, I cannot understand what the problem is here.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>-Aaron<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Mehdi Shahrestani [mailto:mahdishahrestani@yahoo.com] <br><b>Sent:</b> Tuesday, July 12, 2011 4:20 PM<br><b>To:</b> 'Aaron J. Danenberg'; trnsys-users@cae.wisc.edu<br><b>Subject:</b> RE: [TRNSYS-users] TRNSYS ERROR (dll loaded but not found)<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'>Aaron <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'>Check the following items.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'>1-Make sure that the type number mentioned in the main windows of proforma is correct (in this case 203) <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'>2- If you copy and modified any exiting code as a new code, make sure in main code (FORTRAN or …) the previous type number is changed to the new number (this case 203)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'>3- Make sure dll compiling is performed in release mode (if you using CVF ) <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'>Hope these solve your problem <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'>Mehdi<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-size:12.0pt;font-family:"Arial","sans-serif";color:blue'><o:p> </o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> trnsys-users-bounces@cae.wisc.edu [mailto:trnsys-users-bounces@cae.wisc.edu] <b>On Behalf Of </b>Aaron J. Danenberg<br><b>Sent:</b> 12 July 2011 21:10<br><b>To:</b> trnsys-users@cae.wisc.edu<br><b>Subject:</b> [TRNSYS-users] TRNSYS ERROR (dll loaded but not found)</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal>I have encountered an error when trying to run a simulation with a user written component.  The list file indicates the Type has been loaded, then later states that the type cannot be found.  See error received below.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>*** Notice at time        :         0.000000<o:p></o:p></p><p class=MsoNormal>    Generated by Unit     : Not applicable or not available<o:p></o:p></p><p class=MsoNormal>    Generated by Type     : Not applicable or not available<o:p></o:p></p><p class=MsoNormal>    Message               : "Type203.dll" was found but did not contain any components from the input file.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>There is a Type 203 in the simulation, and then when it is called, it cannot be found.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>*** Fatal Error at time   :         0.000000<o:p></o:p></p><p class=MsoNormal>    Generated by Unit     :     2<o:p></o:p></p><p class=MsoNormal>    Generated by Type     :   203<o:p></o:p></p><p class=MsoNormal>    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<o:p></o:p></p><p class=MsoNormal>    Reported information  : Not available<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The performa uses Type number 203, the dll was written with Type203 on the first line of the code.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>SUBROUTINE</span></b><span style='font-size:10.0pt;font-family:"Courier New"'> TYPE203 (TIME,XIN,OUT,T,DTDT,PAR,INFO,ICNTRL,*)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>The dll i stored in the "Release Folder" in the User Lib.  Any ideas on how this is happening?</span><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Aaron J. Danenberg<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Graduate Research Assistant<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Candidate for Master of Mechanical Engineering, September 2011<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>University of Hartford<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>Dana Hall 103, Research Laboratory 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>200 Bloomfield Ave.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>West Hartford, CT 06117<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'>M: 203 - 610 - 2509<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>