Function to generate a GPF error at runtime

Function to generate a GPF error at runtime

Postby Marco Turco » Mon Jul 31, 2006 8:14 am

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
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Antonio Linares » Mon Jul 31, 2006 11:38 am

Marco,

You may review samples\TestGpf.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marco Turco » Mon Jul 31, 2006 2:29 pm

Yes. Runs fine. Thanks Antonio.

Best Regards,

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

Postby RAMESHBABU » Mon Jul 31, 2006 4:26 pm

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
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Antonio Linares » Mon Jul 31, 2006 5:57 pm

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google Feedfetcher and 66 guests