NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Api Window7

Solved!
Go to solution

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 1 of 5
(3,528 Views)

Hi ,

 

just realized that the crash is only on Windows7 64bit

the 32bit versions were not affected.

 

Regards

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 5
(3,526 Views)
Solution
Accepted by topic author j_dodek

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.

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 5
(3,515 Views)

Hi

 

10 years wow 🙂

could  you please provide some information about the "bug" with the debugger in function

0 Kudos
Message 4 of 5
(3,497 Views)

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 5
(3,472 Views)