[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 1234567[8]910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 17:58:02 04/10/01 Tue
Author: Michel
Subject: Re: Access Violation in Kernel32.dll
In reply to: Larry Hengen 's message, "Access Violation in Kernel32.dll" on 16:00:31 04/10/01 Tue

Hi Larry,

Do you get you scanner to scan successfully with an application that comes with your scanner?

There is a user of Envision though that did find an issue:

So after MUCH debugging, here is what I found....

1. While technically the bug is not in your code, the fix Must involve your code. In fact I was able to fix the
problem with only minor modifications to your code (I am a registered owner of the source).
2. The real problem is the way Borland implemented their trunc function and that external programs (DLL's
such as Twain drivers) often cause floating point exceptions that aren't caught until a Delphi application calls
3. The details are rather difficult to explain in e-mail, but look at the following links....
<a rel=nofollow target=_blank href="http://groups.google.com/groups?q=trunc&hl=en&lr=&safe=off&site=groups">http://groups.google.com/groups?q=trunc&hl=en&lr=&safe=off&site=groups</a>

Just search for "trunc" on any Borland developer site and you will see what I mean.

I have not yet replaced all trunc calls. From what I understand, all trunc calls in an application need to be replaced by:

function SafeTrunc (X: Extended): Int64;
result := trunc (x);
result := trunc (x);
raise Exception.Create ('Error in SafeTrunc !');

Best regards,


>I downloaded the demo application, and unfortunately I
>get the same error I have experienced with all TWAIN
>implementations I've tried. I can select the scanner,
>but when I try to scan an image I get an Access
>violation in KERNEL32.DLL.
>I am using a Mustek 1200CU (USB scanner) under Windows
>2000 Professional with Service Pack 1. I have the
>latest software from Mustek. Any ideas?

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.