GPF in C function
Publicado: Lun May 12, 2008 12:23 pm
Hi all!
I have C function in my code:
XA_FUNC ( PRNDT ){
int l1, l2, .. ;
char * buf1, * buf 2, .. ;
OutDebug("debug");
....
}
When I call this function from .prg, the program crashes with GPF. The first
line after variables declaration is OutDebug("debug").
The program crashes before this line. I tried to reduce variables amount
(with code reducing) and then function is called without GPF.
It seems that the program crashes because a lot of variables.
Maybe someone knows how to solve this? Maybe to increase stack size or
something else?
Regards, Oleg
I have C function in my code:
XA_FUNC ( PRNDT ){
int l1, l2, .. ;
char * buf1, * buf 2, .. ;
OutDebug("debug");
....
}
When I call this function from .prg, the program crashes with GPF. The first
line after variables declaration is OutDebug("debug").
The program crashes before this line. I tried to reduce variables amount
(with code reducing) and then function is called without GPF.
It seems that the program crashes because a lot of variables.
Maybe someone knows how to solve this? Maybe to increase stack size or
something else?
Regards, Oleg