Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!ll-xn!husc6!bbn!rochester!kodak!ektools!barrett From: barrett@ektools.UUCP (Chris Barrett) Newsgroups: comp.sys.amiga.tech Subject: Re: Calling DOS from AmigaBasic - what'm'i doing wrong? Summary: I think it's the same problem as above. Message-ID: <1242@ektools.UUCP> Date: 24 May 88 16:39:43 GMT References: <24844@bbn.COM> Organization: Eastman Kodak, Dept. 47, Rochester N.Y. Lines: 28 In article <24844@bbn.COM>, cosell@bbn.com (Bernie Cosell) writes: > GetIfile: > INPUT "File: ", ifile$ > ILock& = Lock&(SADD(ifile$), -2&) ' ACCESS_READ > IF ILock& = 0 THEN > PRINT "Can't find " ifile$ ", try again" > GOTO GetIfile > END IF > FileInfoBlock& = ArpAlloc&(260&) > Examine& (ILock&, FileInfoBlock&) > UnLock& (ILock&) > > What happens is that the @#$%@ thing stops at the "Examine" call with Illegal > system call or some error like that. I've looked and ILock& and FileInfoBlock& I think you have the same problem here also. Try this: filename$ = ifile$ + CHR$(0) ILock& = Lock&(SADD(filename$), -2&) . . . Let me know if this works. Chris. ...rochester!kodak!ektools!barrett