FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour EXCEPTION_ACCESS_VIOLATION - The printer is installed?
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
EXCEPTION_ACCESS_VIOLATION - The printer is installed?
Posted: Mon Jan 06, 2014 12:11 PM

Some thing can be done in the printer and report classes to avoid this error?

Description of error:. GPFHANDLER Alert/0EXCEPTION_ACCESS_VIOLATION - The printer is installed? : GPFHANDLER

args:
      [1] C = EXCEPTION_ACCESS_VIOLATION - The printer is installed? (Attempted to read/write where you do not have access)

Thanks.

Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: EXCEPTION_ACCESS_VIOLATION - The printer is installed?
Posted: Tue Jan 07, 2014 10:59 AM

Oscar,

Are you using the standard FWH error system or do you use a modified one ?

Do you get an error.log ? If so, please post it here, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
Re: EXCEPTION_ACCESS_VIOLATION - The printer is installed?
Posted: Tue Jan 07, 2014 11:39 AM
Linares, I use a modified error routine.

I noticed that when I use the command "PRINT...PREVIEW" it detects the lack of printers and the error appears only when I do not do the preview.

I resolved with the following command before printing.
Code (fw): Select all Collapse
   If !IsPrinter()
      MsgStop("Não encontrei nenhuma impressora instalada no seu MS-Windows ou não está ligada!" + CRLF + CRLF + ;
              "É necessário ter pelo menos uma impressora configurada no MS-Windows para visualizar ou imprimir relatórios no sistema.",;
              "(OASyS) Relatórios - ATENÇÃO: Verifique a impressora.")
      Return (.F.)
   EndIf


Thanks
Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: EXCEPTION_ACCESS_VIOLATION - The printer is installed?
Posted: Wed Jan 08, 2014 02:47 PM

very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion