zanza67
12th August 2010, 12:29
Hi Everyone

i' customized the proforma invoice session tdsls4435m000 on baan4 in a multicurrency company
when i run the session i got the following error message


Fatal Error: Illegal value for size argument(0) for sym ‘’
Fatal Error: Can not continue in rtdsls4435010002 (<25>) [alloc.mem]

going in debug i realize that this error pops up when it call the command brp.close

function itccom0010:
for i = 1 to itccom0010.max.report
for n = itccom0010.min.lang to itccom0010.max.lang
if itccom0010.report_opened(i,n) then
brp.close(itccom0010.report_id(i,n))
endif
if i = 1 and report.number = -3 and



did you see a kind of error like this?

thank you

Z.

george7a
12th August 2010, 14:36
Can you post the whole code?

mark_h
12th August 2010, 15:29
Geroge is right post all the code. Have you validated itccom0010.report_id(i,n) has the correct report id?

zanza67
12th August 2010, 23:50
Geroge is write post all the code. Have you validated itccom0010.report_id(i,n) has the correct report id?


yes, the itccom0010.report_id(i,n) has the correct report id

mark_h
13th August 2010, 15:34
Have you debugged the report to make there is not something in it? Next post all of the code as George recommended.

zanza67
13th August 2010, 18:47
Have you debugged the report to make there is not something in it? Next post all of the code as George recommended.

nothing strange

posting the code means post the function itccom0010 because i get an error when that function is called to close the report

the only strange thing i notice is that in our internal server i have 2 report opened in 2 languages 2,6 and in the customer server i have just one report opened in language 2, i don't know if this help

regards

let me know if you want posted the function itccom0010

mark_h
13th August 2010, 19:17
Now I got you - I typically do no use itccom010. Which one is getting the error? The one with 2 reports or the one with 1 report. Post the parts of the code calling the routines in tccom010.

zanza67
13th August 2010, 21:29
Hi Mark

the piece of code that produce error is the code posted on top of the thread


for i = 1 to itccom0010.max.report
for n = itccom0010.min.lang to itccom0010.max.lang
if itccom0010.report_opened(i,n) then
brp.close(itccom0010.report_id(i,n))
endif
if i = 1 and report.number = -3 and

this array itccom0010.report_id(i,n)
contains 2 elements on my internal server that are the id of the two reports
in the customer server contain just one entry

that's all

i agree that is very strange situation
i can add that customer server has the multicurrency while my internal server has not
but i imagine this is not the problem

mark_h
13th August 2010, 23:00
Which server is getting the error? Internal or customer. Next I wanted the code that calls itccom010 routines. So you have a session that has itccom010 as an include file. What is that code. It sounds like one of the two servers (which everone is getting the error) is creating something wrong when it calls the itccom010 routines.

zanza67
14th August 2010, 14:10
Hi Mark

thanks for your help
i found the error

it was not on brp.close, i put on debug the report script and i found out that in function itdsls0006 there is a function that alloc.mem with 0 size.
that code is due to MCR0 that is multicurrency, so next step is to find why the size is 0

thanks again

zanza67