J
J. Clay
I have a couple of windows form applications that I am wanting to integrate
and have been playing around with the Single Instance Application setting.
I have tried this with my own app and the sample SingleInstance05 that I got
from MSDN. I can run it, but if I go to a cmd console and go to the bin
directory and try and run the app again to trigger the SingleInstance
functionality, I get a System.AccessViolationException of
{"Attempted to read or write protected memory. This is often an indication
that other memory is corrupt."}
The stackTrace is as follows:
at
System.Net.UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(SafeCloseSocket
socketHandle, IntPtr overlapped, UInt32& bytesTransferred, Boolean wait,
IntPtr ignored)
at
System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at
System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Any suggestions?
TIA,
J. Clay
and have been playing around with the Single Instance Application setting.
I have tried this with my own app and the sample SingleInstance05 that I got
from MSDN. I can run it, but if I go to a cmd console and go to the bin
directory and try and run the app again to trigger the SingleInstance
functionality, I get a System.AccessViolationException of
{"Attempted to read or write protected memory. This is often an indication
that other memory is corrupt."}
The stackTrace is as follows:
at
System.Net.UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(SafeCloseSocket
socketHandle, IntPtr overlapped, UInt32& bytesTransferred, Boolean wait,
IntPtr ignored)
at
System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at
System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
Any suggestions?
TIA,
J. Clay