EVENT:ScanningOK firing twice and other issue

This Forum is for the use of Clarion For Windows - Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

EVENT:ScanningOK firing twice and other issue

Post by dmjung » Wed Dec 19, 2012 7:55 pm

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

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Wed Dec 19, 2012 8:14 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Wed Dec 19, 2012 8:16 pm

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Wed Dec 19, 2012 10:54 pm

Hi David!

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

Thanks!
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Thu Dec 20, 2012 2:36 am

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Thu Dec 20, 2012 2:25 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Thu Dec 20, 2012 3:11 pm

Hi David!

Got your email address, thanks! :)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Fri Dec 28, 2012 2:51 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Fri Dec 28, 2012 4:44 pm

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Thu Mar 28, 2013 6:19 pm

Craig,

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

--David

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Thu Mar 28, 2013 6:27 pm

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Thu Oct 24, 2013 4:06 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Thu Oct 24, 2013 8:32 pm

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Tue Jul 15, 2014 3:50 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Wed Jul 16, 2014 4:53 am

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.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Wed Jul 16, 2014 1:25 pm

OK, as mentioned in the other thread, I'll look at 4.1 today...

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Wed Jul 16, 2014 2:57 pm

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. :)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

dmjung
User
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

Re: EVENT:ScanningOK firing twice and other issue

Post by dmjung » Wed Jul 16, 2014 9:17 pm

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

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: EVENT:ScanningOK firing twice and other issue

Post by Tracker - Clarion Support » Wed Jul 16, 2014 10:18 pm

Hi David!

Will do. :)
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Post Reply

Return to “PDF-XChange Drivers (only) API SDK - For Clarion For Windows Developers only Please”