[TRNSYS-users] DYNAMICDATA function in C++

keilholz, werner werner.keilholz at cstb.fr
Tue Apr 20 01:27:21 PDT 2010


Hi Daniel, 

 

It it hard to tell without looking @ some code, but I would bet on some argument type mismatch, or array size mismatch (your arrays must match the constants in TrnsysConstants.f90). 

The TRNSYS kernel functions mainly want arguments passed by reference, like in 

int a; doit(&a);

 

Set a breakpoint on the line that calls the function , F5 in DevStudio, navigate to Trnsys.exe, point to the deck to run, inspect the variables when the breakpoint is hit. F11 will basically debug into the TRNDll by using the debug version (you need to recompile TRNDll with a Fortran compiler). 

 

Hope that helps (a little),

 

Werner 

 

De : Daniel.Kiehlmann at csiro.au [mailto:Daniel.Kiehlmann at csiro.au] 
Envoyé : mardi 20 avril 2010 05:20
À : TRNSYS-users at engr.wisc.edu
Objet : [TRNSYS-users] DYNAMICDATA function in C++

 

Dear all,

 

I'm trying to create a new component in C++ with a dynamicdata function.

 

It works when I build the solution in C++, but pulls out following error when I run this component in TRNSYS:

 

"Access violation at address 100048CC in module 'TRNDLL.DLL'. Read of address 00000002"

 

Does anyone has some experience in using the dynamicdata function in C+ and can help me out?

 

 

Thanks very much in advance

 

Daniel Kiehlmann

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20100420/af13301a/attachment-0001.htm>


More information about the TRNSYS-users mailing list