This project is read-only.

How to processing DdemlException?(Why internal Exception?)

Apr 3, 2013 at 2:36 AM
I'm writing DDE client program.

Target DDE server is streaming intermittent data.
And I want to use triger "Advise" and get all data by "Request" method.

but, sometime thrown "DdemlException" in "Request" method...
(DdemlClient.cpp : 813)

Why DdemlException is internal Exception?
and what to prosessing exception?

ex.

public MainForm()
{
InitializeComponent();

DdeClient clientForBoard = new DdeClient("RSS", "9501.T", this);
DdeClient clientForEvent = new DdeClient("RSS", "9501.T", this);

clientForBoard.Connect();
clientForEvent.Connect();
clientForEvent.Advise += client_Advise;

byte[] byteData = client.Request(key, 1, 6000); // Non thrown DdemlException

}

private void client_Advise(object sender, DdeAdviseEventArgs args)
{
try
{
byte[] byteData = client.Request(key, 1, 6000); // thrown DdemlException
}
catch(Exception)
{
// Not reach!
}
}