Path: utzoo!utgpu!attcan!uunet!mcvax!unido!laura!trillian.irb!klute From: klute%trillian.irb@unido.uucp (Rainer Klute) Newsgroups: comp.sys.atari.st Subject: Re: Resource / fsel_input() problem Message-ID: <826@laura.UUCP> Date: 6 Jan 89 11:00:02 GMT References: <908@philmds.UUCP> Sender: root@laura.UUCP Reply-To: klute%trillian.irb@unido.UUCP (Rainer Klute) Organization: Universitaet Dortmund Lines: 24 In article <908@philmds.UUCP> leo@philmds.UUCP (Leo de Wit) writes: >Using the resource functions (notably rsrc_load(), rsrc_gaddr(), >rsrc_free()) I can load resources that, for instance, contain object >trees like forms and menus. Nice. > >Using fsel_input() I have a standard way for the user to search and >specify a pathname (directory and filename). Also nice. > >But trying to use both in the same program failed; when an fsel_input() >was done after a rsrc_load() the resource tree contained garbage. >It looks as if fsel_input() uses the rsrc_load() function itself, and >since a program can only have one resource file loaded at a time (am I >correct ?), it put its own resource on top of mine. I'm quite surprised to hear about such a behavior of your program. I use the same sequence (rsrc_load, fsel_input) over and over again in my programs and *never* encountered such a bug. I guess it is a bug in your own code. Rainer Klute ---- klute@irb.informatik.uni-dortmund.de Universitaet Dortmund, IRB |)|/ klute@unido.uucp, klute@unido.bitnet Postfach 500500 |\|\ ...uunet!mcvax!unido!klute D-4600 Dortmund 50 ---- Tel.: +49 231 7554663