https://bugzilla.novell.com/show_bug.cgi?id=377683
Summary: System.Windows.Forms.WebBrowser and
DocumentStream.Length
Product: Mono: Class Libraries
Version: 1.9.0
Platform: x86
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: DeveloperNet
I use a windows Form with a webbroswer component, if i handle Navigated event
with the code below, i have a crash who close my app, if yu comment the line
whose start with "DllEd += ", the app work great.
The Code :
long DllEd = 0;
private void webBrowser1_Navigated(object sender,
WebBrowserNavigatedEventArgs e)
{
DllEd += this.webBrowser1.DocumentStream.Length;
}
The Crash :
Flash Player: Warning: environment variable G_FILENAME_ENCODING is set and is
not UTF-8
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at NetRadios.Form1.webBrowser1_Navigated
(object,System.Windows.Forms.WebBrowserNavigatedEventArgs) [0x00000] in
/home/eric/tmp/NetRadios/NetRadios/Form1.cs:234
at System.Windows.Forms.WebBrowser.OnNavigated
(System.Windows.Forms.WebBrowserNavigatedEventArgs) [0x0001c] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:426
at System.Windows.Forms.WebBrowser.OnWebHostCompleted (object,System.EventArgs)
[0x00022] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/WebBrowser.cs:540
at Mono.Mozilla.WebBrowser.OnStateChange (int,uint) [0x000d9] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Mono.Mozilla/Mono.Mozilla/WebBrowser.cs:391
at (wrapper native-to-managed) Mono.Mozilla.WebBrowser.OnStateChange (int,uint)
<0x00046>
Also in the console where i start MD i have :
[EMAIL PROTECTED] Debug]$ monodevelop
ATTENTION [2008-04-07 19:35:16Z]: Inotify watch limit is too low (8192).
MonoDevelop will switch to managed file watching.
See http://www.monodevelop.com/Inotify_Watches_Limit for more info.
ATTENTION [2008-04-07 19:35:34Z]: L'élément 'BootstrapperPackage' de
l'ItemGroup n'est pas reconnu. Include='Microsoft.Net.Framework.2.0' du projet
'NetRadios'. Il sera ignoré.
ERREUR [2008-04-07 19:35:35Z]: Could not load assembly: System.Deployment
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs