NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

error -17502 relating to DisplayPanel()

HI,

I'm using TS3.0/CVI7.0 on Win2000.

I get the above error when I'm not in a debug mode. In debug mode the program is "stuck".

I load few panels into memory during the Setup portion of the Sequence and discard them during the Cleanup.

I keep the panels handles as globals and use them throughout my program (in the main sequense as well as sub sequences).

I get this problem with one particular panel.

Any reasoning to that?
0 Kudos
Message 1 of 7
(3,751 Views)
Rafi -
The TestStand error -17502 is TS_Err_OS_Exception which suggests that the CVI DLL is executing some code that is causing an access violation or some other type of exception. TestStand catches this unexpected exception and tries to recover by just displaying a run-time error for the step. You will have to review your code and possibly trace the code to try to figure out where the exception is being thrown. I believe that CVI 7.0 can trap exceptions. If you debug the TestStand application using CVI and debug your DLL, does CVI display a message box saying that an exception occurred? Does the debug output window of CVI show any exception information?

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 7
(3,751 Views)
Hi Scott

When the problem happens, I don't receive any message the program (in debug mode) is "freezed". I don't even see the SystemException message. The only way to see it is if I change the adapter configuration to run in a non-debug mode. Then I can see a widnow stating this error and the number -17502.

As I said...it happens when the CVI in doing DisplayPanel(panelHandle3), where panelHandle3 is one of 3 panels placed in the same filename.uir. The panels are identical in size and coordinates so that when I display one of them, it covers the others.

Appriciate any idea....

Thanks
Rafi
0 Kudos
Message 3 of 7
(3,751 Views)
Rafi -
Do you think that it is possible to simplify the code to not use hardware and third party components and still reproduce the problem so that you could post the sequence, dll and source so that we could try it?

Otherwise, you need to figure out what type of exception the DisplayPanel is throwing and try to figure out what is causing the problem.

Questions:
1) Does the display panel ever return, i.e. is the a return code?

2) Do you have Microsoft Visual Studio 6? A possibility would be to see if you can see the exception type in MSVC, and you could also create the CVI DLL using MSVC but use the CVI libraries to see if the error is more debuggable.

3) Do any of your panels have activeX controls on them?

Scott Richardson
(NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 7
(3,751 Views)
Thanks Scott

1) Displya never return!

2) I don't have MSVC

3) No activeX, just text, leds etc.. very simple panel

I don't think I can post my sequence. It's quite a big application now. Anyway, I switched everthing to one panel and I'm playing now with hide/visible stuff.

If you have any more suggestions, however, I'll be happy to hear them and check them out

Thanks
Rafi
0 Kudos
Message 5 of 7
(3,751 Views)
Rafi -
Without being able to step thru and into the CVI code, I do not think that I can help too much more. Clearly the CVI code is throwing some sort of access violation but I could not venture a guess other than the panel handle not being valid. If you get a new symptoms that might lead you further in the debug, let us know.

Scott Richardson (NI)
Scott Richardson
https://testeract.com
0 Kudos
Message 6 of 7
(3,751 Views)
Hi guys,
I didn't notice this one on here - I've posted a reply on the cvi thread ->

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000028D30000&USEARCHCONTEXT_CATEGORY_0=_318_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_318_&UCATEGORY_S=0

Hope this helps
Thanks
Sacha Emery
National Instruments (UK)

// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 7 of 7
(3,751 Views)