G
Guest
I have a Win CE v5.0 app I'm building, and I'm trying to use Asynchronous
delegates. It does correctly compile, but I get a runtime
"NotSupportedException" when I hit my Asynchronous delegate code.
Here is a sample:
public delegate String MovementTaskSelect(String primaryKey);
MovementTaskSelect query = new MovementTaskSelect(object.methodName);
query.BeginInvoke("12345", new
AsyncCallback(this.ProcessedQueryResultsAsync), query);
public void ProcessedQueryResultsAsync(IAsyncResult result)
{
try
{
// Step 1 - Harvest results.
MovementTaskSelect query =
(MovementTaskSelect)result.AsyncState;
String queryResults = query.EndInvoke(result);
}
catch (Exception e) // Handle any exceptions that got marshalled
back to us when we called the EndInvoke() method above.
{
}
}
Thanks for any suggestions on how to make Asynchronous delegates work on the
CF v2.0
delegates. It does correctly compile, but I get a runtime
"NotSupportedException" when I hit my Asynchronous delegate code.
Here is a sample:
public delegate String MovementTaskSelect(String primaryKey);
MovementTaskSelect query = new MovementTaskSelect(object.methodName);
query.BeginInvoke("12345", new
AsyncCallback(this.ProcessedQueryResultsAsync), query);
public void ProcessedQueryResultsAsync(IAsyncResult result)
{
try
{
// Step 1 - Harvest results.
MovementTaskSelect query =
(MovementTaskSelect)result.AsyncState;
String queryResults = query.EndInvoke(result);
}
catch (Exception e) // Handle any exceptions that got marshalled
back to us when we called the EndInvoke() method above.
{
}
}
Thanks for any suggestions on how to make Asynchronous delegates work on the
CF v2.0