Página 1 de 1

GPF in C function

Publicado: Lun May 12, 2008 12:23 pm
por Oleg
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

GPF in C function

Publicado: Lun May 12, 2008 12:46 pm
por jfgimenez
Oleg,
> OutDebug("debug");
OutputDebugString( "debug" );
or
OutDebug( "debug", NULL );
The function OutDebug takes a variable number of arguments, but the last
argument has to be a NULL.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

GPF in C function

Publicado: Lun May 12, 2008 12:46 pm
por jfgimenez
Oleg,
> OutDebug("debug");
OutputDebugString( "debug" );
or
OutDebug( "debug", NULL );
The function OutDebug takes a variable number of arguments, but the last
argument has to be a NULL.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

GPF in C function

Publicado: Lun May 12, 2008 1:00 pm
por Oleg
Jose!
Thanks for quick answer and clarification of OutDebug using.
I solved my problem.
Regards, Oleg.

GPF in C function

Publicado: Lun May 12, 2008 1:00 pm
por Oleg
Jose!
Thanks for quick answer and clarification of OutDebug using.
I solved my problem.
Regards, Oleg.