![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

>From: "Carl A. Helber" <cahelber_at_uswest.net>
>
>I'm converting a MIDI player program that I wrote many years ago using
>a version of F-83. The songs data are all in a directory that is different
>from the working directory. (I'm using block files and have most everything
>working but MARKER. Using this word with a name does remove the words from
>the point of insertion but the editor no longer works after that invocation.
>I work around this by simply exiting SwiftForth and starting over. Anybody
>else have this problem?) The main question for this note is how do I use <CD>
>in a colon definition. With F-83 I had access to some lower level directory
>words which allowed me to do the job. I haven't been able to figure out how
>to do this in SF. No problem changing directories using <CD> as a direct
>input and using PUSHPATH and POPPATH for manuevering but this is not
>satisfactory
>for my program.
Carl,
The operative word is an API call to SetCurrentDirectory, which
accepts a single zstring paramter. For instance
z" c:\foo\bar\my\stuff" SetCurrentDirectory drop
Rick
.
>From mail_at_forthcad.com Fri Dec 3 16:14:44 1999
To: sftalk_at_forth.com
Message-Id: <m0000637_at_gerd.forthinc.com>
Date: Fri, 3 Dec 1999 16:14:44 +0100
From: "Melice" <mail_at_forthcad.com>
Subject: Help about a (subtle) error ?
I'm working on a long program. Since several weeks, I noticed that from
time to time, the program crash just when exiting.
The error msg is always similar:
"The instruction at '0x77aa446f' referenced memory at '0x0000030'.
The memory could not be 'read'".
I have checked (as so as possible) the stack and memory usage near the exit
point: All seems to be OK...
....
Finally, I have today found a sure scenario to reproduce this crash:
With SF1.5 + Notepad or TextPad...
1. in the editor, open any SOURCE.F of THIS program, don't modify the text!
2. in SwiftForth, include the main source-file, execute main program word.
3. in the editor modify any text.
4. quit the program.
Scenari to ALWAYS crash on program exit:
1 2 3 4
2 1 4
But the following NEVER crash:
1 2 4
1 3 2 4
Is there one explanation, or is it an electro-static side-effect ?
Charles Melice
.
Received on Wed Dec 01 1999 - 15:28:42 PST
This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:26 PST