Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!csd4.milw.wisc.edu!lll-winken!xanth!nic.MR.NET!srcsip!manyjars!mnkonar From: mnkonar@manyjars.SRC.Honeywell.COM (Murat N. Konar) Newsgroups: comp.sys.mac.programmer Subject: GetRsrc strange in LSP Message-ID: <24302@srcsip.UUCP> Date: 21 Jun 89 16:53:54 GMT Sender: news@src.honeywell.COM Reply-To: mnkonar@src.honeywell.com (Murat N. Konar) Distribution: na Organization: ipd Lines: 24 I'm having trouble with a WDEF I'm writing in LSP. The problem is that I'm trynig to do a GetResource whenever I enter the WDEF. It works fine for all WDEF messages except wHit. Then GetResource returns a nil handle but resError = noErr. (!) I suspect this is the LSP environment at work since it seems to work okay when compiled to an application and run from the finder. I know that you cannot have the debug flag set for units called by the WDEF so this is not my problem. I'm trying to work around this by storing a handle to my resource in the dataHandle of a windowRecord during the wInit message, but this is a suboptimal solution. Any help is very much appreciated. ____________________________________________________________________ Have a day. :^| Murat N. Konar Honeywell Systems & Research Center, Camden, MN mnkonar@SRC.honeywell.com (internet) {umn-cs,ems,bthpyd}!srcsip!mnkonar(UUCP)