02-16-2012 08:03 AM
Hi,
Actally i develop my stuff under XP. Everything is working fine.
The were some maschines running under Windows7. The maschines are crashing in custom user interface created with .net
while executing models GetReportBody_CImplementation of modelsupport2.dll (old deriavte shipped with TS2.0 rebuilt with CVI8.5)
I would like to setup a CVI 2010 Debug environment but this fails because no TS-CVI-AP fp are installed on the machine.
If you try to open the TS-shipped Cvi UI-Project. CVI says that "Program Files(x86)\National Instruments\Shared\CVI\instr\TestStand\API\xxx.fp"
are not present. I have a german Window7 that comes with "Programmme(x86)\National.... but there is no xxx.fp file left.
I tried to find it somewhere on the hole drive without success.
--> How i get the CVI TS api installed on a german maschine ?
Another couriousity i reallized, running a model's sequnce with shipped "Simple UI" in .net and cvi it is crashing, too.
if you try it in "Full Featured" or with the Editor, it is running well.
Regards
Juergen
Solved! Go to Solution.
02-16-2012 08:30 AM
02-17-2012 06:14 AM
Hi,
Just turned off the brain and did not asked anything why is it running on this maschine and not on the otherone.
Forget the upper questions, it is nonsense. I got the .fp from the TestStandxxx\API\CVI like i was uesd from C/C++.
I got the bug with the debugger in function "RecursiveSubProperties" of module "c_report.c"
it was crashing when calling CA_FreeMemory(display).
This is really funny, because it was working for more than 10!! years now and only one maschine was crashing or
as the old saying goes:"Everybody here puts his pants on the same way as you"
Have nice day
Juergen
P.S. If you are not able find the bug please feel free to answer.
02-20-2012 10:06 AM
Hi
10 years wow 🙂
could you please provide some information about the "bug" with the debugger in function
02-23-2012 12:57 AM - edited 02-23-2012 01:01 AM
Hi
In RecursiveSubProperties there is a pointer char *display = NULL;
Normally this will point to memory ActiveX allocated with:
errChk(TS_PropertyGetFormattedValue (propObject, &errorInfo,"", TS_PropOption_DecimalPoint_UsePreference,"", VFALSE, "", &display));
But if the PropertyObject is a container or array it points to "internal" memory
display = "...";
At the end of the code there is release of ActiveX memory
CA_FreeMemory(display);
And here it was crashing if the pointer was not allocated by ActiveX
At the moment just one Windows7 maschine was affected
All other maschines with XP and Windows7 (and over there years there were 98,NT,2000) doesnt care about it
And now after fixing it, it is running on all maschines
Regards
Juergen