lsatenstein
14th April 2003, 18:58
In a program script we have several alloc.mem() function calls to obtain memory from the heap. The question I have is:

Is the heap memory returned when the program script/session exits and there is no mem.free() call for the allocated memory.

Is the allocated memory only free when the user logs out from Baan?

If it is the latter, then there are several standard 4c4 sessions that expect the user to log out after using the session. If it is the former, then we are OK.

Any clarification for this would be appreciated. Just to mention, that I always code and call the mem.free() for every alloc.mem().

Les.

NPRao
14th April 2003, 20:10
Leslie,

I am not sure how it works in your BaaN Version.

You can explore more by using the environment variables-

-r : show resources
-dbgsrdduse : show srdd usage
-dbgmem : show all memory statistics (see below)
-dbgmemtot : show total memory usage
-dbgmemblk : show memory usage per block
-dbgmemfree : show free memory list
-dbgmemused : show used memory list


I couldnt find the function mem.free() do you mean free.mem() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_memory_operations_free_mem) ?

lsatenstein
15th April 2003, 02:50
Subject line says it all.