Re: Memory Leak when set a control's image property in InitializeC

Tech-Archive recommends: Fix windows errors by optimizing your registry



The virtual memory keeps increasing and the execution get stuck at the point
where a control's image proerty is in Initialization().

This problem is resolved by changing to another machine.

"Bob Powell [MVP]" wrote:

> how do you detect this "memory leak"??
>
> --
> Bob Powell [MVP]
> Visual C#, System.Drawing
>
> Ramuseco Limited .NET consulting
> http://www.ramuseco.com
>
> Find great Windows Forms articles in Windows Forms Tips and Tricks
> http://www.bobpowell.net/tipstricks.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/faqmain.htm
>
> All new articles provide code in C# and VB.NET.
> Subscribe to the RSS feeds provided and never miss a new article.
>
>
>
>
>
> "zhaounknown" <zhaounknown@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:3F95D35E-9152-46A8-AE30-04FAB1BE3E51@xxxxxxxxxxxxxxxx
> > But it seems that the memory doesn't leak when the Image of a control is
> > set
> > when the form is loaded.
> >
> > How to prevent the memory leak for such case.
> >
> > Thanks.
>
>
>
.



Relevant Pages

  • Re: MDAC memory leak
    ... Most libraries place the decision of when to free ... There's a capability of breaking on a particular memory allocation, ... leak 500 objects, on the second test I leak 3, because I fixed the bug). ... "App shows memory leak on some machines." ...
    (microsoft.public.vc.mfc)
  • Re: MDAC memory leak
    ... Also when we used some of the memory leak tools suggested on microsoft site ... A mutex is a considerably less efficient synchronization ... "App shows memory leak on some machines." ...
    (microsoft.public.vc.mfc)
  • Re: Memory leak in the Driver
    ... Paul G. Tobey wrote: ... driver development, it's most likely that you are at fault. ... The QFE has no impact on the leak but one thing is sure, ... i am sure that all the memory that i am allocating in my driver is ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Memory leak in the Driver
    ... Don't forget that "handles" are memory, too, as are USB packets, data ... someone else is supposed to free it or, maybe, someone else is allocating it ... and *you* are supposed to free it, could be the source of the leak. ... driver development, it's most likely that you are at fault. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Memory leak in the Driver
    ... Paul G. Tobey wrote: ... Don't forget that "handles" are memory, too, as are USB packets, data ... and *you* are supposed to free it, could be the source of the leak. ... driver development, it's most likely that you are at fault. ...
    (microsoft.public.windowsce.platbuilder)