LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

General Protection Fault caused by CVI ToolTip

Hi folks,
 
When I quit my application in debug mode, I always get a General Protection Fault when the application's panel is discarded. After some research, I found out that the problem is caused by using the SetCtrlToolTip functions from the Programmer's Toolbox. When I put toolbox.c in my project, the debugger gives the GPF in the UnchainPanelCallback  function, which is called by SharedTipPanel_Dispose. The debugger stops at line 10528 of the toolbox.c file, which contains this code:
 
 while (!found && currLink && currLink->signature == CALLBACK_LINK_SIGNATURE)
 
Strange thing is that I use these ToolTips in all my applications, and this is the first time I experience this problem...
 
Anyone has a clue?
0 Kudos
Message 1 of 4
(4,371 Views)
OK, I solved the problem. All I had to do was initializing the panel's callback data to NULL. Actually I persumed that this is already set to NULL when no callbackdata has been specified...
0 Kudos
Message 2 of 4
(4,333 Views)
Could you please tell me how you "initialize the panel's callback data to NULL"?
0 Kudos
Message 3 of 4
(4,325 Views)

Here you go:

SetPanelAttribute (pnlHandle, ATTR_CALLBACK_DATA, NULL);

Message 4 of 4
(4,323 Views)