Hi,
I have a quite simple application that is having some random locks up.
It's just a few text fields that the user fill it up, 3 sets of Radio buttons, one of them with flags to chose the language and click the PDF button.
The application uses iTextsharp to load a PDf template, insert the text into it, depending on the language loads some extra text from a .xml file, and depending on the radio button removes the images from the PDF, closes the pdfstamper and uses
to open the file with whatever PDF application the user have installed and closes itself.
Sounds simple, but after the application is installed in the machine (never in debugging mode) it randomly locks up the application.
I tried re-publish the application commenting out the Start(filename) line and the thing stopped locking. And I double checked it, re-publish with the line again and it locked after just a few attempts.
Any ideas??
=======
Edit:
carry on testing this, this one is just to check if the iTextSharp is interfering with the Start in anyway, I completely comment out the whole pdf processing, what the application do OnClick of the button is:
and the installed application still locks up.
any ideas?
I have a quite simple application that is having some random locks up.
It's just a few text fields that the user fill it up, 3 sets of Radio buttons, one of them with flags to chose the language and click the PDF button.
The application uses iTextsharp to load a PDf template, insert the text into it, depending on the language loads some extra text from a .xml file, and depending on the radio button removes the images from the PDF, closes the pdfstamper and uses
VB.NET:
Start(FileName) ' Opens the file with default application
Me.Cursor = Cursors.Default
Me.Close()
Sounds simple, but after the application is installed in the machine (never in debugging mode) it randomly locks up the application.
I tried re-publish the application commenting out the Start(filename) line and the thing stopped locking. And I double checked it, re-publish with the line again and it locked after just a few attempts.
Any ideas??
=======
Edit:
carry on testing this, this one is just to check if the iTextSharp is interfering with the Start in anyway, I completely comment out the whole pdf processing, what the application do OnClick of the button is:
VB.NET:
Dim DataLogo As Boolean = Static15.Checked
Dim DataOnly As Boolean = Static16.Checked
Dim LogoOnly As Boolean = Static17.Checked
Dim FileName As String = Application.StartupPath & "\Labels.pdf"
Me.Cursor = Cursors.WaitCursor
Try
Start(FileName) ' Opens the file with default application
Catch ex As Exception
Debug.Print(ex.Message)
End Try
Me.Cursor = Cursors.Default
Me.Close()
and the installed application still locks up.
any ideas?
Last edited: