Re: At wits end
At 09:15 PM 3/24/99 -0500, you wrote:
>Are you sure you are locking all necessary allocated memory
>
>so that it will not be swapped out to disk ? You may be trying to use
>
>something that has been swapped out to disk.
>
hello
No, I'm allocating it, but if you are refering to using "lock_memory" that
appears to for the DOS32 platform. The only time it seems to be necessary
to allocate memory is when I retrieve the command line parameters. And the
code is as follows.
>atom array_ad, array_len
>sequence free_stuff
>free_stuff = {}
>----------------------------------------------------------------------------
>procedure handle_comm_line()
>atom string
>integer len
>sequence cmd
>cmd = command_line()
>cmd = cmd[2..length(cmd)] -- actually wants the name of the program
>len = length(cmd)
>array_ad = allocate ((len)*4)
>free_stuff= append(free_stuff,array_ad) -- so I free it later
>for i = 1 to len do
> string = allocate_string(cmd[i])
> free_stuff = append(free_stuff,string)
> poke (string,cmd[i])
> poke (array_ad+((i-1)*4), int_to_bytes(string))
>end for
>array_len = allocate(4)
>free_stuff = append(free_stuff,array_len)
>poke (array_len, int_to_bytes(len))
>end procedure
>----------------------------------------------------------------------------
>handle_comm_line()
>----------------------------------------------------------------------------
Like I've said before this is a very mysterious problem.
One other thing that I forgot to mention that you will need is Euphoria
2.1, since
it uses multiple callbacks.
Thanks
Paul Martin
|
Not Categorized, Please Help
|
|