mailslot - testing

  • Thread starter Thread starter vertigo
  • Start date Start date
V

vertigo

Hello

I've tried to create mailslot server, and send there some packets.
On both sides every operation is successful, but on server side message
do not appear.
Is there any client under windowsXP which could send some mailslot
packets to my host ?
Is there any command (like netstat for TCP) which could detect mailslot
server listening ?

Thanx
Michal
 
i found that when i receive packet (GetMailslotInfo received number of
packets >0), and try to read it:

[DllImport("kernel32.dll")]
static extern bool ReadFile(IntPtr handle, ref string Buffer,
int NumberOfBytesToRead, ref int NumberOfBytesRead, IntPtr Overlapped);

public bool Read(ref string Buffer, int NumberOfBytesToRead, ref int
NumberOfBytesRead)
{
bool bSuccess = ReadFile(m_hMailslot, ref Buffer, NumberOfBytesToRead,
ref NumberOfBytesRead, IntPtr.Zero);
return bSuccess;
}

my server program is closed and window appears with:
JIT debuggine error. Could not load service because it's disabled.
(it's my debugger problem, which service should i enable ?).

So my program hangs durring ReadFile - where is my error ?
Thanx
Michal
 
Back
Top