Page 1 of 1

EVENT:ScanningOK firing twice and other issue

Posted: Wed Dec 19, 2012 7:55 pm
by dmjung
I'm trying to get my working scanning code migrated to version 4.1 (or maybe 5, its hard to tell.) I also just downloaded and installed the latest without any change in my problem.

What I'm observing is the EVENT:ScanningOK event appears to be getting fired twice for some reason--having a breakpoint in the debugger at this event gets me there twice during the scan process. Since I have code here to insert the scanned image into a database this breaks things. I can code around it, but something doesn't seem right--I only see one POST for this event in the generated procedure in the EVENT:ScanningJobDone, but there's a couple of places where that event can be fired so maybe that's where things are getting off-track.

I am also unable to turn off the preview after the scan--all options appear to be set correct, but I always get the scan PDF popping up. PDF Viewer Option = "None" in the procedure extension. In template generated code I see this: PDFIMG11.SetPreview(SW_NOVIEWER).

C6.3.9056, Legacy templates if it matters.

--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Dec 19, 2012 8:14 pm
by dmjung
Did some more following along in the debugger with stop points at various interesting places...

1. document scans

2. EVENT:ScanningOK code entered

3. My unwanted preview appears after this line: PDFXS11:rtn = PDFIMG11.Generate(PDFXSTWN11.RefImageDumpQueue, True, dFlipImage, 0, 0) ! Added by PDF-Tools Templates v4.1

4. EVENT:ScanningJobDone code entered and the last generated line is a POST(EVENT:ScanningOK) which gets executed and takes me back to the EVENT:ScanningOK again.

I don't see where the first EVENT:ScanningOK event is coming from.

I may have my code in the wrong place (PDF-Scanner after PDF Generation), but this was working in a prior version.

--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Dec 19, 2012 8:16 pm
by Tracker - Clarion Support
Hi David!

We've been noticing a few strange things using the Clarion interface to the PDF-Tools scanner, and I am investigating what's causing this now. You input is very helpful as that is a condition that really should not be occurring.

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Dec 19, 2012 10:54 pm
by Tracker - Clarion Support
Hi David!

Could you please tell me what version of Windows you are using and also whether it's 32 or 64 bit?

Thanks!

Re: EVENT:ScanningOK firing twice and other issue

Posted: Thu Dec 20, 2012 2:36 am
by Tracker - Clarion Support
Hi David!

Would you please email me your email address so I can add you to my Contacts group that I'm starting for Scanner rewrite.

Re: EVENT:ScanningOK firing twice and other issue

Posted: Thu Dec 20, 2012 2:25 pm
by dmjung
My test environment was WinXP Pro 32bit in VMWare Player.

Client sites are mostly WinXP Pro 32bit with a few Win7 32 and 64bit (all Pro that I'm aware of.)

--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Thu Dec 20, 2012 3:11 pm
by Tracker - Clarion Support
Hi David!

Got your email address, thanks! :)

Re: EVENT:ScanningOK firing twice and other issue

Posted: Fri Dec 28, 2012 2:51 pm
by dmjung
Craig,

I rolled the version migration in with some other changes that need to deployed so I'm looking at having to roll the scanning back to the older version. What kind of time frame do you have for reviewing the scanning?

--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Fri Dec 28, 2012 4:44 pm
by Tracker - Clarion Support
Hi Dave!

I've been trying to get it sorted. Some of the problems seem to be caused by using the new templates in different versions of Clarion, where there has been some "template shift."

I think I have to rewrite the class and template files a bit. Working on that today and next week.

Re: EVENT:ScanningOK firing twice and other issue

Posted: Thu Mar 28, 2013 6:19 pm
by dmjung
Craig,

Checking into see if anything has been done yet or if I should revert to the prior version...

--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Thu Mar 28, 2013 6:27 pm
by Tracker - Clarion Support
Hi David!

For now I think you should revert if you can. We've had some other issues that have gotten in the way of completing the rewrite of the scanner class and templates. I should be back on it soon.

Re: EVENT:ScanningOK firing twice and other issue

Posted: Thu Oct 24, 2013 4:06 pm
by dmjung
Craig et al,

Checking to see if it was safe to get back in the water with the scanning and this issue.

I really want to move to C9 as well...is the PDF-Tools scanning compatible? Thanks.

--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Thu Oct 24, 2013 8:32 pm
by Tracker - Clarion Support
Hi David!

We are having some issues with installing to the current Clarion 9 Gold release.

I'd hold off on moving to C9 at the current time.

Scanning is one of the issues in C9 Gold.

Re: EVENT:ScanningOK firing twice and other issue

Posted: Tue Jul 15, 2014 3:50 pm
by dmjung
I'm still trying to get moved from C6.3 and am about done with migrating to C9.1 now. Was anything ever done with this issue? Thanks.
--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Jul 16, 2014 4:53 am
by Tracker - Clarion Support
Hi David!

Not yet. :(

I became quite ill near the beginning of this year and have only been able to start work again in the last couple of weeks.

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Jul 16, 2014 1:25 pm
by dmjung
OK, as mentioned in the other thread, I'll look at 4.1 today...

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Jul 16, 2014 2:57 pm
by Tracker - Clarion Support
Hi David!
dmjung wrote:OK, as mentioned in the other thread, I'll look at 4.1 today...
Thank you!

I'll try to look at this later today. :)

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Jul 16, 2014 9:17 pm
by dmjung
Craig,

I'm about 100% sure the duplicate event is occurring with 4.1 and C9.1. I didn't follow along in the debugger, but all my embedded ScanningOK code gets executed twice based on the messages/errors that pop up after a successful scan.

I'm going to temporarily put in some toggle var code to let me continue testing.

LMK if you need anything further...

--David

Re: EVENT:ScanningOK firing twice and other issue

Posted: Wed Jul 16, 2014 10:18 pm
by Tracker - Clarion Support
Hi David!

Will do. :)