we have an application which works heavily with pointer, storage allocation etc.
Since year we are searching for a pointer error, which results from an error logged within the joblog (MCH0601):
Space offset x'00000000' or x'0000800155C875D0 is outside the current limit for object DIRWEB QTMHHTTP 418670. ... the space class is 07.
In most of the places (RPG and C) storage is allocated with the c-function malloc, but in a few procedures the RPG built-in-function %ALLOC is used. It seams the problem occurs under some conditions as soon as the RPG built-in-function %ALLOC is executed. (Storage is calculated correctly and the RPG-built-in-function does not crash either!)
Someone else has any experiences with allocating storage with malloc and %ALLOC within the same application?
Or any other idea?