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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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(Int32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconnect()
at System.Windows.Forms.ConnectionPointCookie.Finalize()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(Int32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconnect()
at System.Windows.Forms.ConnectionPointCookie.Finalize()
Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconnect()
at System.Windows.Forms.OleInterfaces.StopEvents()
at System.Windows.Forms.OleInterfaces.Finalize()The program '[2708]
Viewer.exe' has exited with code 0 (0x0).
 
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 said:
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(Int32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconnect()
at System.Windows.Forms.ConnectionPointCookie.Finalize()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(Int32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconnect()
at System.Windows.Forms.ConnectionPointCookie.Finalize()
Unhandled Exception: System.NullReferenceException: Object reference not
set
to an instance of an object.
at System.Windows.Forms.IConnectionPoint.Unadvise(Int32 cookie)
at System.Windows.Forms.ConnectionPointCookie.Disconnect()
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 said:
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?
 
Back
Top