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@csiro.au [mailto:Daniel.Kiehlmann@csiro.au] 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 |