Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
AnswerRe: Use of Interfaces Pin
Luc Pattyn4-Aug-09 7:42
sitebuilderLuc Pattyn4-Aug-09 7:42 
Questionquery wizard Pin
mohammad alnoed4-Aug-09 6:46
mohammad alnoed4-Aug-09 6:46 
AnswerRe: query wizard Pin
Abhijit Jana4-Aug-09 7:00
professionalAbhijit Jana4-Aug-09 7:00 
GeneralRe: query wizard Pin
mohammad alnoed4-Aug-09 7:07
mohammad alnoed4-Aug-09 7:07 
GeneralRe: query wizard Pin
Henry Minute4-Aug-09 13:19
Henry Minute4-Aug-09 13:19 
QuestionAsynchronous socket and webrequest Pin
joana.simoes4-Aug-09 6:36
joana.simoes4-Aug-09 6:36 
QuestionFile In Use Problem Pin
eddieangel4-Aug-09 6:03
eddieangel4-Aug-09 6:03 
AnswerRe: File In Use Problem [modified] Pin
Luc Pattyn4-Aug-09 6:08
sitebuilderLuc Pattyn4-Aug-09 6:08 
Image.FromFile() keeps the file open as long as the Image is alive.
You must Dispose of it to free the file! Setting the reference null does not achieve this, it may or may not result in the GC to collect the image the next time it runs, i.e. the next time a memory request cannot be satisfied without first performing a collection.

The alternative is to replace FromFile() by FromSream(); that one does not lock the file.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

modified on Tuesday, August 4, 2009 12:26 PM

GeneralRe: File In Use Problem Pin
N a v a n e e t h4-Aug-09 7:23
N a v a n e e t h4-Aug-09 7:23 
GeneralRe: File In Use Problem Pin
Luc Pattyn4-Aug-09 7:29
sitebuilderLuc Pattyn4-Aug-09 7:29 
Questionusing kdtele for c# application Pin
anahita224-Aug-09 5:28
anahita224-Aug-09 5:28 
AnswerRe: using kdtele for c# application Pin
Not Active4-Aug-09 6:18
mentorNot Active4-Aug-09 6:18 
AnswerRe: using kdtele for c# application Pin
N a v a n e e t h4-Aug-09 6:20
N a v a n e e t h4-Aug-09 6:20 
QuestionPassing C# variable to HTML page Pin
VengefulSakhmet4-Aug-09 5:16
VengefulSakhmet4-Aug-09 5:16 
AnswerRe: Passing C# variable to HTML page Pin
Not Active4-Aug-09 6:17
mentorNot Active4-Aug-09 6:17 
GeneralRe: Passing C# variable to HTML page Pin
VengefulSakhmet4-Aug-09 8:33
VengefulSakhmet4-Aug-09 8:33 
AnswerRe: Passing C# variable to HTML page Pin
Adam Maras4-Aug-09 8:49
Adam Maras4-Aug-09 8:49 
GeneralRe: Passing C# variable to HTML page Pin
VengefulSakhmet4-Aug-09 10:44
VengefulSakhmet4-Aug-09 10:44 
QuestionC# Problems with background worker - progress bar Pin
Wheels0124-Aug-09 5:00
Wheels0124-Aug-09 5:00 
AnswerRe: C# Problems with background worker - progress bar Pin
Luc Pattyn4-Aug-09 5:15
sitebuilderLuc Pattyn4-Aug-09 5:15 
GeneralRe: C# Problems with background worker - progress bar [modified] Pin
Druuler4-Aug-09 5:24
Druuler4-Aug-09 5:24 
GeneralRe: C# Problems with background worker - progress bar Pin
Luc Pattyn4-Aug-09 5:41
sitebuilderLuc Pattyn4-Aug-09 5:41 
GeneralRe: C# Problems with background worker - progress bar Pin
Wheels0124-Aug-09 5:42
Wheels0124-Aug-09 5:42 
QuestionHow to make sure a form is closed Pin
belzer4-Aug-09 4:31
belzer4-Aug-09 4:31 
AnswerRe: How to make sure a form is closed Pin
Super Lloyd4-Aug-09 5:09
Super Lloyd4-Aug-09 5:09 

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.