rjd@zaphod.cs.brown.edu (Rob Demillo) (03/10/89)
Well, I just installed the new version of Laser C and the C Source Debugger. I think I have encountered a horrific error, but I would like to check with you folks, first. I make a call to rsrc_load() and give it the *complete* path of the location of the resource file. When I run the program, the drive A light comes on (weird enough as it is, considering the resource file is on the hard disk), and the program gets a 68000 exception error. When I return to the desktop, *all* occurrances of my resource file *wherever they exist on the hard disk* are gone. In addition, any file that begins with the filename prefix that my resource file had are gone also. For instance, in my working directory, I had: FRED.RSC FRED.H (the include for the resource) FRED.C (the C version of the RSC) In a subdirectory, I duplicated these files for backup purposes. My program gets to rsrc_load("d:\workshop\fred.rsc"); I get the exception error, and when I come back, all files that match FRED.* are gone from the hard disk. Now, either I've hit some strange combination of code that does a seek and destroy mission on the FAT, or I've been sipping too much herbal tea while debugging. Anyone out there encounter anything remotely like this? - Rob DeMillo | UUCP: ...ima!brunix!brnpsg!demillo Brown University | BITnet: DEMILLO%BRNPSG.SPAN@STAR.STANFORD.EDU Planetary Science Group | Reality: 401-863-3769 "I say your the Messiah, Lord! And I ought to know, I've followed a few!"
champagn@hpspkla.HP.COM (Robert R. Champagne) (03/17/89)
/ hpspkla:comp.sys.atari.st / rjd@zaphod.cs.brown.edu (Rob Demillo) / 6:20 am Mar 10, 1989 / [... stuff deleted...] rsrc_load("d:\workshop\fred.rsc"); [...more stuff deleted...] Hmmm... this may not be the cause of your problem, but the fact that the ST uses the "\" character in path-names has always created problems for me-- escpecially when coding in C (what else would you use? :-) The above line SHOULD be: rsrc_load ("d:\\workshop\\fred.rsc"); (I assume that your message was verbatim from the actual code)