Function to generate a GPF error at runtime

Post Reply
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Function to generate a GPF error at runtime

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marco,

You may review samples\TestGpf.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Post by Marco Turco »

Yes. Runs fine. Thanks Antonio.

Best Regards,

Marco
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply