[Mono-list] Events / Assign Variable Event

2004-07-27 Thread Pablo Fischer
Hi!

I have a class that returns a Stream of a downloaded image, so one the
image is downloaded I just assign it to a pixbuf for example

Pixbuf p = new Pixbuf (RemoteImage.Image);

However, I need to Close the request, is there an event that can be
executed once I pass a variable to another object?. What I'm looking for
is to close the Stream once I create the Pixbuf (new Pixbuf
(RemoteImage.Image)) automatically.

Any ideas?

Thanks!
Pablo
-- 
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx 
http://www.debianmexico.org


signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada	digitalmente


RE: [Mono-list] Events / Assign Variable Event

2004-07-27 Thread Dan Maltes
Wouldn't a simple try..catch..finally work for you?  Or a using statement?

-Dan 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pablo Fischer
Sent: Tuesday, July 27, 2004 1:58 PM
To: [EMAIL PROTECTED]
Subject: [Mono-list] Events / Assign Variable Event

Hi!

I have a class that returns a Stream of a downloaded image, so one the image
is downloaded I just assign it to a pixbuf for example

Pixbuf p = new Pixbuf (RemoteImage.Image);

However, I need to Close the request, is there an event that can be executed
once I pass a variable to another object?. What I'm looking for is to close
the Stream once I create the Pixbuf (new Pixbuf
(RemoteImage.Image)) automatically.

Any ideas?

Thanks!
Pablo
--
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx http://www.debianmexico.org

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list