Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!uxg.cso.uiuc.edu!uxe.cso.uiuc.edu!leonardr From: leonardr@uxe.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Re: Bug in resource handling in LSP 2.0 Message-ID: <226000041@uxe.cso.uiuc.edu> Date: 3 Jan 89 18:22:00 GMT References: <1112@ccnysci.UUCP> Lines: 32 Nf-ID: #R:ccnysci.UUCP:1112:uxe.cso.uiuc.edu:226000041:000:1876 Nf-From: uxe.cso.uiuc.edu!leonardr Jan 3 12:22:00 1989 alexis@ccnysci.UUCP(Alexis Rosen) wrotes in comp.sys.mac.programmer >The problem: When you want to create your own dialog templates for the >SFGetFile and SFPutFile routines, you can't. It always uses the DLOG >-4000 (and the other std. file resources) that it finds in the system >file, regardless of what you put in your resource file. If you call >SFPutFile with a custom DlgHook you will likely get a variety of bus >errors or other strange errors that will leave you scratching you head >for a while. You can even crash your Mac. Of course everything worked >properly in LSP 1.11 and everything works right when I run the compiled >app. So all I lose is my ability to debug the damn thing. > I hate to disagree with you Alexis, but I just did this the other day using LSP 2.0 and had NO problems!! If you could post your code, maybe we can find something there, but I did a SFPGetFile with my own custom filter and dlgHooks and it worked beautifully (it didn't work when I put it into MPW though, but that was MY fault!) One other thing to check, are you sure that you have the resource file with your SFdialog setup in teh Run Options dialog?? +---------------------------------+-----------------------------------+ + + Any thing I say may be taken as + + Leonard Rosenthol + fact, then again you might decide+ + President, LazerWare, inc. + that it really isn't, so you + + + never know, do you?? + + leonardr@uxe.cso.uiuc.edu + + + GEnie: MACgician + MacNET: MACgician + + Delphi: MACgician + AppleLink: D0025 + + + + +---------------------------------+-----------------------------------+