We've created a new ActiveX that wraps GDPicturePro4 and GDTwain and runs from the web in IE6 and IE7. It works fine in Windows XP, but causes IE to crash in Windows Vista.
We removed all code except for a few lines in UserControl_Initialize, and IE 7 still crashes in Vista immediately after the "Before TwainGetDefaultSourceName" msgbox. This same code woks in IE 7 on XP.
Code: Select all
Private Sub UserControl_Initialize()
MsgBox "Initialize Start"
Dim gdpStorage As New GdPicturePro4.Imaging
'Populate Scanners and select the default scanner in the combobox
MsgBox "new PicturePro4.Imaging object created"
Dim k As Integer
Dim sDefaultSourceName As String
Dim iDefaultSourceIndex As Integer
MsgBox "Before TwainGetDefaultSourceName"
sDefaultSourceName = gdpStorage.TwainGetDefaultSourceName
MsgBox "After TwainGetDefaultSourceName"
For k = 1 To gdpStorage.TwainGetSourceCount
If gdpStorage.TwainGetSourceName(k) = sDefaultSourceName Then
iDefaultSourceIndex = k
End If
cboTwainSource.AddItem gdpStorage.TwainGetSourceName(k)
Next
cboTwainSource.ListIndex = iDefaultSourceIndex - 1
End Sub
Problem Event Name: APPCRASH
Application Name: IEXPLORE.EXE
Application Version 7.0.6000.16512
Application Timestamp: 46807103
Fault Module Name: StackHash_fb02
Fault Module Version: 6.0.600.16386
Fault Module Timestamp: 4549bdc9
Exception Code: c0000374
Exception Offset: 00af1c9
OS Version: 6.0.6000.2.0.0.256.6
LocaleID: 1033
Additional Information 1: fb02
Additional Information 2: 3f067cdca693a03658e5e9dd975c9819
Additional Information 3: 7c16
Additional Information 4: 84f6856277dbaddc796ffab03ea91af3
Any help you could give us in resolving the issue is appreciated!
Matt