Page 1 of 1

GDI32 error webservice call

Posted: Thu Apr 19, 2012 8:42 am
by wimk
Faulting application name: gui.exe, version: 8.2.0.1394, time stamp: 0x4f550800
Faulting module name: GDI32.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdb38
Exception code: 0xc0000005
Fault offset: 0x00015cc0
Faulting process id: 0x1a04
Faulting application start time: 0x01cd1df67d2d9c39
Faulting application path: C:\Program Files\Bullzip\PDF Printer\gui.exe
Faulting module path: C:\Windows\syswow64\GDI32.dll
Report Id: bada2811-89e9-11e1-a9e9-005056b303e4

Hi all,
i get this error if I let a WebService make a PDF document.

does anybody recognize this and has a solution ???

thanks in advance


a bit of source: VB.net

oPdf.SetValue("Output", tcDoelFileName)
'------------------------------------------
oPdf.SetValue("ConfirmOverwrite", "no")
oPdf.SetValue("Format", "PDF")
oPdf.SetValue("RememberLastFileName", "no")
oPdf.SetValue("RememberLastFolderName", "no")
oPdf.SetValue("ShowSaveAs", "never")
oPdf.SetValue("Showsettings", "never")
oPdf.SetValue("ShowProgress", "no")
oPdf.SetValue("ShowProgress", "no")
oPdf.SetValue("ShowProgressFinished", "no")
oPdf.SetValue("SuppressErrors", "Yes")

Try
'----------------
pd.PrintController = New StandardPrintController
'----------------
Dim lEncod As System.Text.Encoding
lEncod = System.Text.Encoding.Default
streamToPrint = New StreamReader(tcFileToConvert, lEncod)
printFont = New Font("Courier New", 10) 'MONOSpace font!
'--------------------
pd.DefaultPageSettings.Margins.Left = 5
pd.DefaultPageSettings.Margins.Right = 5
pd.DefaultPageSettings.Margins.Top = 5
pd.DefaultPageSettings.Margins.Bottom = 5
'----------------------------------
AddHandler pd.PrintPage, AddressOf Me.pd_PrintPage
pd.Print()
RemoveHandler pd.PrintPage, AddressOf Me.pd_PrintPage
Catch ex As Exception
Me.SetErrorInfo(ErrorCodes.CreateDocument, ex)
iRetValue = -1
Finally
streamToPrint.Close()
End Try