Since I have tried that, I now find that get the Unhandled Exception
"An exception occurred while dispatching a message to a log listener"
popping up multiple times when Icarus loads, rescans an assembly, or
runs tests. This happens even when I run Icarus from the official
Gallio build from the Internet.
Does this look familiar to any one as to what I may have screwed up?
Stack trace:
System.InvalidOperationException: Invoke or BeginInvoke cannot be
called on a control until the window handle has been created.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller,
Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.BeginInvoke(Delegate method,
Object[] args)
at Gallio.Icarus.Logging.RuntimeLogger.LogImpl(LogSeverity
severity, String message, ExceptionData exceptionData)
at Gallio.Runtime.Logging.DispatchLogger.Data.Dispatch(LogSeverity
severity, String message, ExceptionData exceptionData) in c:\Server
\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runtime\Logging
\DispatchLogger.cs:line 85
Reported by:
UnhandledExceptionPolicy
at Gallio.Common.Concurrency.LockBox`1.Read(ReadAction`1 action) in
c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Common
\Concurrency\LockBox.cs:line 61
at Gallio.Runner.DefaultTestRunner.TappedLogger.Handle(LogSeverity
severity, String message, ExceptionData exceptionData, Boolean log) in
c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runner
\DefaultTestRunner.cs:line 879
at Gallio.Runner.DefaultTestRunner.TappedLogger.LogImpl(LogSeverity
severity, String message, ExceptionData exceptionData) in c:\Server
\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runner
\DefaultTestRunner.cs:line 859
at
Gallio.Runtime.Hosting.IsolatedProcessHost.LogConsoleOutputWriteBufferedMessageSync()
in c:\Server\Projects\MbUnit v3.3\Work\src\Gallio\Gallio\Runtime
\Hosting\IsolatedProcessHost.cs:line 323
at
Gallio.Runtime.Hosting.IsolatedProcessHost.LogConsoleOutput(Object
sender, DataReceivedEventArgs e) in c:\Server\Projects\MbUnit v3.3\Work
\src\Gallio\Gallio\Runtime\Hosting\IsolatedProcessHost.cs:line 296
at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T]
(EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects
\MbUnit v3.3\Work\src\Gallio\Gallio\Common\Policies
\EventHandlerPolicy.cs:line 69
at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
at System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
at System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
at
System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage
msg)
at
System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage
msg, IMessageSink replySink)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
at
System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
--
You received this message because you are subscribed to the Google Groups "gallio-dev" group.
To post to this group, send email to galli...@googlegroups.com.
To unsubscribe from this group, send email to gallio-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gallio-dev?hl=en.
I submitted a patch along with another fix related to the Runtime Log: http://code.google.com/p/mb-unit/issues/detail?id=872. An easy work around though is to just make sure the Runtime Log window is visible before loading or running tests.-Scott
--
You received this message because you are subscribed to the Google Groups "gallio-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gallio-dev/-/nxvSJDHehwkJ.