Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: More limited than internal? Pin
Meysam Mahfouzi30-Sep-03 18:09
Meysam Mahfouzi30-Sep-03 18:09 
GeneralRe: More limited than internal? Pin
Blake Coverett30-Sep-03 19:26
Blake Coverett30-Sep-03 19:26 
GeneralRe: More limited than internal? Pin
Meysam Mahfouzi1-Oct-03 3:36
Meysam Mahfouzi1-Oct-03 3:36 
GeneralRe: More limited than internal? Pin
Nathan Blomquist2-Oct-03 10:44
Nathan Blomquist2-Oct-03 10:44 
GeneralRe: More limited than internal? Pin
Meysam Mahfouzi2-Oct-03 20:10
Meysam Mahfouzi2-Oct-03 20:10 
GeneralRe: More limited than internal? Pin
Nathan Blomquist3-Oct-03 4:36
Nathan Blomquist3-Oct-03 4:36 
GeneralTable won't store data Pin
Obi730-Sep-03 1:37
Obi730-Sep-03 1:37 
Generalquestion about threads please Pin
profoundwhispers30-Sep-03 0:49
profoundwhispers30-Sep-03 0:49 
GeneralRe: question about threads please Pin
Heath Stewart30-Sep-03 2:05
protectorHeath Stewart30-Sep-03 2:05 
GeneralRe: question about threads please Pin
profoundwhispers30-Sep-03 3:24
profoundwhispers30-Sep-03 3:24 
GeneralRe: question about threads please Pin
Heath Stewart30-Sep-03 3:33
protectorHeath Stewart30-Sep-03 3:33 
GeneralRe: question about threads please Pin
profoundwhispers30-Sep-03 3:36
profoundwhispers30-Sep-03 3:36 
Questionis it possible? Pin
boazneon30-Sep-03 0:35
boazneon30-Sep-03 0:35 
AnswerRe: is it possible? Pin
Ryan_Roberts30-Sep-03 1:15
Ryan_Roberts30-Sep-03 1:15 
GeneralRe: is it possible? Pin
boazneon30-Sep-03 1:57
boazneon30-Sep-03 1:57 
Generalproblem with inf file Pin
Srikar Y30-Sep-03 0:35
Srikar Y30-Sep-03 0:35 
GeneralRe: problem with inf file Pin
Heath Stewart30-Sep-03 2:02
protectorHeath Stewart30-Sep-03 2:02 
GeneralWeb Services proxy class Pin
sneaky90930-Sep-03 0:08
sneaky90930-Sep-03 0:08 
GeneralRe: Web Services proxy class Pin
Ryan_Roberts30-Sep-03 1:09
Ryan_Roberts30-Sep-03 1:09 
Questionremoting server in console app? Pin
Roger Alsing29-Sep-03 22:37
Roger Alsing29-Sep-03 22:37 
AnswerRe: remoting server in console app? Pin
Blake Coverett29-Sep-03 23:09
Blake Coverett29-Sep-03 23:09 
GeneralRe: remoting server in console app? Pin
Roger Alsing29-Sep-03 23:31
Roger Alsing29-Sep-03 23:31 
GeneralControl Key Combo Pin
deanoA29-Sep-03 20:40
deanoA29-Sep-03 20:40 
GeneralRe: Control Key Combo Pin
Heath Stewart30-Sep-03 2:16
protectorHeath Stewart30-Sep-03 2:16 
QuestionPicture & Streamer : closed or not? Pin
Stephane David29-Sep-03 20:24
Stephane David29-Sep-03 20:24 
In my application, I've created a zip where I store several pictures (256 colors gif)
When my application is loaded, I want to open the zip and load the gif in memory, but it doesn't work as I want, and I'd like some help.

Here is what I do( it's very simplified)

Method 1:
FileStream stream
// Read the contains of the zip with this stream,
// it create Foo.gif (this part works)
stream.Close();
Bitmap Picture = new Bitmap ("Foo.gif");
File.Delete("Foo.gif");

I don't want to keep the file on the hard drive, so I delete it once it is loaded. Pb : I got an error message at runtime "Foo.gif used by another process", and I cannot delete it. But the Stream is supposed to be closed. How can I delete this file?

Method 2:
Instead of using a FileStream to read the zip and save it, I use a MemoryStream, and I create the picture from this stream. It works. Almost. Instead of a 256 colors picture, It create a 32bppArgb picture, so it takes a lot of memory.

Any idea of how I can access the picture in my zip, use them as 256 colors gif, and still be able to delete the picture once I'm done loading it?



General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.