Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Callback called twice
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00945184
Message ID:
00945194
Vues:
21
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform