🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19887

Re: Trouble with OpenResFile("\pDeskTop");

#19887
From: Mike Carlton
Date: Tue, 06 Oct 1987 21:38
11 lines
1199 bytes
I was bitten once by a bug that may be causing your problem.  It seems
that OpenResFile does a _RecoverHandle on the string you pass it.  Of
course, if you pass an explicit string like "\pDesktop" there is no
handle!  My solution was to create a handle, copy the string to it
and pass the dereferenced handle.  Pretty ugly, but it worked.

However, the code always crashed on me and did not return an error so
it may not be your problem.

Good luck,
mike (carlton@ji.berkeley.edu or ...!ucbvax!ji!carlton)
Technical Details
Message-ID: <21172@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!sri-spam!ames!sdcsvax!ucbvax!ji.Berkeley.EDU!carlton
References: <4150@well.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!sri-spam!ames!sdcsvax!ucbvax!ji.Berkeley.EDU!carlton
From: carlton@ji.Berkeley.EDU (Mike Carlton)
Newsgroups: comp.sys.mac
Subject: Re: Trouble with OpenResFile("\pDeskTop");
Message-ID: <21172@ucbvax.BERKELEY.EDU>
Date: Tue, 6-Oct-87 17:38:10 EDT
Article-I.D.: ucbvax.21172
Posted: Tue Oct  6 17:38:10 1987
Date-Received: Fri, 9-Oct-87 22:46:42 EDT
References: <4150@well.UUCP>
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: carlton@ji.Berkeley.EDU.UUCP (Mike Carlton)
Organization: University of California, Berkeley
Lines: 11
Summary: Unexpected feature in _OpenResFile