Click here to Skip to main content
15,907,183 members
Home / Discussions / C#
   

C#

 
GeneralRe: Fixed: New Problem Pin
YagiSka7-Jun-03 19:02
YagiSka7-Jun-03 19:02 
GeneralRe: Fixed: New Problem Pin
leppie7-Jun-03 22:56
leppie7-Jun-03 22:56 
GeneralADO and C# (simple question) Pin
albean6-Jun-03 10:50
albean6-Jun-03 10:50 
GeneralRe: ADO and C# (simple question) Pin
Kant6-Jun-03 12:16
Kant6-Jun-03 12:16 
GeneralRe: ADO and C# (simple question) Pin
James T. Johnson6-Jun-03 13:11
James T. Johnson6-Jun-03 13:11 
GeneralRe: ADO and C# (simple question) Pin
Daniel Turini6-Jun-03 21:46
Daniel Turini6-Jun-03 21:46 
GeneralRe: ADO and C# (simple question) Pin
Kannan Kalyanaraman8-Jun-03 0:10
Kannan Kalyanaraman8-Jun-03 0:10 
GeneralRe: ADO and C# (simple question) Pin
Daniel Turini9-Jun-03 6:52
Daniel Turini9-Jun-03 6:52 
Kannan Kalyanaraman wrote:
From Chris's weblog, that doing so in normal desktop apps, which involves modest com interop, this could lead to additional problems.
Even though half of what he say's is above my head, I got curious after reading his concolusion part.
I'm a bit confused here, whether failing to do a releasecomobject would cause a performance penalty or a memory leak.
And also I would get more benefits only if its a server based app.
Here is the link

I love Chris's weblog. In this case, he's stating the obvious: after you call releasecomobject until it returns 0, you cannot access the component anymore (right, you released it!).
Now, he's right: on server applications (what I do for living) you normally have a disconnected model, so, once a "job" is finished, it's better you clean up everything, except caching data. On desktop applications, you normally code for responsiveness, so dangling references are common. In this case, you need to be careful to only releasecomobject when no one is accessing it.
If your COM objects are small and not in a big number, you don't have to worry, because it will take time, but the GC will clean it up. It's only on the case when you have 10MB of RAM taken by ADO recordsets that it becomes unacceptable, because it will take ages for the GC to clean up them.


Kant wrote:
Actually she replied back to me "You shouldn't fix the bug. You should kill it"
GeneralRe: ADO and C# (simple question) Pin
jspano7-Jun-03 17:12
jspano7-Jun-03 17:12 
Generalform event hierarchy Pin
albean6-Jun-03 8:55
albean6-Jun-03 8:55 
Generalapplication's path Pin
rabidDog6-Jun-03 5:35
rabidDog6-Jun-03 5:35 
GeneralRe: application's path Pin
Kannan Kalyanaraman6-Jun-03 5:44
Kannan Kalyanaraman6-Jun-03 5:44 
GeneralRe: application's path Pin
gek_at6-Jun-03 7:55
gek_at6-Jun-03 7:55 
GeneralRe: application's path Pin
dynamic7-Jun-03 13:07
dynamic7-Jun-03 13:07 
GeneralCause validation of Textbox control when a menu item is clicked Pin
DionChen6-Jun-03 5:20
DionChen6-Jun-03 5:20 
GeneralRe: Cause validation of Textbox control when a menu item is clicked Pin
leppie6-Jun-03 7:19
leppie6-Jun-03 7:19 
Generalauto-documentation Pin
Le centriste6-Jun-03 4:52
Le centriste6-Jun-03 4:52 
GeneralRe: auto-documentation Pin
Daniel Turini6-Jun-03 5:27
Daniel Turini6-Jun-03 5:27 
GeneralRe: auto-documentation Pin
Kannan Kalyanaraman6-Jun-03 5:29
Kannan Kalyanaraman6-Jun-03 5:29 
GeneralTx for both answers Pin
Le centriste6-Jun-03 5:42
Le centriste6-Jun-03 5:42 
Generalxlat MFC to C# (Thread question) Pin
albean6-Jun-03 3:04
albean6-Jun-03 3:04 
GeneralTurn off computer Pin
yarns5-Jun-03 20:49
yarns5-Jun-03 20:49 
GeneralRe: Turn off computer Pin
J. Dunlap5-Jun-03 20:57
J. Dunlap5-Jun-03 20:57 
GeneralRe: Turn off computer Pin
Member 128221435-Jun-03 21:18
Member 128221435-Jun-03 21:18 
GeneralRe: Turn off computer Pin
Nathan Blomquist6-Jun-03 2:33
Nathan Blomquist6-Jun-03 2:33 

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.