correosdelbosque / progressive-scroll

Automatically exported from code.google.com/p/progressive-scroll
1 stars 0 forks source link

ProgressiveScroll.OnTagsChanged() throws InvalidOperationException exception. #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load a native (C++) solution.
2. Work in the solution as per usual; build, debug, edit, etc.
3. Eventually you'll get a message box about an unhandled exception.

What is the expected output? What do you see instead?

I expect to see the graceful handling of exceptions.

What version of the product are you using? On what operating system?

vs2012 (with Visual Assist), Win7 SP1 x64.

Please provide any additional information below.

Here's a callstack taken from VS11's ActiviyLog.xml

System.InvalidOperationException: Cannot perform this operation while 
dispatcher processing is suspended.
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at ProgressiveScroll.ProgressiveScroll.OnTagsChanged(Object sender, EventArgs e)
   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)

Original issue reported on code.google.com by martin.r...@gmail.com on 10 Jan 2013 at 10:03

GoogleCodeExporter commented 8 years ago
When I wrote this (read: hacked this together), I didn't have any understanding 
of WPF and its threading model. Mea culpa.

Original comment by freaksken on 10 May 2013 at 9:08