Click here to Skip to main content
15,919,245 members
Home / Discussions / C#
   

C#

 
GeneralRe: Crystal Report Deployment Problem.. Pin
DougW4830-Jan-05 16:59
DougW4830-Jan-05 16:59 
GeneralCompile Problems Pin
thepersonof27-Jan-05 10:57
thepersonof27-Jan-05 10:57 
GeneralRe: Compile Problems Pin
thepersonof28-Jan-05 9:01
thepersonof28-Jan-05 9:01 
GeneralKilling applications Pin
Esmo200027-Jan-05 9:55
Esmo200027-Jan-05 9:55 
GeneralRe: Killing applications Pin
Dave Kreskowiak27-Jan-05 10:48
mveDave Kreskowiak27-Jan-05 10:48 
GeneralRe: Killing applications Pin
Dennis C. Dietrich27-Jan-05 11:09
Dennis C. Dietrich27-Jan-05 11:09 
GeneralRe: Killing applications Pin
Dave Kreskowiak28-Jan-05 1:17
mveDave Kreskowiak28-Jan-05 1:17 
GeneralRe: Killing applications Pin
Dennis C. Dietrich28-Jan-05 11:59
Dennis C. Dietrich28-Jan-05 11:59 
Dave Kreskowiak wrote:
If the process doesn't close nicely and it has unmanaged resources open, like most apps do anyway, those resources will suddenly find themselves orphaned. Kill enough apps like this and you'll evently run the system out of resources.

You won't run out of resources in most cases. Any resource used by a process will be freed when a process terminates regardless of the reason for the termination, including the use of TerminateProcess()[^] (see Terminating a Process[^]).

Dave Kreskowiak wrote:
Also, if the new process he launches launches other processes itself, those become orphaned.

This is indeed one of the rare cases in which it would be a problem if the child processes don't exit on their own. However, if you really need to divide a solution in multiple processes the child processes should be able to handle the situation (the parent process might simply crash for example).

Dave Kreskowiak wrote:
It's just not a good programming practice.

I generally agree about that and definitely try to avoid it but if you want to automate a third-party tool (which could possibly be buggy), terminating the process might be the only possibility to handle certain situations.

Best regards
Dennis
Generaldata grid Pin
webhay27-Jan-05 9:03
webhay27-Jan-05 9:03 
GeneralRe: data grid Pin
aplope27-Jan-05 9:31
aplope27-Jan-05 9:31 
GeneralRe: data grid Pin
webhay27-Jan-05 9:34
webhay27-Jan-05 9:34 
GeneralRe: data grid Pin
Robert Rohde27-Jan-05 20:24
Robert Rohde27-Jan-05 20:24 
GeneralApplication will not restore after being minimized Pin
JayN27-Jan-05 8:27
JayN27-Jan-05 8:27 
GeneralTooltips in the Menu Pin
TheDen27-Jan-05 8:16
TheDen27-Jan-05 8:16 
GeneralRe: Tooltips in the Menu Pin
Dave Kreskowiak27-Jan-05 10:45
mveDave Kreskowiak27-Jan-05 10:45 
GeneralRe: Tooltips in the Menu Pin
TheDen27-Jan-05 11:07
TheDen27-Jan-05 11:07 
Question.Net whaaaaah??? Pin
dazler27-Jan-05 6:35
dazler27-Jan-05 6:35 
AnswerRe: .Net whaaaaah??? Pin
tojamismis27-Jan-05 9:40
tojamismis27-Jan-05 9:40 
GeneralTricky exception handling Pin
Quimbly27-Jan-05 6:03
Quimbly27-Jan-05 6:03 
GeneralRe: Tricky exception handling Pin
Charlie Williams27-Jan-05 6:26
Charlie Williams27-Jan-05 6:26 
GeneralRe: Tricky exception handling Pin
leppie27-Jan-05 8:10
leppie27-Jan-05 8:10 
GeneralRepainting Controls on a form... Pin
new_phoenix27-Jan-05 5:34
new_phoenix27-Jan-05 5:34 
GeneralRe: Repainting Controls on a form... Pin
Heath Stewart27-Jan-05 12:10
protectorHeath Stewart27-Jan-05 12:10 
GeneralCombining .wav files Pin
ziggy8227-Jan-05 5:29
ziggy8227-Jan-05 5:29 
GeneralRe: Combining .wav files Pin
mav.northwind27-Jan-05 7:00
mav.northwind27-Jan-05 7:00 

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.