TPrintPreview and GDI+

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

TPrintPreview and GDI+

Postby mckiss » June 27th, 2011, 9:12 am

Hi Kambiz,

as far as I can see GDI+ patch works but it's not complete...

First of all as you can see here:

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

the output member of the GdiplusStartup function can be nil only if the SuppressBackgroundThread of the input parameter is false.
In your most recent gdi patch you set SuppressBackgroundThread to true but left output parameter to nil.

It seems to work but if you activate SYNOPSE define, it will hangs again as described in:

http://mikevdm.com/BlogEntry/Key/Gdiplu ... steriously

Synopse code infact sets correctly the output parameter.
I've tried to modify the TPrintPreview code to mimic the very same synopse behavior and all works great (the synopse code is quite different and requires further investigations and error handling, but it's a good starting point imho).
Thank you,
mckiss.
mckiss
Member
Member
 
Posts: 2
Joined: June 21st, 2011, 2:50 pm

Re: TPrintPreview and GDI+

Postby Kambiz » June 28th, 2011, 2:28 pm

In releases before the current release, SuppressBackgroundThread was set to false. But it was causing problem in using TGdiPlusSubset in a dll.
http://www.delphiarea.com/articles/preview-v5_60/#comments

Seems neither SYNOPSE nor my code are correct.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: TPrintPreview and GDI+

Postby Kambiz » June 28th, 2011, 5:36 pm

Your second link was very helpful, thank you!
I hope the new release fixes all GDI+ related problems.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: TPrintPreview and GDI+

Postby mckiss » June 29th, 2011, 10:51 am

Thank you Kambiz, really, your work is gorgeous...
Thank you,
mckiss.
mckiss
Member
Member
 
Posts: 2
Joined: June 21st, 2011, 2:50 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron