In my project I have an easytab control with three panels. I setup a callback function and the callbackData for the controls on the easytab panels. In this condition I receive a General Protection Error when clicking either on a panel or on a control on the panels. Look at the project attached to see the behaviour of the program.
The callbackData passed to the controls is the ID of a control in the main panel. The basic idea is that when the user modifies a control's value, the callback function associated with the control turns on the 'toSave' radio button: that way I can easily know if a control has been modified and warn the operator if he tries to exit the panel without saving datas.
This mec
hanism works well when all controls are on the same panels, but gives me the error when grouping controls on easytab panels.
If I comment all the SetCtrlAttribute (panel, control, ATTR_CALLBACK_DATA, (void *)Impo_toSave); statements, all works well.
How can I fix this?
Also, in the reduced project attached I get the GPF error on the DiscardPanel at the end of the program.
I'm using CVI 5.5.1 on Windows 98se.
Roberto