An interesting problem in delphi2007+2009

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

An interesting problem in delphi2007+2009

Post by miromr »

Good day

watch this video
www.pdfv.admis.sk/pdfxviewer.mp4

Thank you Miro
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: An interesting problem in delphi2007+2009

Post by John - Tracker Supp »

Very interesting - but all this occurs way to quickly and without allowing us to investigate the your actual code - which particuarly as we are not natively Delphi Dev's is problematic.

Please supply a simplified project with a full set of your Delphi source files - zipped) and with NO license info and we will try and assist.

Without these there is little we can do.

Also please advise which build of our products you are using (version info)
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
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: An interesting problem in delphi2007+2009

Post by miromr »

source D2007 is attached.
My PDF viewer is version 199 PRO registered.
And SDK for pdf viewer dlls is in attached archive.

Miro
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: An interesting problem in delphi2007+2009

Post by miromr »

sorry
attachment is large
www.pdfv.admis.sk/delphiproblem.zip

Miro
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: An interesting problem in delphi2007+2009

Post by miromr »

Hi John
problem is

Delphi 7 sample definition is:
procedure TForm1.CoPDFXCview1Event(ASender: TObject; Type_: Integer;
const Name: WideString; const DataIn: OleVariant; out DataOut: OleVariant;
Flags: Integer);

Delphi 2007 and 2009
procedure TForm1.CoPDFXCview2Event(ASender: TObject; Type_: Integer;
const Name: WideString; DataIn: OleVariant; out DataOut: OleVariant;
Flags: Integer);

Miro
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: An interesting problem in delphi2007+2009

Post by Stefan - PDF-XChange »

Hello Miro,

Just to confirm - the text in red in your above post is the cause of the problems and we shall consider this as solved right?

Best,
Stefan
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: An interesting problem in delphi2007+2009

Post by miromr »

Hi Stefan,
yes
Delphi 2007 and 2009 generates event method without "const" for DataIn parameter.
The method causes crash.

Just add "const" before DataIn parameter then method works OK.

Miro
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7370
Joined: Wed Mar 25, 2009 10:37 pm

Re: An interesting problem in delphi2007+2009

Post by Paul - PDF-XChange »

Hi miromr,

do you need anything more from us here?

regards
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
miromr
User
Posts: 59
Joined: Sat May 09, 2009 3:05 pm

Re: An interesting problem in delphi2007+2009

Post by miromr »

Hi, Paul
no. problem is solved.
Thank you very much
Miro
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: An interesting problem in delphi2007+2009

Post by Stefan - PDF-XChange »

:)