G
Guest
This post was placed in the Dotnet.framework.interop. I think it should have
been placed here. It should not be posted in two places. Sorry about that.
I have a class wrapped around some of the DDEML API functions. Normally, I
can instantiate this class and use it's method to return a value from a DDE
Server. This works great. Now what I really want to do is set this up to work
with the remoting framework. Please note the following steps I did:
1) Made the class wrapper remotable by inheriting from MarshalByRefObject
2) Set up a test remoting server application in Singleton mode with a
registered channel and the registered remotable class.
3) Set up a remoting client with a registered channel and the registered
remotable class.
Both the client application and the server application are on the same
machine for test purposes. When I instantiate the class from the client
application and call the method to retrieve a value from the DDE Server, the
application appears to hang and I do not get any value back. In steping
through the code in debug mode, I know that the remotable class is
instantiated with it's property values set correctly (I have property values
for Service, Topic, Name and Value). Where it hangs is when the DdeConnect
API call is made. This API call uses a callback function which is setup in
the same class. The callback function appears to get correctly initialized in
the DdeInitialize API call.
I'm new to DDEML and to remoting. Any help would be appreciated.
Thanks
been placed here. It should not be posted in two places. Sorry about that.
I have a class wrapped around some of the DDEML API functions. Normally, I
can instantiate this class and use it's method to return a value from a DDE
Server. This works great. Now what I really want to do is set this up to work
with the remoting framework. Please note the following steps I did:
1) Made the class wrapper remotable by inheriting from MarshalByRefObject
2) Set up a test remoting server application in Singleton mode with a
registered channel and the registered remotable class.
3) Set up a remoting client with a registered channel and the registered
remotable class.
Both the client application and the server application are on the same
machine for test purposes. When I instantiate the class from the client
application and call the method to retrieve a value from the DDE Server, the
application appears to hang and I do not get any value back. In steping
through the code in debug mode, I know that the remotable class is
instantiated with it's property values set correctly (I have property values
for Service, Topic, Name and Value). Where it hangs is when the DdeConnect
API call is made. This API call uses a callback function which is setup in
the same class. The callback function appears to get correctly initialized in
the DdeInitialize API call.
I'm new to DDEML and to remoting. Any help would be appreciated.
Thanks