<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>LiaoGang,</p>
<p> Yes, you can link to the IMSL library. You may have to add some
additional library files to the CVF project that you use to
compile your Type so that you can have access to those functions.</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 11/29/2017 03:28, 廖刚 via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:33cb7cb6.8160.160071aceca.Coremail.liaogang@csu.edu.cn"> David<br>
I 'm sorry for reply you so late,It has been a long time for me to
understand how to debug in CVF,Now I finally found out the "access
violation" maybe caused by calling IMSL Library(I use it to solve
a non-linear equation set),My question is whether it is ok to call
IMSL library in user made component?<br>
<br>
best<br>
<br>
LiaoGang<br>
<br>
<blockquote name="replyContent" class="ReferenceQuote"
style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px
solid;margin-right:0">-----原始邮件-----<br>
<b>发件人:</b><span id="rc_from">"廖刚 via TRNSYS-users"
<a class="moz-txt-link-rfc2396E" href="mailto:trnsys-users@lists.onebuilding.org"><trnsys-users@lists.onebuilding.org></a></span><br>
<b>发送时间:</b><span id="rc_senttime">2017-11-03 16:21:21 (星期五)</span><br>
<b>收件人:</b> "David BRADLEY" <a class="moz-txt-link-rfc2396E" href="mailto:d.bradley@tess-inc.com"><d.bradley@tess-inc.com></a><br>
<b>抄送:</b> "廖刚" <a class="moz-txt-link-rfc2396E" href="mailto:liaogang@csu.edu.cn"><liaogang@csu.edu.cn></a>, "TRNSYS users
mailing list at OneBuilding.org"
<a class="moz-txt-link-rfc2396E" href="mailto:trnsys-users@lists.onebuilding.org"><trnsys-users@lists.onebuilding.org></a><br>
<b>主题:</b> Re: [TRNSYS-users] Access violation<br>
<br>
David<br>
Thanks for your early reply,I add my component to the TRNDll
project and I run it in debug model. but it still can not work
after I chosen the dck file ,<br>
crashed with the information" First-chance exception in
TRNExe.exe (TYPE207.DLL): 0xC0000005: Access Violation"<br>
Regards,<br>
LiaoGang
<p>At2017-10-31 22:20:36,廖刚<a href="mailto:163912048@csu.edu.cn"
target="_blank" moz-do-not-send="true">163912048@csu.edu.cn</a>wrote:</p>
<blockquote name="replyContent" style="padding-left: 1ex;margin:
0 0 0 0.8ex;border-left: 1px solid #ccc;">
<div>
<p>An access violation is a very generic error that can be
caused by many different problems. <br>
</p>
<p>You may get a little more information about the cause of
the error if you go into the component control cards in
Simulation Studio and turn on "debug mode." This will
cause your simulation to run a bit more slowly but will
perform some additional checks that may lead you to a
solution. <br>
</p>
<p>If that does not work then there should be a CVF66
compiler workspace already set up in the
..\Trnsys16\Compilers\ directory that will allow you to
recompile the TRNDll itself. I would recommend that you
add your component to the TRNDll project then run your
simulation from the compiler (instead of from the Studio).
This will allow you to step one line at a time through the
code in your component and see where the access violation
is taking place. There are some instructions on how to do
this located in the 08-ProgrammersGuide manual.</p>
<p>Lastly, please be aware that Trnsys16 was replaced by v17
in 2009 and by v18 earlier this year. Official support for
older versions continues for a year after the release of a
new version. After that time the distributors try to
provide help on earlier versions when they are able and
have some spare time to do so.<br>
</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 10/30/2017 03:10, 廖刚 via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:39714ce0.63b0.15f6c554854.Coremail.liaogang@csu.edu.cn">
<pre>Dear TRNSYS user,
I'm trying to create a new component for a solar cooling system.I have installed the CVF6.6 compiler and TRNSYS16.
my component model code was compiled without error and the type201.dll was successfully generated,but when I trying to run it
in the trnsys studio,I got an error "Access violation at address 08E63E0F in module'Type201.dll'.Read of address 00000002 ".
<i> Any help or hints greatly appreciated.
Regards.
LiaoGang
</i></pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org" target="_blank" moz-do-not-send="true">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" target="_blank" moz-do-not-send="true">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
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
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com" target="_blank" moz-do-not-send="true">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com" target="_blank" moz-do-not-send="true">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com" target="_blank" moz-do-not-send="true">http://www.trnsys.com</a></pre>
</div>
</blockquote>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***************************
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
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</body>
</html>