maggrietjie
3rd January 2002, 08:18
Can someone please fill me in on what causes the error; bis_alloc_mem, i = 0? I am doing a custimization involving arrays.

NPRao
3rd January 2002, 09:06
Hi,

can you check if your array variable is declared as based and if you have allocated memory or not in your program script.

patvdv
4th January 2002, 16:38
This may be related (from the May 2001 PAR):

Solution #114416: Incomplete domains caused Create Runtime Datadictionary to generate an error

Version(s): B40_b, B40_c, B50_b, 7.1_a

Issue: When incomplete domains (domains defined as enum, but without enum constants) were present, the dumping of domains (for exemple by session Create Runtime Data Dictionary) resulted in error messages like "Fatal error: bis_alloc_mem: sym, i=0".

maggrietjie
7th January 2002, 12:26
Thanks for your reply. My variables are declared as based and I am allocating memory in my script. Could it be that I am using two different arrays in one program? If this is the case would it work if I free the memory from the first array after I've used it? Any suggestions on when I should free it? I do not think the solution proposed are relevant to this case, but thanks anyways.

patvdv
7th January 2002, 12:31
Hi Maggrietjie,

I know the solution in itself is probably not relevant but I thought the issue description might give you some indication:

When incomplete domains (domains defined as enum, but without enum constants) were present...
However as you are confirming that your array declarations are correct, the root cause of your problem must be something else.

Sorry I can't be of more help!

Frans C
9th January 2002, 01:56
Hallo Maggrietjie!

The problem was, that the application did not abort when the error occurred - it continued running. So, debugging was a bit more difficult.

I found the error when doing an alloc.mem on a string - where the length variable was 0. The alloc.mem then creates this message, the program continues - and you could get (or even not get) an abort later on.

Maybe that is your problem too?

Take care
Frans