Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program crashes after setting Grid.DataSource
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00910272
Message ID:
00914303
Vues:
25
It turns out that the event is raised by a background worker thread, so the code runs in that workspace where it is illegal to do any UI work. The fact that some of the UI work is fine while some causes the hanging is odd, but at least we know the cause now. The officially sactioned work-around is to use BeginInvoke(), but the timer work-around does the job as well. I'll try out BeginInvoke() at some point when there is more time to play with it.

Thanks everyone!
Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform