Home › Forums › TWAIN Classic › Umax MagicScan32 problem
- This topic has 2 replies, 2 voices, and was last updated 14 years ago by polo.
- AuthorPosts
Hello friends.
At first i must say this forum is realy great, i have spent some time reading here when i was extending NetMasters Twain code.
I have done some testing on Kodak i40 simulation twain driver (also the twain32 sample source). Everything was working fine, so i created a libraray and start testing on first real scanner i came a cross (an older UMAX scanner).
I encourted problem, when i scan image and try to convert it from IntPtr to .net native Bitmap type the aplication crashes. This is only happening with Umax MagicScan32 v 4.3. When i installed Kodak twain driver on the mashine, everythin worked fine.
I assume that there is a problem in converting DIB handle to .Net Bitmap structure. Becouse when i commented this code, application doesnt crash.
Also .NetMasters original aplication works fine.
Have anybody encountered similar problem?
Thanks p.
do any other sample projects crash? If you run the sample TWAIN2 application on SourceForge does it crash?
https://sourceforge.net/projects/twain-samples/
.
Hi Gabe,
thanks for reply.Today i found the problem, and as usual it was problem in the code.
the buffer i was reading bitmap header from was not locked. On my devel mashine was wverything working fine maybe becouse of muchmore memory on the mashine?. On testing mashine problem showed up, but only with MagicScan datasource. That was strange.
Other programs such as Twacker or NetMasters demo were working fine.
have a good time.
p.- AuthorPosts