possible solution to my problem?
Christopher Bruno
cbruno.linux at gmail.com
Tue May 27 07:35:50 PDT 2008
do I need to call dc.SetPen(wxNullPen) in order for resources to be
released, or is it done when the dc varialb goes out of scope?
On Tue, May 27, 2008 at 3:36 AM, Julian Smart <julian at anthemion.co.uk>
wrote:
> If you're on Win9x there can be severe resource limitations, but if you're
> running Windows NT or later it's probably a programming rather than an OS
> error.
>
> Regards,
>
> Julian
>
> Stefan Csomor wrote:
>
>> Hi Bruno
>>
>> usually you allocate these objects as member variables or on the stack,
>> not with operator new, wx built-in reference counting takes care that the
>> shared data is alive as long as it should, so I'd focus on things you
>> allocate with 'new'
>>
>> Best,
>>
>> STefan
>>
>>
>> On 27.05.08 07:51, "Christopher Bruno" <cbruno.linux at gmail.com> wrote:
>>
>>
>> I am wondering if doing too many dc.SetPen and dc.SetBrush are the
>> cause of my problem. If I have a wxDC object doing a major draw,
>> could not freeing up these resources cause memory problems? How do
>> you free up resources after calling dc.SetPen?
>>
>>
>> --
>>
>> Advanced Concepts AG
>> Software-Engineering
>> Heldweg 10
>> CH-8475 Ossingen
>> Switzerland
>>
>> phone:+41 52 245 0 245
>> fax:+41 52 245 0 246
>> http://www.advanced.ch
>> mailto:csomor at advanced.ch
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> wx-users mailing list
>> wx-users at lists.wxwidgets.org
>> http://lists.wxwidgets.org/mailman/listinfo/wx-users
>>
>>
>
>
> --
> Julian Smart, Anthemion Software Ltd.
> 28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
> www.anthemion.co.uk | +44 (0)131 229 5306
> Tools for writers: www.writerscafe.co.uk
> wxWidgets RAD: www.anthemion.co.uk/dialogblocks
>
> _______________________________________________
> wx-users mailing list
> wx-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users
>
-- =
Chris Bruno
n! Labs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080527/5b2=
52e35/attachment.htm
More information about the wx-users
mailing list