Random Non-Existent ArgumentNullException given.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TLC
Newbie
Newbie
Posts: 59
Joined: Mon Apr 08, 2019 12:00 am

Random Non-Existent ArgumentNullException given.

Post by TLC » Wed Jul 10, 2019 10:10 pm

Below are the screenshots. Visual Studio 2019 (version 16.16) gives the exception shown, but still proceeds and renders the data without issue. all functionality works. but it gives this error. I've looked through the initVars() code that the Chart() function calls but don't see anything obvious. I don't see anything that could be an obvious cause for ChartView() either.
Also using Steema.TeeChart.NET.Xamarin.Forms version 4.2019.7.3.
Capture1.PNG
Capture1.PNG (30.44 KiB) Viewed 34086 times
Capture.PNG
Capture.PNG (20.57 KiB) Viewed 34086 times

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Thu Jul 11, 2019 11:48 am

Hello,
does this happens on specific platform ?

TLC
Newbie
Newbie
Posts: 59
Joined: Mon Apr 08, 2019 12:00 am

Re: Random Non-Existent ArgumentNullException given.

Post by TLC » Thu Jul 11, 2019 2:57 pm

Only in Android. iOS doesn't occur.

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Fri Jul 12, 2019 9:00 am

Hello,
ok, we've been able to reproduce the problem here. We're investigating what is the cause. Until we found where the problem is and publish a new maintenance release, please get the previous package version from nuget.

Thanks

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Fri Jul 12, 2019 11:37 am

Hello,
we've just published a new nuget package for the TeeChart for Xamarin.Forms.
Could you please check if this maintenance version fixes the problem?

https://www.nuget.org/packages/Steema.T ... .2019.7.12

TLC
Newbie
Newbie
Posts: 59
Joined: Mon Apr 08, 2019 12:00 am

Re: Random Non-Existent ArgumentNullException given.

Post by TLC » Fri Jul 12, 2019 2:37 pm

This issue still occurs, unfortunately, on version 4.2019.7.12.

However, the other issue https://www.steema.com/support/viewtopi ... =4&t=17188 has been fixed.

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Mon Jul 15, 2019 10:32 am

Hello,

ok. I need to investigate more about the problem, as it seems that it only happens on specific projects.
Does the following project that you can found at the Steema github it working fine for you ?
https://github.com/Steema/teechart-xama ... RotateTool

It's working fine here.

TLC
Newbie
Newbie
Posts: 59
Joined: Mon Apr 08, 2019 12:00 am

Re: Random Non-Existent ArgumentNullException given.

Post by TLC » Mon Jul 15, 2019 3:48 pm

It works on android with no issues.

Also, I actually don't want any rotation (just pan and zoom) in the graph; how would I do that?

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Tue Jul 16, 2019 12:40 pm

Hello,
we've just uploaded an example at the github, that does this. You can find it here :
https://github.com/Steema/teechart-xama ... anningDemo

TLC
Newbie
Newbie
Posts: 59
Joined: Mon Apr 08, 2019 12:00 am

Re: Random Non-Existent ArgumentNullException given.

Post by TLC » Wed Jul 17, 2019 3:08 pm

Not what I'm looking for, unfortunately. What I'm referring to is when you zoom and rotate the touchpoints and the graph flips over the Y-axis. I want to prevent this from occurring.

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Thu Jul 18, 2019 8:23 am

Ok, could you please try by setting the ClipPoints property to true ?

Code: Select all

_chartView.Chart.Aspect.ClipPoints = true;

TLC
Newbie
Newbie
Posts: 59
Joined: Mon Apr 08, 2019 12:00 am

Re: Random Non-Existent ArgumentNullException given.

Post by TLC » Thu Jul 18, 2019 4:14 pm

That does seem to help. what does that do?

Also, The ArgumentNullException has stopped occurring, but I'm not sure why. it still occurred after the update and now it is not, using 4.2019.7.12.

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Mon Aug 05, 2019 10:13 am

That does seem to help. what does that do?
What it does, is to clip the drawing series points to a region, in this case to the Chart rect region.

TLC
Newbie
Newbie
Posts: 59
Joined: Mon Apr 08, 2019 12:00 am

Re: Random Non-Existent ArgumentNullException given.

Post by TLC » Thu Oct 10, 2019 4:00 pm

It started giving the exception again on 4.2019.9.10. It doesn't crash but is reported.

Pep
Site Admin
Site Admin
Posts: 3272
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Random Non-Existent ArgumentNullException given.

Post by Pep » Fri Oct 11, 2019 9:06 am

Hello,
ok, thanks for the advise. We're going to do some tests here again with the latest version in order to find what could be the cause.

Post Reply