Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ukma!psuvax1!atlantis.psu.edu!psuecl!d1d From: d1d@ecl.psu.edu Newsgroups: comp.sys.mac.programmer Subject: CDEF in THINK C and global variables Message-ID: <1991Jun19.111751.1388@ecl.psu.edu> Date: 19 Jun 91 15:17:50 GMT Organization: Engineering Computer Lab, Pennsylvania State University Lines: 11 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.