By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

'System.NullReferenceException' occurred in system.windows.forms.d

P: n/a
i have a windows form(Main) with listview, when click an item in listview i
open other window form (Sub) which generate the selected item from parent
window in as treeview items when click any item in treeview i display the
content item in axWebBrowser, i close the sub form normally when i close the
main the following error is generated

An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an object.

i tried to trace the closing event in my application there is no exeception,
so im confused what causing this problem?
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
a full detailed error:
An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an object.
An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an object.

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int 32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconn ect()
at System.Windows.Forms.ConnectionPointCookie.Finaliz e()An unhandled
exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an object.
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int 32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconn ect()
at System.Windows.Forms.ConnectionPointCookie.Finaliz e()
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int 32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconn ect()
at System.Windows.Forms.OleInterfaces.StopEvents()
at System.Windows.Forms.OleInterfaces.Finalize()The program '[2708]
Viewer.exe' has exited with code 0 (0x0).
"Raed Sawalha" wrote:
i have a windows form(Main) with listview, when click an item in listview i
open other window form (Sub) which generate the selected item from parent
window in as treeview items when click any item in treeview i display the
content item in axWebBrowser, i close the sub form normally when i close the
main the following error is generated

An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an object.

i tried to trace the closing event in my application there is no exeception,
so im confused what causing this problem?

Nov 17 '05 #2

P: n/a
Hi,

Can you post some code?
Also are you using something especial in your form? any third party
controls,etc?

the trace you are getting are all members of the framework, I do not see any
members from your class.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
a full detailed error:
An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an
object.
An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an
object.

Unhandled Exception: System.NullReferenceException: Object reference not
set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int 32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconn ect()
at System.Windows.Forms.ConnectionPointCookie.Finaliz e()An unhandled
exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an
object.
Unhandled Exception: System.NullReferenceException: Object reference not
set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int 32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconn ect()
at System.Windows.Forms.ConnectionPointCookie.Finaliz e()
Unhandled Exception: System.NullReferenceException: Object reference not
set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int 32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconn ect()
at System.Windows.Forms.OleInterfaces.StopEvents()
at System.Windows.Forms.OleInterfaces.Finalize()The program '[2708]
Viewer.exe' has exited with code 0 (0x0).
"Raed Sawalha" wrote:
i have a windows form(Main) with listview, when click an item in listview
i
open other window form (Sub) which generate the selected item from parent
window in as treeview items when click any item in treeview i display the
content item in axWebBrowser, i close the sub form normally when i close
the
main the following error is generated

An unhandled exception of type 'System.NullReferenceException' occurred
in
system.windows.forms.dll

Additional information: Object reference not set to an instance of an
object.

i tried to trace the closing event in my application there is no
exeception,
so im confused what causing this problem?

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.