Click here to Skip to main content
14,659,351 members
Home » Discussions » C#
   

C#

 
GeneralRe: problem creating files with iso-8859-2 encoding Pin
cellardoor071631-Jul-08 0:34
Membercellardoor071631-Jul-08 0:34 
QuestionWhere do I release my object's expensive resources, if not in the destructor? Pin
JoeRip30-Jul-08 20:57
MemberJoeRip30-Jul-08 20:57 
AnswerRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Christian Graus30-Jul-08 20:58
mveChristian Graus30-Jul-08 20:58 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
JoeRip30-Jul-08 21:09
MemberJoeRip30-Jul-08 21:09 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
JoeRip30-Jul-08 21:10
MemberJoeRip30-Jul-08 21:10 
AnswerRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Guffa30-Jul-08 21:40
MemberGuffa30-Jul-08 21:40 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
JoeRip30-Jul-08 21:44
MemberJoeRip30-Jul-08 21:44 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Frank Horn31-Jul-08 3:24
MemberFrank Horn31-Jul-08 3:24 
I have this problem with Enterprise Architect (modelling software from Sparx). The program exposes a COM automation interface for add ins, and when you write an add in with C# it can happen that the application refuses to close because your add in's COM reference which has not been garbage collected.

Sparx recommends to call GC.Collect() and GC.WaitForPendingFinalizers(). Maybe you can do this in your Dispose() method after releasing the COM reference. It's often said one should not call the GC methods for performance reasons, but when it's about releasing a big COM object they're probably justified.
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Christian Graus30-Jul-08 23:55
mveChristian Graus30-Jul-08 23:55 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Scott Dorman2-Aug-08 15:26
professionalScott Dorman2-Aug-08 15:26 
AnswerRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Alan Balkany31-Jul-08 3:23
MemberAlan Balkany31-Jul-08 3:23 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
JoeRip31-Jul-08 3:26
MemberJoeRip31-Jul-08 3:26 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Alan Balkany31-Jul-08 4:17
MemberAlan Balkany31-Jul-08 4:17 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Scott Dorman2-Aug-08 15:32
professionalScott Dorman2-Aug-08 15:32 
GeneralRe: Where do I release my object's expensive resources, if not in the destructor? Pin
Scott Dorman2-Aug-08 15:23
professionalScott Dorman2-Aug-08 15:23 
QuestionCannot debug c# dll Pin
manju#12330-Jul-08 20:36
Membermanju#12330-Jul-08 20:36 
AnswerRe: Cannot debug c# dll Pin
Christian Graus30-Jul-08 20:59
mveChristian Graus30-Jul-08 20:59 
Questionhow many rows and columns are hidden in an excel sheet Pin
Mogaambo30-Jul-08 20:20
MemberMogaambo30-Jul-08 20:20 
Question'switch' statement efficiency in C# Pin
scody30-Jul-08 19:50
Memberscody30-Jul-08 19:50 
AnswerRe: 'switch' statement efficiency in C# Pin
Christian Graus30-Jul-08 20:07
mveChristian Graus30-Jul-08 20:07 
GeneralRe: 'switch' statement efficiency in C# Pin
scody30-Jul-08 21:12
Memberscody30-Jul-08 21:12 
AnswerRe: 'switch' statement efficiency in C# Pin
Guffa30-Jul-08 22:02
MemberGuffa30-Jul-08 22:02 
GeneralRe: 'switch' statement efficiency in C# Pin
leppie30-Jul-08 22:52
Memberleppie30-Jul-08 22:52 
GeneralRe: 'switch' statement efficiency in C# Pin
Christian Graus30-Jul-08 23:57
mveChristian Graus30-Jul-08 23:57 
GeneralRe: 'switch' statement efficiency in C# Pin
leppie31-Jul-08 0:14
Memberleppie31-Jul-08 0:14 

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.