1. Re: memory location

David said:
>An option would be simply to have the first program grab a chunk of
>memory, and write the address out to a file. As programs come up, they
>would look for the file. If none existed, *they* would grab a chunk, and
>create the file. That way, the code should be portable. You probably
>want to allocate low memory though - otherwise, some smart memory
>manager might decide that you were in the wrong place and give a page
>fault.
>
>-- David Cuny

Thanks David,
    It is amazing.  I didn't know it was as easy as:

--get a chunk of low memmory
mem_set_loc = allocate_low(100)
if mem_set_loc = 0 then
 puts(1,"can't get low memmory")
 abort(1)
end if

Then at the end I freed it with:

free_low(mem_set_loc)
puts(1,"memory succesfully freed")

I have never used these routines before.  Now for the fun part, reading it
from the Windows program.
Monty

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu