Unhandled Exception Error Loading Charts - RESOLVED

If you think you've found a mistake in the software, tell us here

Unhandled Exception Error Loading Charts - RESOLVED

Postby MitchM » Thu Sep 13, 2018 5:55 am

For the last couple of weeks I keep getting an error message when trying to open a ladder window for a market. It usually happens after I have been logged in for a while. The message says "Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error....." When I click continue I can no longer see any graphs at the bottom of each ladder. I just get red crosses. Can you please advise what is happenning.
MitchM
 
Posts: 9
Joined: Tue Jan 16, 2018 11:42 pm

Re: Unhandled Exception Error Loading Charts

Postby Gavin » Thu Sep 13, 2018 1:01 pm

Hi MitchM,

Thanks for informing me and I'm sorry to hear about that.

When the error message appears, there should be a button you can click to get 'More Details'. Please click that button, then a large amount of text will appear that gives more specific information about the error. Please copy all of that text and send it to me, to enable me to diagnose it further.

Thanks and kind regards,

Gavin
User avatar
Gavin
Site Admin
 
Posts: 3217
Joined: Wed Jan 23, 2013 9:11 pm
Location: United Kingdom

Re: Unhandled Exception Error Loading Charts

Postby MitchM » Fri Sep 14, 2018 10:01 pm

Thanks for replying. This is the full error message.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_FrameDimensionsList()
at System.Drawing.ImageAnimator.CanAnimate(Image image)
at System.Drawing.ImageAnimator.ImageInfo..ctor(Image image)
at System.Drawing.ImageAnimator.Animate(Image image, EventHandler onFrameChangedHandler)
at System.Windows.Forms.PictureBox.Animate(Boolean animate)
at System.Windows.Forms.PictureBox.Animate()
at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
MitchM
 
Posts: 9
Joined: Tue Jan 16, 2018 11:42 pm

Re: Unhandled Exception Error Loading Charts

Postby Gavin » Sat Sep 15, 2018 1:59 am

Thank you for the extra details. I have edited your post to shorten the details to show just the part I needed, in order to save a little storage space in the forum.

So to solve this I would suggest looking at the frequency at which your settings cause the 'Betfair charts' to be refreshed. Make the interval bigger, so that there is less chance of an overlap or bottleneck in processing chart images. There is a setting for this in the File Menu | Settings | Charts tab. I suggest you try 5000ms chart refresh intervals, or even bigger if necessary.

I think that the technical explanation is as follows. The simple 'Betfair charts' are actually just image files that are refreshed by downloading them periodically from Betfair. So the error might occur if your PC is still trying to draw the previous image, when the next image needs to be drawn. Each previous image has to be removed (disposed) before the new image can be drawn, so it could cause an error if the PC tries to dispose of the previous image whilst it is still being drawn.

As a matter of interest, the advanced charts are more efficient because they are based on raw price data that the program is already getting from Betfair, not image files.

If increasing the Betfair chart refresh interval doesn't solve the problem, then perhaps look at whether you should also use bigger price data refresh intervals (by increasing the conflation setting, found in Flie | Settings | API Refresh tab), to ensure that your PC is not struggling under the weight of price data that it is also being asked to handle.

Kind regards,

Gavin
User avatar
Gavin
Site Admin
 
Posts: 3217
Joined: Wed Jan 23, 2013 9:11 pm
Location: United Kingdom

Re: Unhandled Exception Error Loading Charts

Postby MitchM » Sun Sep 16, 2018 9:57 am

Thanks Gavin. I will give that a try.
MitchM
 
Posts: 9
Joined: Tue Jan 16, 2018 11:42 pm

Re: Unhandled Exception Error Loading Charts

Postby Gavin » Wed Nov 07, 2018 9:49 pm

I have now found the cause of this error and will be releasing a new version shortly that will fix it.

My apologies for the inconvenience and thanks for your patience.

Kind regards,

Gavin
User avatar
Gavin
Site Admin
 
Posts: 3217
Joined: Wed Jan 23, 2013 9:11 pm
Location: United Kingdom

Re: Unhandled Exception Error Loading Charts

Postby MitchM » Thu Nov 08, 2018 1:40 am

Thanks Gavin
MitchM
 
Posts: 9
Joined: Tue Jan 16, 2018 11:42 pm

Re: Unhandled Exception Error Loading Charts - RESOLVED

Postby Gavin » Thu Nov 08, 2018 11:47 pm

Hi MitchM,

I am pleased to announce that this problem (affecting the multiple ladder window containing Betfair charts) has now been solved in the new version 6.6.3.20 that was released today.

As usual the software will automatically update itself to the new version next time you open it.

Thank you for all your patience on this bug and for all your help.

Kind regards,

Gavin
User avatar
Gavin
Site Admin
 
Posts: 3217
Joined: Wed Jan 23, 2013 9:11 pm
Location: United Kingdom

Re: Unhandled Exception Error Loading Charts - RESOLVED

Postby MitchM » Mon Nov 12, 2018 12:22 am

Thanks Gavin. Much appreciated.
MitchM
 
Posts: 9
Joined: Tue Jan 16, 2018 11:42 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron