Re: Memory

new topic     » goto parent     » topic index » view thread      » older message » newer message

>   Could someone tell me if there is a way to set aside memory in one
>Euphoria program, use it for certain perposes, quit the program and
>return to Dos. Then load another Euphoria program and be able to use hte
>exact same memory area without the fear of the contents being overwrote
>be another prevously run program?

I previously experimented with memory passing between two Euphoria programs
during the design of "A Beginner's Guide To Euphoria", with little success.
You could find an area not used by the program through experimentation, but
you risk annoying the hell out of EMM386 if you do.

I suggest two approaches that I currently use now:

1) Write the password data to a temp file, use the system() command to
attrib +h it so it is invisible, exit program, run the second program
to receive the data by reading the temp file, and then have the second
program IMMEDIATELY erase the temp file. A variation of this is to make a
RAM disk and write the data there in the RAM disk.

2) Store the data in an environment variable, exit program, run the
second program to receive the data by reading the environment variable and
then have the second program set the environment variable to blanks. This is
a more preferable way because if you forget to reset the variable, it gets
done so on the next reboot and does not risk leaving confidential data on
your hard drive in the form of a forgotten temp file.

Hope this helps

David Gay
http://www.interlog.com/~moggie/euphoria.htm

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu