Click here to Skip to main content
15,901,426 members
Home / Discussions / C#
   

C#

 
GeneralRe: file close issue Pin
George_George10-Jun-08 20:50
George_George10-Jun-08 20:50 
GeneralRe: file close issue Pin
N a v a n e e t h10-Jun-08 21:10
N a v a n e e t h10-Jun-08 21:10 
GeneralRe: file close issue Pin
George_George10-Jun-08 21:36
George_George10-Jun-08 21:36 
GeneralRe: file close issue Pin
Ashfield10-Jun-08 21:12
Ashfield10-Jun-08 21:12 
GeneralRe: file close issue Pin
George_George10-Jun-08 21:38
George_George10-Jun-08 21:38 
AnswerRe: file close issue Pin
N a v a n e e t h10-Jun-08 21:06
N a v a n e e t h10-Jun-08 21:06 
GeneralRe: file close issue Pin
George_George10-Jun-08 21:35
George_George10-Jun-08 21:35 
GeneralRe: file close issue Pin
N a v a n e e t h11-Jun-08 16:15
N a v a n e e t h11-Jun-08 16:15 
George_George wrote:
whether file will be automatically closed if open too long without any operation?


I don't think so, but I am not sure though. GC will collect the instance only when there is no one referring the particular object. Since you use a static variable, it's lifetime will be till the application domain unloads. So I guess there won't be any problem.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: file close issue Pin
George_George11-Jun-08 16:18
George_George11-Jun-08 16:18 
Questionfacebook login. Pin
udikantz10-Jun-08 17:05
udikantz10-Jun-08 17:05 
AnswerRe: facebook login. Pin
leppie10-Jun-08 23:37
leppie10-Jun-08 23:37 
GeneralRe: facebook login. Pin
udikantz11-Jun-08 3:22
udikantz11-Jun-08 3:22 
AnswerRe: facebook login. Pin
Brandon Toner17-Mar-09 11:15
Brandon Toner17-Mar-09 11:15 
AnswerRe: facebook login. [modified] Pin
Member 41081678-Sep-09 23:16
Member 41081678-Sep-09 23:16 
QuestionHow initiate GPRS connection in WM 6 Pin
manu4ever10-Jun-08 12:12
manu4ever10-Jun-08 12:12 
QuestionCompiler options in C# Pin
Member 391904910-Jun-08 11:51
Member 391904910-Jun-08 11:51 
AnswerRe: Compiler options in C# Pin
Christian Graus10-Jun-08 11:57
protectorChristian Graus10-Jun-08 11:57 
GeneralRe: Compiler options in C# Pin
Member 391904910-Jun-08 12:05
Member 391904910-Jun-08 12:05 
GeneralRe: Compiler options in C# Pin
Christian Graus10-Jun-08 12:25
protectorChristian Graus10-Jun-08 12:25 
GeneralRe: Compiler options in C# Pin
Member 391904910-Jun-08 12:46
Member 391904910-Jun-08 12:46 
GeneralRe: Compiler options in C# Pin
Christian Graus10-Jun-08 13:04
protectorChristian Graus10-Jun-08 13:04 
GeneralRe: Compiler options in C# Pin
Judah Gabriel Himango10-Jun-08 13:24
sponsorJudah Gabriel Himango10-Jun-08 13:24 
QuestionDatatable issue Pin
NewToAspDotNet10-Jun-08 10:41
NewToAspDotNet10-Jun-08 10:41 
AnswerRe: Datatable issue Pin
Christian Graus10-Jun-08 11:09
protectorChristian Graus10-Jun-08 11:09 
Questiona security problem [modified] Pin
Sajjad Izadi10-Jun-08 10:16
Sajjad Izadi10-Jun-08 10:16 

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.