For Programmers: Free Programming Magazines  


Home > Archive > C# > June 2004 > event handling problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author event handling problem
Juli Bieberstein

2004-06-03, 7:31 pm

Hi,

I have problems with event handling in C#. I want to use an asynchron
method with two corresponding events (belonging to a COM-Object -
mapserver4):

rle = routeLister as ROUTINGLib.IRouteListerEvents9_Event;
rle.OnCalculated += new
ROUTINGLib. IRouteListerEvents_OnCalculatedEventHand
ler_9(OnCalculated);
rle.OnError += new ROUTINGLib. IRouteListerEvents_OnErrorEventHandler_9
(OnError);

Later on, I call the method (CalcRouteSimple)and the programm goes on,
but the event methods are not executed at all. Do I have to use
Threads / Thread Pooling?

Thanks for any help!

Juli
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com