If I start a new thread, and that thread executes a method that is contained in a referenced dll, how do they signal each other? Would this be considered a cross-process EventWaitHandle? It doesn't seem like it would be considering that the thread is started in the same process. I always pictured a "cross-process" as two separate executables that signal each other, but maybe it applies to references as well? I can't seem to figure this one out. Any suggestions would be great!
zachattack05
70
Posting Pro in Training
Recommended Answers
Jump to PostI'm not sure what you are asking. There is no signaling done when a thread executes something in a referenced DLL (unless the code being executed explicitly does thread signaling, just like any other code).
Jump to PostPersonally I'd have the StartServer method spawn the thread, rather than some other code. This way the method returns only when the thread starts, keeping that logic ecapsulated from your management form. StartServer could return a boolean indicating success.
All 8 Replies
Momerath
1,327
Nearly a Senior Poster
Featured Poster
zachattack05
70
Posting Pro in Training
Momerath
1,327
Nearly a Senior Poster
Featured Poster
zachattack05
70
Posting Pro in Training
Momerath
1,327
Nearly a Senior Poster
Featured Poster
zachattack05
commented:
Excellent idea!
+2
zachattack05
70
Posting Pro in Training
Momerath
1,327
Nearly a Senior Poster
Featured Poster
zachattack05
70
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.