Page 1 of 1

Use of TeeCreateBitmap in WebModule

Posted: Wed Mar 04, 2015 2:12 pm
by 16573151
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.

Re: Use of TeeCreateBitmap in WebModule

Posted: Mon Mar 09, 2015 8:18 am
by 16573151
Have you try the example ?
I really need to upgrade my applications to Delphi XE6 + Teechart 2015.

Best regards,
Laurent.

Re: Use of TeeCreateBitmap in WebModule

Posted: Mon Mar 09, 2015 9:42 am
by yeray
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..