programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Append-File

From: Virgil Stamps <virgil_at_paclp.com>
Date: Wed, 7 Sep 2005 14:09:05 -0500

Maybe someone has experienced similar problems... I have been fighting =
this
for over a month.

I am using APPEND-FILE and infrequently get an IOR exception.

: WriteLog0 ( --)
    DailyFN ZCOUNT APPEND-FILE \ ( a u -- fid ior )
    IF DROP 0 Z" LOG APPEND-FILE" INVALID-FILE-OP
    ELSE ( fid) DUP TimeStamp ROT WRITE-FILE
         IF DROP 0 Z" LOG WRITE-FILE" INVALID-FILE-OP
         ELSE ( fid) CLOSE-FILE
               IF DROP 0 Z" LOG CLOSE-FILE" INVALID-FILE-OP
               THEN
         THEN
    THEN
;

DailyFN always has a valid file name. The fid and ior returned when this
happens is -199 =3D (Can't open file). Is there a problem of APPENDING a =
file
reported? Maybe something to do with using FORK ? Just phissing...

Problem part 2:
A 3rd party Watch-Dog program has made me aware of infrequent 1st chance
exception Access Violations. An example:
The instruction at 0x775F515FB referenced memory at 0x000001AD. The =
memory
could not be read.

I infrequently also get Second-chance exceptions which reports an =
attempt to
write to a memory location. This causes the program to abort.

Is there a way to utilize the address reported to reference offending =
FORTH
code? I try to trap everyway I know how and it never happens where I am
looking. I think it may be linked in with the file access problem simply
because it has the same sort of frequency.

Virgil Stamps
=A0 =20

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Sep 07 2005 - 12:11:16 PDT

This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 03:04:20 PST