Re: memory leak



I bet you're doing something like "xyz.Image = new Bitmap (...)" - right?
If so, there is a bug in the CF design/implementation (IMHO) that forces you
to do your own memory management; i.e. for every "new Bitmap ()" you do,
you'll need to do a "Dispose()" on that bitmap when you're done with it (aka
malloc and free).

Let us know if that helps,

Hilton


"raju" <ponnurajs@xxxxxxxxx> wrote in message
news:1155390117.643466.283160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hai

In my device application (windows ce application using vb.net), i
am having nearly 25 forms. Moving from one form to another form, just i
am hide the first form and show the second form.

Each form I am having some picturebox, putting images for that
picturebox using imagelist.

My application works very well. But, if the application running
contineously for 1 or 2 hours, i am getting error such as "low memory".


when i checked the memory, it will automatically increasing when
the application is in running. First initial time, it occupies 22 mb
and it increasing upto 32 to 35 mb.

What is the reason for this? and how to correct this memory
problem.

Regards
Raju.



.



Relevant Pages

  • Re: memory leak
    ... am hide the first form and show the second form. ... picturebox using imagelist. ... contineously for 1 or 2 hours, i am getting error such as "low memory". ...
    (microsoft.public.dotnet.framework.compactframework)
  • memory leak
    ... am hide the first form and show the second form. ... picturebox using imagelist. ... contineously for 1 or 2 hours, i am getting error such as "low memory". ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: memory leak
    ... Are u ensuring that only a single instance of any object u r using. ... picturebox using imagelist. ... contineously for 1 or 2 hours, i am getting error such as "low memory". ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: memory leak
    ... The same has to be done on the full framework, and again, it's not a bug. ... picturebox using imagelist. ... contineously for 1 or 2 hours, i am getting error such as "low memory". ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Report Layout
    ... And now it displays fine and I don't run out of memory. ... make sense to me why if I look at the attributes in Paint it says something ... Why don't you have a peek at the picturebox properties. ... quality is critical for this form.. ...
    (microsoft.public.dotnet.languages.vb)

Loading