Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EOutOfResources error when using TChart and IntraWeb

41 views
Skip to first unread message

Bruce Eglington

unread,
Aug 31, 2004, 5:24:19 PM8/31/04
to
Good day
I get an "Out of resources" error sometimes whilst using TChart and
Intraweb. I originally thought this was due to a clash with the Firewall I
was using but am now also finding it on my development computer which does
not use any firewall software. The problem happens when running the Intraweb
application as a standalone and either trying to create a chart or to modify
one which has already been rendered. using MemCheck, I get the following
messages but am unable to detemine the cause of the error. Can somebody
help - is it a Delphi problem, an IntraWeb one or a TChart one? In the past
I have tried both the IntraWeb and TeeChart newsgroups but nobody has been
able to help.

Any suggestions would be much appreciated.

The log message is:

*** MEMCHK: Blocks STILL allocated ***

Leak #0 Instance of EOutOfResources
Size: 16
1 Occurence
call stack - 0 : Module Graphics.pas Routine @Graphics@OutOfResources Line
2605 Find error: 00436AB3
call stack - 1 : Module Graphics.pas Routine @Graphics@GDIError Line 2618
Find error: 00436B60
call stack - 2 : Module Graphics.pas Routine @Graphics@GDICheck Line 2623
Find error: 00436B98
call stack - 3 : Module Graphics.pas Routine @Graphics@CopyBitmap Line 5151
Find error: 0043B880
call stack - 4 : Module Graphics.pas Routine @Graphics@TBitmap@CopyImage
Line 5332 Find error: 0043BEEC
call stack - 5 : Module Graphics.pas Routine @Graphics@TBitmap@FreeImage
Line 5456 Find error: 0043C328
call stack - 6 : Module Graphics.pas Routine @Graphics@TBitmap@Changing
Line 5347 Find error: 0043BF5C
call stack - 7 : Module Graphics.pas Routine @Graphics@TBitmap@GetHandle
Line 5495 Find error: 0043C448
call stack - 8 : Module Graphics.pas Routine
@Graphics@TBitmap@SetPixelFormat Line 6211 Find error: 0043D94B
call stack - 9 : Routine @Jpeg@TJPEGImage@Compress Find error: 004C3C2B
call stack - 10 : Routine @Jpeg@TJPEGImage@JPEGNeeded Find error: 004C44C2
call stack - 11 : Routine @Iwextctrls@TIWDynamicImage@RenderHTML Find
error: 005D8BCA
call stack - 12 : Module IWCompTeeChart.pas Routine
@Iwcompteechart@TIWChart@RenderHTML Line 84 Find error: 00630F75
call stack - 13 : Routine
@Iwbasehtmlcontrol@TIWBaseHTMLControl@RenderMarkupLanguageTag Find error:
005112F4
call stack - 14 : Routine @Iwcontainer@TIWContainer@RenderComponents Find
error: 0050E3BF
call stack - 15 : Routine @Iwform@TIWForm@RenderComponents Find error:
0050B4F7
call stack - 16 : Routine @Iwappform@TIWAppForm@GenerateForm Find error:
0050F367
call stack - 17 : Routine @Iwserver@TIWServer@Exec Find error: 005132B3
call stack - 18 : (no debug info) Find error: 0051853E
call stack - 19 : Module HTTPApp.pas Routine
@Httpapp@TWebActionItem@DispatchAction Line 1093 Find error: 004BD386
call stack - 20 : Module HTTPApp.pas Routine
@Httpapp@TCustomWebDispatcher@DispatchAction Line 1490 Find error: 004BE2ED
call stack - 21 : Routine
@Inhttpwebbrokerbridge@TInHTTPWebBrokerBridge@DoCommandGet Find error:
0053DD77
call stack - 22 : (no debug info) Find error: 0053AB2D
call stack - 23 : Routine @Incontext@TInContext@Run Find error: 00532C0E
call stack - 24 : Module classes.pas Routine @Classes@ThreadProc Line 9010
Find error: 00430335
call stack - 25 : Routine @System@ThreadWrapper Find error: 00404F56
call stack - 26 : (no debug info) Find error: 77E7D337


Thanks
Bruce


David Berneda

unread,
Sep 2, 2004, 6:31:48 PM9/2/04
to
Hi Bruce
Are you creating very big chart sizes ? Or with a different color resolution ?
Do you use 24 bit per pixel ?
The error is at Bitmap.SetPixelFormat.
Are you compiling with IWChart source code ?
regards
david

"Bruce Eglington" <bruce.e...@usask.ca> wrote in message news:4134...@newsgroups.borland.com...

Bruce Eglington

unread,
Sep 3, 2004, 11:17:08 AM9/3/04
to
Hi David
Thanks for the assistance.

I would not have described the charts as very large. The worst case
(largest) has five line series, each with 4600 points whereas most have only
a few hundred points total, distributed across five series, all with error
bars. I have even had the OutOfresources error on graphs with as few as 50
points total.

I have been using 24 bit per pixel resolution and will now try at 16. I have
had similar problems in the past (TChart version 7, I now use 7.01) with
another computer which was running at 16 bits per pixel but i thought that
the problem on that computer was related to Kerio Firewall as, when I
switched it off I did not have errors. I substituted Zone Alarm as a
firewall and have did not have any problems either although all the graphs
on that machine are smaller.

I have your latest IWTChart download (as of a few weeks ago) in file
TeeChartPro7_Intraweb7_Delphi.zip and installed this as recommended with the
necessary changes and recompilations to get it to work with IW 7.2.12
(previously 7.2.11 and 7.0.20). for the rest, I use Delphi 6 with all
released upgrades. Hopefully this answers your query about IWChart source
code.

Can you explain how you know the error is with SetPixelFormat? I would like
to get a better understanding of the log output from MemCheck.

Regards
Bruce


"David Berneda" <dav...@steema.com> wrote in message
news:4137...@newsgroups.borland.com...

David Berneda

unread,
Sep 6, 2004, 7:26:55 AM9/6/04
to
Hi Bruce
By large I mean in Width x Height size, not the number of series or points.

> Can you explain how you know the error is with SetPixelFormat? I would like
> to get a better understanding of the log output from MemCheck.

I'm only guessing.
I guess the rest of stack lines are a derived cause of a problem at SetPixelFormat, but it's just a guess.
regards
david

"Bruce Eglington" <bruce.e...@usask.ca> wrote in message news:4138...@newsgroups.borland.com...

Bruce Eglington

unread,
Sep 7, 2004, 12:45:49 AM9/7/04
to
Hi David
most that I have had trouble with are about 460 x 715 pixels so nothing
very unusual. I have also encountered the same problem with much smaller
charts (200 x 200), so it does not seem to relate to physical dimensions
much.

Bruce


"David Berneda" <da...@steema.com> wrote in message
news:413c...@newsgroups.borland.com...

0 new messages