Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Callback called twice
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00945184
Message ID:
00945194
Views:
22
Found the solution.
EndInvoke would always throw "Callback called twice:" exception
If interested, below is the solution:
AsyncResult ar=(AsyncResult)iar;
Download del=(Download)ar.AsyncDelegate;
_censusDataStream=(CensusDataStream)((IMethodReturnMessage) ((AsyncResult)iar).GetReplyMessage()).ReturnValue; //DOES THE  TRICK

//_censusDataStream=del.EndInvoke(iar); DOES NOT WORK- bug?
				
_ds=this.processStream(_censusDataStream.oStream);
FireStatusChangedEvent(DownloadStatus.NotDownloading,_ds); 
thanks,

Vlad
Previous
Reply
Map
View

Click here to load this message in the networking platform