Use of TeeCreateBitmap in WebModule

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
lolo31
Newbie
Newbie
Posts: 3
Joined: Tue Mar 03, 2015 12:00 am

Use of TeeCreateBitmap in WebModule

Post by lolo31 » Wed Mar 04, 2015 2:12 pm

Hello,

I have a problem to generate a bitmap of a TeeChart in a WebModule.
See in attachment a simple project that generate the error.
I use 2 methods to create the Bitmap:
First, the "old" method with a Chart.Draw
Then, with the TeeCreateBitmap function.

I have try with Teechart 2014 & the last 2015.
I have install the source code and the exception raises in VCLTee.TeeGDIPlus in TGDIPlusCanvas.RecreateGraphics because status = 3

Run the program, Press "Start", then Press "Open IE" and do Refresh IE (F5) several times to get the error.

It worked in the past with the Draw method (with Delphi 2010 + TeeChart ? (before GDIplus canvas))

Best regards,
Laurent.
Attachments
TeeWebBroker.zip
(9.41 KiB) Downloaded 445 times

lolo31
Newbie
Newbie
Posts: 3
Joined: Tue Mar 03, 2015 12:00 am

Re: Use of TeeCreateBitmap in WebModule

Post by lolo31 » Mon Mar 09, 2015 8:18 am

Have you try the example ?
I really need to upgrade my applications to Delphi XE6 + Teechart 2015.

Best regards,
Laurent.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Use of TeeCreateBitmap in WebModule

Post by Yeray » Mon Mar 09, 2015 9:42 am

Hi Laurent,
lolo31 wrote:Run the program, Press "Start", then Press "Open IE" and do Refresh IE (F5) several times to get the error.
I could reproduce the problem here.
Note if you give the focus to the application before each refresh in the browser (F5), it doesn't crash. Could you please confirm it?
lolo31 wrote:It worked in the past with the Draw method (with Delphi 2010 + TeeChart ? (before GDIplus canvas))
Here we have a workaround that may be acceptable for you: Changing the Canvas back to GDI.
You can do it at designtime or at runtime. See this post to see different ways to do it..
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply