Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program crashes after setting Grid.DataSource
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00910272
Message ID:
00914303
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform