[TRNSYS-users] Access violation

David BRADLEY d.bradley at tess-inc.com
Fri Nov 3 12:21:27 PDT 2017


LiaoGang

   Are you able to put a breakpoint at the beginning of the Type207 code 
and have the simulation stop there?

kind regards,

  David



On 11/03/2017 03:21, 廖刚 wrote:
>   David
> 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 ,
> crashed with the information" First-chance exception in TRNExe.exe 
> (TYPE207.DLL): 0xC0000005: Access Violation"
>  Regards,
>  LiaoGang
>
> At2017-10-31 22:20:36,廖刚163912048 at csu.edu.cn 
> <mailto:163912048 at csu.edu.cn>wrote:
>
>     An access violation is a very generic error that can be caused by
>     many different problems.
>
>     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.
>
>     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.
>
>     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.
>
>     kind regards,
>
>      David
>
>
>
>     On 10/30/2017 03:10, 廖刚 via TRNSYS-users wrote:
>>     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 ".
>>
>>     /Any help or hints greatly appreciated. Regards. LiaoGang /
>>
>>
>>     _______________________________________________
>>     TRNSYS-users mailing list
>>     TRNSYS-users at lists.onebuilding.org
>>     http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
>
>     -- 
>     ***************************
>     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
>

-- 
***************************
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/20171103/d73bd67b/attachment.html>


More information about the TRNSYS-users mailing list