Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!think.com!yale!quasi-eli!cs.yale.edu!cs.yale.edu!pittenger-laurence From: pittenger-laurence@cs.yale.edu (Laurence Arthur Pittenger) Newsgroups: comp.sys.mac.programmer Subject: Objects and code resources (C+- trouble: HELP!) Message-ID: <1991Jun13.003440.1942@cs.yale.edu> Date: 13 Jun 91 00:34:40 GMT References: <1991Jun12.152533.5748@terminator.cc.umich.edu> Sender: news@cs.yale.edu (Usenet News) Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 22 Originator: pitteng@tiger.CS.Yale.Edu Nntp-Posting-Host: tiger.zoo.cs.yale.edu 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