[comp.sys.mac.programmer] CDEF in THINK C and global variables

d1d@ecl.psu.edu (06/19/91)

Writing CDEF's in THINK C...

I have had problems with global variables being declared in the code
segment that is going to be compiled as a CDEF. As soon as I add static
global variables, the button with the corresponding CDEF causes a crash
after being pressed a few times. In compiling the project, I have the
custom headers option on (otherwise nothing works.!?!*%^&?) Any insight
into using global variables for code resources and segments in THINK C
will be appreciated,
					thanks, Dimitris.