[comp.sys.mac.programmer] Problem writing 4D externals

d83_sven_a@tekno.chalmers.se (SVEN AXELSSON) (10/12/89)

I'm working on an external procedure for 4D that will put up a SFGetFile box,
let the user select a file and then return some information about that file.
In it I call in various ways PBGetFInfo, PBGetWDInfo and PBGetCatInfo.
As long as the selected file is on the default volume, everything is just fine
but if I select from another volume, 4D crashes with an address error some
time after returning fron the external. I can understand if 4D is very picky
about someone changing the current volume and/or working directory from
under it so I wonder if any of the above routines do this as an (un)documented
feature. However, bracketing the code with GetVol - SetVol doesn't help.
Anyone got an idea on what's going on?

+-------------------------+--------------------------------+------------------+
|   Sven Axelsson         |  d83_sven_a@tekno.chalmers.se  |  DISCLAIMER:     |
|   dep:t of Linguistics  |          (^^ best ^^)          |                  |
|   univ. of Gothenburg   |        dlv_sa@hum.gu.se        |  This is not     |
|   SWEDEN                |      usdsa@seguc21.bitnet      |  a disclaimer.   |
+-------------------------+--------------------------------+------------------+