Jump to content
Software FX Community

Null reference exception in "OnMouseDown"


User (Legacy)

Recommended Posts

Project: Windows Form

Language: C#

Drop a chart onto the form and set the legend box to true i.e.

this.chart1.LegendBox = true;

Run the project and click on the Legend.

This will produce the following exception.

Message:

Object reference not set to an instance of an object.

Stack Trace:

at SoftwareFX.ChartFX.Lite.R.OnMouseDown(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button,

Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32

msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

at

System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho

ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,

Int32 pvLoopData)

at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,

ApplicationContext context)

at System.Windows.Forms.Application.Run(Form mainForm)

~Bill

Link to comment
Share on other sites

Project: Windows Form

Language: C#

Drop a chart onto the form and set the legend box to true i.e.

this.chart1.LegendBox = true;

Run the project and click on the Legend.

This will produce the following exception.

Message:

Object reference not set to an instance of an object.

Stack Trace:

at SoftwareFX.ChartFX.Lite.R.OnMouseDown(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button,

Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32

msg, IntPtr wparam, IntPtr lparam)

at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

at

System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho

ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,

Int32 pvLoopData)

at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,

ApplicationContext context)

at System.Windows.Forms.Application.Run(Form mainForm)

~Bill

Link to comment
Share on other sites

  • 3 weeks later...

We have an internal version that fixes the OnMouseDown problem and the

invalid cast issue (along with other issues we have found). Should I email

you a new dll at the ak5409 email address ? If somebody else is experiencing

these issues and want to test this version we can email it or setup a page

in our support site with a "current but not released" version of

ChartFX.Lite

JC

Software FX Support

"dotNet Developer" <ak5409@hotmail.com> wrote in message

news:ADQRfVXzCHA.2184@webserver1.softwarefx.com...

> When are you planning to release the next build? Thanks

>

>

Link to comment
Share on other sites

We have an internal version that fixes the OnMouseDown problem and the

invalid cast issue (along with other issues we have found). Should I email

you a new dll at the ak5409 email address ? If somebody else is experiencing

these issues and want to test this version we can email it or setup a page

in our support site with a "current but not released" version of

ChartFX.Lite

JC

Software FX Support

"dotNet Developer" <ak5409@hotmail.com> wrote in message

news:ADQRfVXzCHA.2184@webserver1.softwarefx.com...

> When are you planning to release the next build? Thanks

>

>

Link to comment
Share on other sites

That would be great.

Is this problem fixed in the "ChartFX for .NET Windows Forms"?

"Software FX Support" <support@softwarefx.com> wrote in message

news:2y3tN9izCHA.2184@webserver1.softwarefx.com...

> We have an internal version that fixes the OnMouseDown problem and the

> invalid cast issue (along with other issues we have found). Should I email

> you a new dll at the ak5409 email address ? If somebody else is

experiencing

> these issues and want to test this version we can email it or setup a page

> in our support site with a "current but not released" version of

> ChartFX.Lite

>

>

> JC

> Software FX Support

> "dotNet Developer" <ak5409@hotmail.com> wrote in message

> news:ADQRfVXzCHA.2184@webserver1.softwarefx.com...

> > When are you planning to release the next build? Thanks

> >

> >

>

>

Link to comment
Share on other sites

That would be great.

Is this problem fixed in the "ChartFX for .NET Windows Forms"?

"Software FX Support" <support@softwarefx.com> wrote in message

news:2y3tN9izCHA.2184@webserver1.softwarefx.com...

> We have an internal version that fixes the OnMouseDown problem and the

> invalid cast issue (along with other issues we have found). Should I email

> you a new dll at the ak5409 email address ? If somebody else is

experiencing

> these issues and want to test this version we can email it or setup a page

> in our support site with a "current but not released" version of

> ChartFX.Lite

>

>

> JC

> Software FX Support

> "dotNet Developer" <ak5409@hotmail.com> wrote in message

> news:ADQRfVXzCHA.2184@webserver1.softwarefx.com...

> > When are you planning to release the next build? Thanks

> >

> >

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...