Click here to Skip to main content
15,886,734 members
Home / Discussions / C#
   

C#

 
QuestionRe: Calling an event to a class in a different namespace Pin
roman_s1-Apr-10 5:50
roman_s1-Apr-10 5:50 
AnswerRe: Calling an event to a class in a different namespace Pin
Ghydo1-Apr-10 6:20
Ghydo1-Apr-10 6:20 
AnswerRe: Calling an event to a class in a different namespace Pin
Not Active1-Apr-10 6:37
mentorNot Active1-Apr-10 6:37 
QuestionError loading XML data Pin
billy_iii1-Apr-10 3:23
billy_iii1-Apr-10 3:23 
AnswerRe: Error loading XML data Pin
Garry J Evans1-Apr-10 6:19
Garry J Evans1-Apr-10 6:19 
GeneralRe: Error loading XML data Pin
billy_iii6-Apr-10 1:43
billy_iii6-Apr-10 1:43 
GeneralRe: Error loading XML data Pin
Garry J Evans6-Apr-10 2:54
Garry J Evans6-Apr-10 2:54 
QuestionDo I need to Dispose LINQ To SQL Data Context ? Pin
Nadia Monalisa1-Apr-10 1:35
Nadia Monalisa1-Apr-10 1:35 
Hi,
I am wondering, if I need to dispose the LINQ to SQL DataContext Object or it will be collected by the Garbase Collector ? In my ASP.NET Application, I am using many instances of DataContext Object in different method in a same page and my server complained that, I am causing memory issue. I am suspecting it could be related to my usage of LINQ to SQL DataContext, but I dont understand if I should use a single static DataContext in my Web Page so that all methods in the same page shares that DataContext Object or If I should create new instance of DataContext object in every method ? I placed the DataContext within a using statement so that it get disposed as soon as it is used, but I get an Exception 'Cannot access Disposed data context object'. So, I am getting more confused. How come the object gets Disposed already before using it ? Would you please tell me about the best way of disposing the data context in ASP.NET application so that I can optimize for memory usage ?
AnswerRe: Do I need to Dispose LINQ To SQL Data Context ? Pin
R. Giskard Reventlov1-Apr-10 1:41
R. Giskard Reventlov1-Apr-10 1:41 
GeneralRe: Do I need to Dispose LINQ To SQL Data Context ? Pin
Nadia Monalisa1-Apr-10 7:22
Nadia Monalisa1-Apr-10 7:22 
AnswerRe: Do I need to Dispose LINQ To SQL Data Context ? Pin
Not Active1-Apr-10 1:46
mentorNot Active1-Apr-10 1:46 
GeneralRe: Do I need to Dispose LINQ To SQL Data Context ? [modified] Pin
Nadia Monalisa1-Apr-10 7:14
Nadia Monalisa1-Apr-10 7:14 
GeneralRe: Do I need to Dispose LINQ To SQL Data Context ? Pin
Not Active1-Apr-10 7:34
mentorNot Active1-Apr-10 7:34 
GeneralRe: Do I need to Dispose LINQ To SQL Data Context ? Pin
Nadia Monalisa1-Apr-10 8:00
Nadia Monalisa1-Apr-10 8:00 
GeneralRe: Do I need to Dispose LINQ To SQL Data Context ? Pin
Not Active1-Apr-10 8:24
mentorNot Active1-Apr-10 8:24 
QuestionSelecting everything with CTRL+A Pin
teknolog1231-Apr-10 0:55
teknolog1231-Apr-10 0:55 
AnswerRe: Selecting everything with CTRL+A Pin
Mohammad Elsheimy1-Apr-10 1:14
Mohammad Elsheimy1-Apr-10 1:14 
AnswerRe: Selecting everything with CTRL+A Pin
Khaniya1-Apr-10 1:32
professionalKhaniya1-Apr-10 1:32 
GeneralRe: Selecting everything with CTRL+A Pin
teknolog1231-Apr-10 1:57
teknolog1231-Apr-10 1:57 
AnswerRe: Selecting everything with CTRL+A Pin
teknolog1231-Apr-10 1:52
teknolog1231-Apr-10 1:52 
GeneralRe: Selecting everything with CTRL+A Pin
Khaniya1-Apr-10 2:52
professionalKhaniya1-Apr-10 2:52 
QuestionDifferent number of overloaded constructors for same class in different computers [modified] Pin
free young1-Apr-10 0:31
free young1-Apr-10 0:31 
AnswerRe: Different number of overloaded constructors for same class in different computers Pin
Tej Aj1-Apr-10 1:36
Tej Aj1-Apr-10 1:36 
GeneralRe: Different number of overloaded constructors for same class in different computers Pin
free young1-Apr-10 18:21
free young1-Apr-10 18:21 
AnswerRe: Different number of overloaded constructors for same class in different computers Pin
PIEBALDconsult1-Apr-10 3:44
mvePIEBALDconsult1-Apr-10 3:44 

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.