Memory problem with images
- From: alberto.decaro@xxxxxxxxx
- Date: 22 Jun 2005 07:56:42 -0700
Hello everybody,
I'm developing a ppc application that receives images from a url and
periodically displays them in a picturebox (I use a timer control).
private sub tick(...) handles myTimer.tick
'pbx is the target picturebox control
pbx.image = getImage()
end sub
private function getImage() as bitmap
'strUrl is the stream containing the image
return new bitmap(strUrl)
end function
The problem is that at each ticking a new bitmap object is created
exhausting memory resources.
I'd like creating a bitmap object once and using a '.FromStream' method
at each ticking, but the Image.FromStream static method is not
evailable for the compact framework.
Any clue?
.
- Follow-Ups:
- RE: Memory problem with images
- From: Alex Yakhnin [MVP]
- Re: Memory problem with images
- From: Sergey Bogdanov
- RE: Memory problem with images
- Prev by Date: Re: Send and Recieve Message
- Next by Date: TypeLoadException
- Previous by thread: removing fonts
- Next by thread: Re: Memory problem with images
- Index(es):
Relevant Pages
|