I didn't notice right away why you should "never" do such a thing until i read James' comment.
Would you please be more specific in your post?
Please "Don't Make Me Think" (borrowed from a book-title) ;)
By the way, I can only "assume" that one should not write such code because it will create an infinite loop. But are there any reason that you think why nobody should write such a code?
Running the same app multiple times isn't all of the problem. Even if each app merely started-up, launched the other program, and died, you'd still have a tremendous strain on the system, even though at any given time, only one instance of each program is in memory. (And stopping the cycle would probably require rebooting).
> Email-style angle brackets
> are used for blockquotes.
> > And, they can be nested.
> #### Headers in blockquotes
>
> * You can quote a list.
> * Etc.
Horizontal Rules
Three or more dashes or asterisks:
---
* * *
- - - -
Manual Line Breaks
End a line with two or more spaces:
Roses are red,
Violets are blue.
Fenced Code Blocks
Code blocks delimited by 3 or more backticks or tildas:
```
This is a preformatted
code block
```
Header IDs
Set the id of headings with {#<id>} at end of heading line:
## My Heading {#myheading}
Tables
Fruit |Color
---------|----------
Apples |Red
Pears |Green
Bananas |Yellow
Definition Lists
Term 1
: Definition 1
Term 2
: Definition 2
Footnotes
Body text with a footnote [^1]
[^1]: Footnote text here
Abbreviations
MDD <- will have title
*[MDD]: MarkdownDeep
FUTURE POSTS
No future posts left, oh my!
RECENT SERIES
Challenge
(75): 01 Jul 2024 - Efficient snapshotable state
Recording
(14): 19 Jun 2024 - Building a Database Engine in C# & .NET
Comments
Wow.... There's a whole bunch of things not to do there.
There's the obvious infinite loop to launching programs.
Then there's hard-coding a complex relative path,
and hard-coding a reference to a (debug) developement folder.
I didn't notice right away why you should "never" do such a thing until i read James' comment.
Would you please be more specific in your post?
Please "Don't Make Me Think" (borrowed from a book-title) ;)
By the way, I can only "assume" that one should not write such code because it will create an infinite loop. But are there any reason that you think why nobody should write such a code?
Actually, the recursive was what I referred
The hard coding is fine, those are test programs.
Sung,
I am posting posts that should make you think.
At the very least, they should spark some conversation.
The main issue is that this will create more and more processes.
The problem with that is that there is no easy way to stop them. At worst, this can make the OS unresponsive and require a forced shutdown to fix
That's assuming of course that duplication is allowed. It could be modified to only allow once instance of each to be running.
Did you try to run at least one of them?...
Isn't a Server starting its Client something like a tail wagging the dog?
Again, this is test code
You can set multiple startup projects in VS if this is how you are testing
Martin,
I didn't know that, how?
Multiple Startup projects:
http://msdn.microsoft.com/en-us/library/ms165413.aspx
thanks
@[ICR]
Running the same app multiple times isn't all of the problem. Even if each app merely started-up, launched the other program, and died, you'd still have a tremendous strain on the system, even though at any given time, only one instance of each program is in memory. (And stopping the cycle would probably require rebooting).
Thanks for the good laugh this morning.
Comment preview