
HELP!!!, I AM SO NEW THAT
> Hi netters, I am new to CLIPPER programming and am using CLIPPER
> 5.01. I've written a simple database program with it and the program
> has been running for about 8 months. However, I have discovered that
> there is some _JUNKS_ files with random filename (e.g. ABCJGJSK)
> without extensions got generated in my application's directory.
> There is about 50 of them and more are generated everyday. Some of
> the files actually contained some junk informations in there whereas
> others are just plain empty (with 0 bytes in size). It also seems
> that the application will still work fine if I delete all such _JUNK_
> files, but the will be some generated the next day. Does anyone know
> what is happening? I am very despriate and REALLY REALLY need some
> help. If my post is confusing, let me know and I will e-mail you a
> more detail description.
Those files are temporary files created by your Clipper application
at runtime. They should be automatically deleted at the time the
program ends, however. If your program is terminating abnormally,
crashing or forcing you to reboot your machine before getting back to
the DOS prompt, that might account for it.
You can redirect the creation of temporary files to a RAM disk. This
improves performance, and prevents the files from staying around
should you have to reboot your machine. To do this, you can:
1) Put the TEMPPATH parameter on the command line when starting your
program, thus:
C> MYAPP //TEMPPATH:"D:\"
or
2) Put the TEMPPATH parameter in the CLIPPER environment variable,
thus:
SET CLIPPER=//TAPPATH:"D:\"
from your AUTOEXEC.BAT file.
Naturally, you can include the TEMPPATH setting with whatever other
Clipper runtime parameters (//F:xxx, etc.) you are already using.
The above examples assume a RAMdisk of D: but yours may be different,
just substitute the appropriate drive/path information inside the
quotes. Also, the path itself must be in quotes in the TAPPATH
parameter statement.
//Steve//
/=======================+=========================\
|Steve Silverwood *GEnie: S.SILVERWOOD |
|Computer Associates *CompuServe: 76703,3035 |
|300 Corporate Pointe *Voice: (310)348-4448|
|Second Floor *FAX: (310)348-4401|
|Culver City, CA 90230 *American Online: "KB6OJS"|
|-----------------------+-------------------------+
\=================================================/
* RM 1.0 B0021 * Live long enough to become a problem to your kids.
----
*--------------------------------------------------------------------------*
| The File Bank BBS - 619-728-4318 - PCBoard v.14.5a/E10 - USR HST & DS |
| 8 nodes / RIME / Internet / Largest Clipper file collection in the world |
*--------------------------------------------------------------------------*