🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #31761

Re: rsrc_load and drop-down menus

#31761
From: Bill Rosenkranz
Date: Thu, 07 Apr 1988 07:20
37 lines
2187 bytes

-------------

In article <8804041901.AA28913@ucbvax.Berkeley.EDU> 0ALEVI@POMONA.BITNET writes:
	[ question about getting rcs w/o dev kit (???) (i have dev kit... ]
->
->     2) I tried doing an dummy=rsrc_load(filn);
->            where filn points to the string "logo.rsc" terminated by 2
->            zero bytes.  (I should only need one I think, but I put 2
->            just to make sure) Dummy ends up being 0 after the call,
->            indicating (according to the ABACUS GEM programming
->            reference guide) that an error occured.
->            I guessed that there is some problem in opening the
->            file because the error occured during the first and only
->            buzz of the disk drive.(I believe the first buzz is always
->            a directory check for opening files)  I checked to make
->            sure that I had in fact placed the logo.rsc file on the
->            disk that I had in drive A and I checked to make sure that
->            I spelled it right.  I don't know what to do now.  HELP!
->


i believe rsrc_load() does some Malloc'ing of its own. if you never do an
Mshrink to free up the space at startup, this might be your problem (alan
pratt's NEW gemstart.s does this and the "old" gemstart did it as well, as
i recall. you are obviously not using the dev kit so your compiler may differ)

0 DOES indicate an error (as it does in rsrc_gaddr), at least according to
"official" atari/(ibm)dri docs :^). also if you did a Dsetpath before the
load, this might cause the file to not be found.

other than that, you might make sure "filn" really contains what you think
it should prior to load. don't be insulted, i've done far stupider things
myself before :^).

-bill
Technical Details
Message-ID: <1544@alliant.Alliant.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!linus!alliant!rosenkra
References: <8804041901.AA28913@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!linus!alliant!rosenkra
From: rosenkra@Alliant.COM (Bill Rosenkranz)
Newsgroups: comp.sys.atari.st
Subject: Re: rsrc_load and drop-down menus
Message-ID: <1544@alliant.Alliant.COM>
Date: 7 Apr 88 07:20:28 GMT
References: <8804041901.AA28913@ucbvax.Berkeley.EDU>
Reply-To: rosenkra@alliant.UUCP (Bill Rosenkranz)
Organization: Alliant Computer Systems, Littleton, MA
Lines: 37