Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
AnswerRe: Placeholders in C#? Pin
Steven Lyons30-Oct-02 19:44
Steven Lyons30-Oct-02 19:44 
AnswerRe: Placeholders in C#? Pin
Daniel Turini31-Oct-02 8:09
Daniel Turini31-Oct-02 8:09 
Questionwhy a referenced dll can not check out??? Pin
fftongzhi30-Oct-02 15:40
fftongzhi30-Oct-02 15:40 
AnswerRe: why a referenced dll can not check out??? Pin
Daniel Turini31-Oct-02 8:04
Daniel Turini31-Oct-02 8:04 
GeneralRe: why a referenced dll can not check out??? Pin
fftongzhi31-Oct-02 14:27
fftongzhi31-Oct-02 14:27 
GeneralIndexer problem Pin
nothign12312330-Oct-02 11:31
nothign12312330-Oct-02 11:31 
GeneralStrange Mutex Behavior Pin
EricK730-Oct-02 9:26
sussEricK730-Oct-02 9:26 
GeneralRe: Strange Mutex Behavior Pin
EricK730-Oct-02 11:17
sussEricK730-Oct-02 11:17 
I figured out some more details of what's going on. It is still a mystery to me.

My application actually does more than just shutdown when it finds out that there is another instance of the application running. It notifies the first instance that there was an attempt to open another instance. It does so by using Remoting, marshalling a communicator object using a TcpChannel.

When the first instance starts it begins by creating a Mutex, it then creates the communicator object, publishes it to a Uri, creates a TcpChannel, and registers the TcpChannel. The Mutex suceeds in blocking all subsequent instances up until the point it creates the TcpChannel. The thread should still own the Mutex since I neither removed the Mutex nor exited the thread. The funny thing is that when debug information is included and compiler optimization is turned off, the Mutex blocks until the first instance is closed...

The line that creates the TcpChannel, and which seems to be causing the problems with the Mutex is as follows:
TcpChannel tcp = New TcpChannel(props, null, null);

where props is justa hastable with bindTo=127.0.0.1 and port=0.

Any ideas?
GeneralRe: Strange Mutex Behavior Pin
Richard Deeming30-Oct-02 23:50
mveRichard Deeming30-Oct-02 23:50 
GeneralRe: Strange Mutex Behavior Pin
EricK731-Oct-02 3:40
sussEricK731-Oct-02 3:40 
GeneralInitiateComponents() Pin
Donald Blachly30-Oct-02 4:05
Donald Blachly30-Oct-02 4:05 
GeneralRe: InitiateComponents() Pin
Stephane Rodriguez.30-Oct-02 4:18
Stephane Rodriguez.30-Oct-02 4:18 
GeneralRe: InitiateComponents() Pin
James T. Johnson30-Oct-02 4:28
James T. Johnson30-Oct-02 4:28 
GeneralRe: InitializeComponent() Pin
Donald Blachly30-Oct-02 13:32
Donald Blachly30-Oct-02 13:32 
GeneralRe: InitializeComponent() Pin
James T. Johnson30-Oct-02 13:36
James T. Johnson30-Oct-02 13:36 
GeneralRe: InitiateComponents() Pin
Senkwe Chanda31-Oct-02 1:54
Senkwe Chanda31-Oct-02 1:54 
General2 questions Pin
Anonymous29-Oct-02 19:12
Anonymous29-Oct-02 19:12 
GeneralRe: 2 questions Pin
David Stone29-Oct-02 19:58
sitebuilderDavid Stone29-Oct-02 19:58 
GeneralRe: 2 questions Pin
Nnamdi Onyeyiri29-Oct-02 20:51
Nnamdi Onyeyiri29-Oct-02 20:51 
GeneralRe: 2 questions Pin
David Stone30-Oct-02 16:28
sitebuilderDavid Stone30-Oct-02 16:28 
GeneralRe: 2 questions Pin
Nnamdi Onyeyiri31-Oct-02 5:14
Nnamdi Onyeyiri31-Oct-02 5:14 
GeneralRe: 2 questions Pin
Paul Riley29-Oct-02 23:13
Paul Riley29-Oct-02 23:13 
Questionhow to list all the PCs within a group using Active Directory?? Pin
Wang Kaiming29-Oct-02 19:02
Wang Kaiming29-Oct-02 19:02 
AnswerRe: how to list all the PCs within a group using Active Directory?? Pin
Mazdak30-Oct-02 0:07
Mazdak30-Oct-02 0:07 
AnswerRe: how to list all the PCs within a group using Active Directory?? Pin
David Stone30-Oct-02 13:44
sitebuilderDavid Stone30-Oct-02 13:44 

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.