XForms: c++ : Works - but - corrupted type variables ?

Matthew Flax (flatmax@cse.unsw.EDU.AU)
Fri, 1 Aug 1997 21:57:29 +1000 (EST)

To subscribers of the xforms list from Matthew Flax <flatmax@cse.unsw.EDU.AU> :

Hi,

I've got a form working now in c++, also the callbacks register and work
well, all operations on xforms objects work as expected, however the class
variables are corrupt.
For example if I open a file descriptor (fd) and then start the form it
seems to corrupt the fd value
i.e. : if I have an open fd -
int drive;
then before the callback (during initialisation) -
cout << drive << endl;
returns 84.
But if I try to look during a callback then -
cout << me->drive << endl;
will return an incorrect number - say 14 !!

It is note that 'cout' calls work as expected, so -
cout << "Hello" << endl;
will print out Hello !

The class with the fd is a base class of the callback class :
i.e. callbackClass : baseClass {};

Also any classes declared in the base class becom corrupt when looking
at them from the call back.

any help appreciated ...
Matt

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/