02-06-2007 07:18 AM
02-07-2007 10:05 AM
02-08-2007 03:25 AM
Hello,
The most part of mistakes that I have encountered are due to a code, that has been badly developed from our side, that in certain situations will carry out some non valid operations that cause the a.m. crash problems.
In this case (it never happened) instead is the function National "SetActivePanel()" that blocks itself without giving any error reply as stand out from the Dr. Watson log.
int CVICALLBACK newpanel_callback (int panel, int control, int event, void *callbackData, int eventData1, int eventData2)
{
switch (event)
{
case EVENT_COMMIT:
case EVENT_GOT_FOCUS:
.............................
.............................
some other code..............
creation of other windows...
.............................
.............................
// re-activation of the original panel
es= SetActivePanel(panel); <------ "point of the crash".
if(es < 0)
{
Actual spy text "Error SetActivePanel() number : ", es);
}
}
}
02-09-2007 07:51 AM
I would suspect (but cannot know) that something you are doing is causing the panel handle stored in 'panel' to be invalid in some way. What exactly are you doing in:
some other code..............
creation of other windows...
?