[comp.sys.mac.programmer] Objects and code resources

pittenger-laurence@cs.yale.edu (Laurence Arthur Pittenger) (06/13/91)

I'm trying to pass a handle to an object to a code resource, defined
and compiled in Think C 4.0.  I can access the resource fine -- a
Debugger() command correctly interrupts execution and shows that the
resource is being executed.  Furthermore, I've used the standared
"stub resource" trick and so executed my code as a "simulated" cdef.
However, when actually compiled as a code resource, the code crashes
at the first attempt to use the objects method.

Is this because the object was defined external to the resource?  I
lock it before call-time.

Please email me any suggestions, as I'm kinda stuck if I can't get
around this.

thanks,
LP

-- 

Laurence A. Pittenger
CSNET  : pittenger-laurence@cs.yale.edu
BITNET : pitlaua@yalevm ,  pittenger-laurence@yalecs