Possible GPF?

This Forum is for the use of Clarion For Windows - Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

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
RickMartin
User
Posts: 2
Joined: Mon May 18, 2009 3:24 pm

Possible GPF?

Post by RickMartin » Sun Feb 21, 2010 7:27 pm

Hi John,

I'm wondering if this code could possibly cause any problems like a GPF. It looks correct to me but I wanted an extra set of eyes to review it. This is using 3.6.0.112. Could something have been fixed in a later release?

Thanks,
Rick

IF SYSTEM{Prop:AutoPaper} = True
Loc:Paper = pReport{PROPPRINT:Paper}
ELSE
Loc:Paper = PAPER:USER
END

IF pReport{PROP:Thous} = True
Loc:PaperUnits = PROP:Thous
ELSIF pReport{PROP:MM} = True
Loc:PaperUnits = Prop:MM
ELSIF pReport{PROP:Points} = True
Loc:PaperUnits = PROP:Points
ELSE
Loc:PaperUnits = 0
END

PDFXTR1.Init(pReport, Loc:FileSpec)
PDFXTR1.SetPaper(Loc:Paper, Loc:PaperUnits, pReport{PROPPRINT:PaperWidth}, pReport{PROPPRINT:PaperHeight}, pReport{PROP:Landscape})
PDFXTR1.SetCompression(True,True,False,COMPRTYPE_C_AUTO,75,COMPRTYPE_I_AUTO,COMPRTYPE_M_AUTO)
PDFXTR1.SetAuthor(FCO:CUName)
PDFXTR1.SetTitle(pTitle)
PDFXTR1.SetSubject(Loc:Subject)
PDFXTR1.SetCreator('Testing')
PDFXTR1.SetKeywords()
PDFXTR1.SetPreview(False)
IF RECORDS(pImageQueue) > 25
ShowProgressWindow = True
ELSE
ShowProgressWindow = False
END
PDFXTR1:rtn = PDFXTR1.Generate(pImageQueue,ShowProgressWindow)
PDFXTR1.Kill()

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Possible GPF?

Post by John - Tracker Supp » Mon Feb 22, 2010 1:01 am

its very hard to say to be honest - what would be far more useful is if you could download and install build 3.0130 first and see if this is resolved - if not we could do with a very small example that shows the issue and we will investigate.

thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

RickMartin
User
Posts: 2
Joined: Mon May 18, 2009 3:24 pm

Re: Possible GPF?

Post by RickMartin » Mon Feb 22, 2010 11:25 pm

Hi John,

I don't especially suspect this code as the cause of the GPFs. I was just wondering if anything jumped out at you.
We are getting GPFs in a wide number of areas in the code when a particular end-user feature is turned on. Part of what happens when that feature is turned on is this code to automatically save reports to PDF in the background. I'm sure the GPFs are not happening at the point of corruption. It appears something is corrupting the call stack and I'm just looking for any code that might be suspect. :)

Thanks,
Rick

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Possible GPF?

Post by John - Tracker Supp » Mon Feb 22, 2010 11:29 pm

I would still suggest the update Rick - but I will also ask Craig to take a look - maybe he has some ideas...

Thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker 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: Possible GPF?

Post by Tracker - Clarion Support » Mon Feb 22, 2010 11:34 pm

Hi Rick!

The code looks all right, but I suspect you'll have to sit with the debugger to determine exactly what kind of error is occurring and where.

FYI version 3.6 is no longer supported. There IS a "final build" but I'm not sure where to download it from now.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: Possible GPF?

Post by John - Tracker Supp » Tue Feb 23, 2010 12:10 am

If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply

Return to “PDF-Tools SDK (DLL Libraries Only) - Clarion For Windows Developers Only Please”