Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with GDI+ and Listenertype -1
Message
From
17/08/2010 15:14:41
 
 
To
17/08/2010 14:45:22
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01476778
Message ID:
01476891
Views:
71
>>>>Hi all,
>>>>
>>>>I was a bit out of touch so I didn't know if this a known problem. I found nothing with the common search machines.
>>>>
>>>>I have a strange problem with reportoutput
>>>>
>>>>Scenario
>>>>
>>>>I have a report with a textfield this field is used via listner to draw an image. I use this for years without any problem
>>>>
>>>>A huge cursor creating several thousand pages (I would not run this, but how to prevent customer runing it?)
>>>>
>>>>the report run as expected
>>>>
>>>>now I add a second field with _PAGETOTAL
>>>>
>>>>report fails after several hundred pages with some error in the listener.
>>>>The error raises because GdipSaveGraphics off gdiplus.dll returns some failure. (at least: not ok)
>>>>
>>>>This lead to an error of a badly handled value in the original listener,
>>>>check gaGDIP_State in fxListener::Listener.vcx. It is set with some state from the SAVE of gpgraphics::_gdiplus.vcx
>>>>Save sets the value to a value or .F. (It does not change) but the listener checks for .NULL. or a numerical.

>>>>
>>>>GdipSaveGraphics seems not to be documented.
>>>>
>>>>I've tried to go around the _PAGETOTAL using two distinct runs of the report.
>>>>If I run the page calculating report with listenertype = -1 it fails like the automatic twopass.
>>>>
>>>>This is a new behaviour on this computer. It seems to happen after I've run all the MS fixes / updates of previous week. I have only a W2K machine here to cross check. It's a bit outdated. But it's without the last fixes by MS and it runs without any problem.
>>>>
>>>>I've tested two versions of gdiplus.dll but without a principle change (the newer one seems to last longer)
>>>
>>>I remember a problem being discussed here with REPORTBEHAVIOR 90 and reports that are thousands of pages long, but I can't find it.
>>
>>I guess you mean Message ID: 1024004?
>
>Yes, that was it - thanks.

You're welcome.

>>>While looking for it, I stumbled on the link below, don't know if it's relevant for you:
>>>
>>>http://social.msdn.microsoft.com/Forums/en/visualfoxprogeneral/thread/c34f92fb-1fe0-4d70-baf8-31d9b0d6316f
Previous
Reply
Map
View

Click here to load this message in the networking platform