Loading...

Twain on Vista

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

Twain on Vista

Postby mattw » Fri Oct 05, 2007 6:46 pm

Loïc,

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


If it helps, the Vista IE Crash contains the following info:

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
mattw
 
Posts: 4
Joined: Mon Oct 01, 2007 6:32 pm

Postby Loïc » Fri Oct 05, 2007 7:30 pm

Hi Matt,

What is the programing language you are using ??


Could you try to use:

Code: Select all
Dim gdpStorage As Object
Set gdpStorage = CreateObject("gdpicturepro4.imaging")


instead:

Code: Select all
Dim gdpStorage As New GdPicturePro4.Imaging


Else, could you send be by mail the binary or the sources of the activex you build in order to make tests ?

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby mattw » Tue Oct 16, 2007 8:01 pm

I'm using vb6, and making your suggested change did not stop the error in Vista. I've tried sending the project to you through gmail but it looks like it's not getting through. How do you want me to send the project?
mattw
 
Posts: 4
Joined: Mon Oct 01, 2007 6:32 pm

Postby Loïc » Wed Oct 17, 2007 11:29 am

HI matt.

Please send me your project file to esupport (at) gdpicture (dot) com.


Regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Postby Loïc » Mon Oct 22, 2007 2:51 pm

Hi matt.

This problem has been solved within the last release.

You can update your GdTwain edition: http://www.gdpicture.com/download.php

Regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Thanks!

Postby mattw » Thu Nov 01, 2007 11:29 pm

Excellent, Loïc! Thanks for your great products and support!
mattw
 
Posts: 4
Joined: Mon Oct 01, 2007 6:32 pm

Postby Loïc » Fri Nov 02, 2007 5:40 pm

Matt, thanks for your feedback !

Regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron