TheCodeKing / XDMessaging.Net

Easy-to-use, zero configuration solution for PubSub messaging across application and network boundaries.
http://thecodeking.co.uk/project/xdmessaging/
Other
61 stars 21 forks source link

Unhandled exception in MailSlotReader.Listener #1

Closed amgalbu closed 11 years ago

amgalbu commented 11 years ago

Hello I think a control is missing in the MailSlotReader.Listen method I think a check if the object has been disposes is required to avoid SEHException when closing file. I changed code like this

            if (!disposed)
            {
                // error so clode handle and re-open
                Native.CloseHandle(fileHandle);
                fileHandle = IntPtr.Zero;
            }

Am I correct?

TheCodeKing commented 11 years ago

Thanks for letting me know. I'm actually removing the mailslots implementation as they are too unreliable. The next version will use Amazon queues instead.

Closing as MailSlots are no longer supported.