Skip to content

Crashes when trying to see details of System.Windows.Forms.WebBrowser #19

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Execute in f#Interactive
let browser = new System.Windows.Forms.WebBrowser()
2. fseye pops up
3. browser variable is shown
4. trying to expand the browser-treenode result in closing the fseye-window and 
the following exceptions appear in f#interactive:

 System.NullReferenceException: Object reference not set to an instance of an object.
   at Swensen.FsEye.WatchModel.getPropertyWatch@181(Object ownerValue, Type ownerTy, PropertyInfo pi)
   at Swensen.FsEye.WatchModel.getMemberWatches@253-2.Invoke(MemberInfo m)
   at Microsoft.FSharp.Collections.IEnumerator.map@109.DoMoveNext(b& )
   at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeOuter@675[T,TResult](ConcatEnumerator`2 x, Unit unitVar0)
   at <StartupCode$FSharp-Core>.$Seq.MoveNextImpl@775.GenerateNext(IEnumerable`1& next)
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
   at Microsoft.FSharp.Collections.IEnumerator.map@109.DoMoveNext(b& )
   at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   at Microsoft.FSharp.Collections.IEnumerator.map@109.DoMoveNext(b& )
   at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.takeOuter@675[T,TResult](ConcatEnumerator`2 x, Unit unitVar0)
   at <StartupCode$FSharp-Core>.$Seq.MoveNextImpl@775.GenerateNext(IEnumerable`1& next)
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
   at Microsoft.FSharp.Collections.SeqModule.ToArray[T](IEnumerable`1 source)
   at <StartupCode$FsEye>.$WatchTreeView.loadWatches@159(WatchTreeView this, SynchronizationContext context, TreeNode node, Watch watch)
   at <StartupCode$FsEye>.$WatchTreeView.-ctor@203-14.Invoke(TreeViewEventArgs args)
   at Microsoft.FSharp.Control.CommonExtensions.SubscribeToObservable@1777.OnNext(T value)
   at Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers.h@744.Invoke(Object _arg1, TArgs args)
   at <StartupCode$FsEye>.$WatchTreeView.-ctor@203-13.Invoke(Object sender, TreeViewEventArgs e)
   at System.Windows.Forms.TreeView.OnAfterExpand(TreeViewEventArgs e)
   at System.Windows.Forms.TreeView.TvnExpanded(NMTREEVIEW* nmtv)
   at System.Windows.Forms.TreeView.WmNotify(Message& m)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Stopped due to error
Microsoft.FSharp.Compiler.ErrorLogger+StopProcessing: Exception of type 
'Microsoft.FSharp.Compiler.ErrorLogger+StopProcessing' was thrown.
   at Microsoft.FSharp.Compiler.Interactive.Shell.ErrorLoggerThatStopsOnFirstError.AbortOnError()
   at Microsoft.FSharp.Compiler.Interactive.Shell.threadException@2131-1.Invoke(Unit unitVar0)
   at Microsoft.FSharp.Compiler.Interactive.Shell.threadException@2129[a](ErrorLoggerThatStopsOnFirstError errorLogger, a exn)
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.WndProcException(Exception e)
   at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
   at System.Windows.Forms.Control.WmNotify(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Stopped due to error
Microsoft.FSharp.Compiler.ErrorLogger+StopProcessing: Exception of type 
'Microsoft.FSharp.Compiler.ErrorLogger+StopProcessing' was thrown.
   at Microsoft.FSharp.Compiler.Interactive.Shell.ErrorLoggerThatStopsOnFirstError.AbortOnError()
   at Microsoft.FSharp.Compiler.Interactive.Shell.threadException@2131-1.Invoke(Unit unitVar0)
   at Microsoft.FSharp.Compiler.Interactive.Shell.threadException@2129[a](ErrorLoggerThatStopsOnFirstError errorLogger, a exn)
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.WndProcException(Exception e)
   at System.Windows.Forms.Control.ControlNativeWindow.OnThreadException(Exception e)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.DefWndProc(Message& m)
   at System.Windows.Forms.TreeView.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


What version of the product are you using? On what operating system?
Windows 7 64-bit
VS 2010 .net 4.0
fseye 1.0.0-final




Original issue reported on code.google.com by Frederik...@gmail.com on 28 Feb 2012 at 4:20

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions