Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: HELP pls!!!! Pin
Daniele Mancini28-Jan-05 1:27
Daniele Mancini28-Jan-05 1:27 
GeneralRe: HELP pls!!!! Pin
Gregg Holter28-Jan-05 16:50
Gregg Holter28-Jan-05 16:50 
GeneralRe: HELP pls!!!! Pin
S. Senthil Kumar28-Jan-05 8:14
S. Senthil Kumar28-Jan-05 8:14 
GeneralRe: HELP pls!!!! Pin
Gregg Holter28-Jan-05 16:51
Gregg Holter28-Jan-05 16:51 
GeneralTreeview Pin
StephenMcAllister27-Jan-05 14:57
StephenMcAllister27-Jan-05 14:57 
GeneralRe: Treeview Pin
Robert Rohde27-Jan-05 20:14
Robert Rohde27-Jan-05 20:14 
GeneralValue of Custom Attribute on Enum Pin
Paul Watson27-Jan-05 14:08
sitebuilderPaul Watson27-Jan-05 14:08 
GeneralRe: Value of Custom Attribute on Enum Pin
leppie27-Jan-05 20:08
leppie27-Jan-05 20:08 
GeneralCrystal Report Deployment Problem.. Pin
Shady Aly27-Jan-05 13:05
Shady Aly27-Jan-05 13:05 
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 

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.