twain / twain-dsm

TWAIN Data Source Manager
140 stars 55 forks source link

Error Connecting To scanner #2

Open NunoRodrigues15 opened 7 years ago

NunoRodrigues15 commented 7 years ago

I’m trying to build an app based on Twain.dll and i’m getting this error “Unhandled exception at 0x077F0C90 (HPScanUI.dll) in Twack_32.exe: 0xC0000005: Access violation reading location 0x00000004”.

To emulate my error you could download the twacker-32 from. Select a source that is not connected to your PC. Click File>Select Source… “Choose one that is not connected to your PC” Open the Source Manager. Click Special>1 Load/Open SM. Try to open the source. Click Special>2 Open Source. After a while it gives the error saying the source is not connected. Expected. Close the source manager. Click Special>Close/Unload SM. Now let’s try to open another source(has to be a different one), one that is connected to the PC. Select the diferent source. Click File>Select Source… “Choose one that is connected to the PC”. Open the Source Manager. Click Special>1 Load/Open SM. Try to open the source. Click Special>2 Open Source. This is where i get my error. In the case of the twacker-32 the app breaks, you can debug it in the Visual Studio. And Here it is my error, You can se a print scren of it here.

Can anyone help me?