Page 1 of 1

Function to generate a GPF error at runtime

Posted: Mon Jul 31, 2006 8:14 am
by Marco Turco
Hi,
Is there any function to generate a GPF error in xHarbour/FWH ?

I already took a look at xHarbour XDN and I have found the forcegpf() function but it is provided into an "application.prg" file that I have not found into the xHarbour source.

Thanks in advance.

Best Regards,

Marco Turco

Posted: Mon Jul 31, 2006 11:38 am
by Antonio Linares
Marco,

You may review samples\TestGpf.prg

Posted: Mon Jul 31, 2006 2:29 pm
by Marco Turco
Yes. Runs fine. Thanks Antonio.

Best Regards,

Marco

Posted: Mon Jul 31, 2006 4:26 pm
by RAMESHBABU
Hi

Out of academic interest I want to know that what is the need to force generation of GPF Error in an application ?

Thanks in advance

- Ramesh Babu P

Posted: Mon Jul 31, 2006 5:57 pm
by Antonio Linares
Ramesh,

Basically is to check if the application properly controls it when it happens.

The Harbour/xHarbour builds that we provide have GPF control, so you can see at least the callslist stack to help you locate where the GPF comes from.