Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Jul 13, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected](MemberInfo m)
   at [email protected](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>[email protected](IEnumerable`1& next)
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.MoveNextImpl()
   at Microsoft.FSharp.Core.CompilerServices.GeneratedSequenceBase`1.System-Collections-IEnumerator-MoveNext()
   at [email protected](b& )
   at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
   at [email protected](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>[email protected](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>[email protected](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>[email protected](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 [email protected] on 28 Feb 2012 at 4:20

@GoogleCodeExporter
Copy link
Author

Thanks for your report, Frederik. I hope to look into this over the next week.

Original comment by [email protected] on 5 Apr 2012 at 11:00

@GoogleCodeExporter
Copy link
Author

Bug verified: the problem is that the WebBrowser.Site property is not readable 
(has a setter but not a getter). Will fix by either skipping write-only 
properties altogether or displaying with a message explaining that the value 
cannot be retrieved.

Original comment by [email protected] on 8 Apr 2012 at 1:06

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r254.

Original comment by [email protected] on 8 Apr 2012 at 1:46

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 13 Apr 2012 at 7:47

  • Added labels: Milestone-Release1.0.1

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

No branches or pull requests

1 participant