Path: utzoo!attcan!uunet!husc6!cmcl2!phri!ccnysci!alexis From: alexis@ccnysci.UUCP (Alexis Rosen) Newsgroups: comp.sys.mac.programmer Subject: Bug in resource handling in LSP 2.0 Message-ID: <1112@ccnysci.UUCP> Date: 3 Jan 89 03:33:14 GMT Reply-To: alexis@ccnysci.UUCP (Alexis Rosen) Organization: City College of New York Lines: 22 I got Think Pascal 2.0 over a month ago, and it looked very nice. It is, overall, a great improvement over LSP 1.11, except- it doesn't work! I had heard several people complain about bugs, but I was very disappointed to find one on the very first program I tried. 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. Truth-in-bitching: I'm not being fair. Mostly, LSP 2.0 seems to be a damn good product. Saying LSP "doesn't work" is a tremendous overstatement... but I'm tremendously ticked off right now so screw it. Alexis Rosen alexis@ccnysci.uucp