EldoS | Feel safer!

Software components for data protection, secure storage and transfer

No Callbacks on MMF Transport (Win XP, 1.5.7.59)

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#4352
Posted: 11/19/2007 06:41:34
by Adam Leyshon (Standard support level)
Joined: 05/08/2007
Posts: 23

Hi Again,
Bit of trouble with the MMF Transports im using MsgConnect20.Dll for .NET version 1.5.7.59

When I Use:
Code
Debug.Print(MyName & " Says: Notifying Manager")
            Dim Msg As MCMessage = MCMessenger.CreateMessageFromText(1, 1, 1, "New Update Definitions", ASCII, False)
            Dim Cred As New MCMessageCredentials("CSAUS", "CSAUS")
            MMFMessenger.SendMessageTimeoutCallback("MMF:CUAUH|CUAUH", Msg, _
            4000, AddressOf NotifySend, AddressOf NotifyTimeout, AddressOf NotifyFailed, Nothing, Cred)
            Debug.Print(MyName & " Says: Message Sent, Waiting for Callback")
            Msg = Nothing
            Cred = Nothing

The Event Callbacks never get fired, any ideas why?
If the other program is running the message sends fine but still no callback.
I see these debug messages in the sending program:
Code
12:32:29Thread Name = MMF_Sender :: SendMessage - Waiting for FreeMutex
12:32:29Thread Name = MMF_Sender :: SendMessage - sending message 1
12:32:29Thread Name = MMF_Sender :: SendMessage - waiting for reply flag. Sent 159 of 159 bytes
12:32:29Thread Name = MMF_Sender :: SendMessage - receipt set
12:32:29Thread Name = MMF_Sender :: SendMessage - message 1 sent
12:32:31Thread Name = MMF_Receiver :: ReceiveMessage - initialization
12:32:31Thread Name = MMF_Receiver :: ReceiveMessage - waiting for receipt flag. Received 0 of 137 bytes
12:32:31Thread Name = MMF_Receiver :: ReceiveMessage - receipt received
12:32:31Thread Name = MMF_Receiver :: ReceiveMessage - data transferred completely
12:32:31Thread Name = MMF_Receiver :: ReceiveMessage - message 1 received
12:32:31Thread Name =  :: Message 1 (reply?) received by transport

Then in the receive side i get:
Code
12:44:32Thread Name = MMF_Receiver :: ReceiveMessage - initialization
12:44:32Thread Name = MMF_Receiver :: ReceiveMessage - waiting for receipt flag. Received 0 of 159 bytes
12:44:32Thread Name = MMF_Receiver :: ReceiveMessage - receipt received
12:44:32Thread Name = MMF_Receiver :: ReceiveMessage - data transferred completely
12:44:32Thread Name = MMF_Receiver :: ReceiveMessage - message 1 received
12:44:32Thread Name = MMF_Sender :: SendMessage - Waiting for FreeMutex
12:44:32Thread Name = MMF_Sender :: SendMessage - sending message 1
12:44:32Thread Name = MMF_Sender :: SendMessage - waiting for reply flag. Sent 137 of 137 bytes
12:44:32Thread Name = MMF_Sender :: SendMessage - receipt set
12:44:32Thread Name = MMF_Sender :: SendMessage - message 1 sent
#4354
Posted: 11/19/2007 09:37:43
by Adam Leyshon (Standard support level)
Joined: 05/08/2007
Posts: 23

Im really sorry but can you close this?
I made a mistake, I forgot to enable my DispatchMessages Timer :(

Reply

Statistics

Topic viewed 2861 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!