I was testing gdpictures in a WPF project to list the scanners and could not get past the form load.
I keep getting the error below
"An unhandled exception of type 'System.StackOverflowException' occurred in PresentationFramework.dll"
Code: Select all
Private Sub Main_Loaded(sender As Object, e As System.Windows.RoutedEventArgs) Handles Me.Loaded
Dim gdp As New GdPicture.GdPictureImaging
gdp.SetLicenseNumberUpgrade(xxxx,xxxx)
For i As Integer = 1 To gdp.TwainGetSourceCount(IntPtr.Zero)
ListBox1.Items.Add(gdp.TwainGetSourceName(IntPtr.Zero, i))
Next
gdp.Dispose()
gdp = Nothing
End Sub
Also tried
Private Sub Main_Loaded(sender As Object, e As System.Windows.RoutedEventArgs) Handles Me.Loaded
Dim gdp As New GdPicture.GdPictureImaging
gdp.SetLicenseNumberUpgrade(xxxx,xxxx)
For i As Integer = 1 To gdp.TwainGetSourceCount(IntPtr.Zero)
Next
gdp.Dispose()
gdp = Nothing
End Sub
Can gdpictures work in WPF?
Has anyone had the same problem?
Thanks
PQSI