1. Memory sharing

Well, it seems to work great thus far...made a small program to allocate
100 bytes of memory and I allowed for input of a string.  The program
then poked this string into memory at the allocated position.  I then
had it pass the address and number of  bytes to a file, and ended the
program with wait_key (so program would not end, will have something
better later ;}!).  I then created another program that read  the memory
location and number of bytes from the created file, and peeked at that
location with the info, and WALA!! It displayed the string I inputted.
This was done under win95, so it should work for any multitasker (which
will be the target for a multinode bbs).  This blows away the manner in
which bbs doors are presently made to be multi-user.  Now I should be
able to put vital info into memory and quickly read it so that things
happen almost instantaneously (chatting, and the ability to see other
players as they pass through the same room as another).

This was alot easier than using pointers.

Oh, and David Cuny, if you read this, Euphoria will deallocate memory
when the program that allocated ends (I tried to be sure).

Can lock_memory() be used to lock these instances, or should it only be
used for interrupts?

Thanks!!
Kevin

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu