FLOAT_OVERFLOW Exception resizing a chart (64bit)
Posted: Fri Mar 31, 2017 11:34 am
This time i got a pretty nasty bug in my 64bit Application (and the bug is gone when compiling with 32bit) which has cost me some time to realize its 64bit. I've attached a sample application (TChart_Resize).
You need to comile and run it as 64bit application! Use the mouse, grab the right border of the applications main form and make the windows smaller until it crashes (the image below shows the form just before it): A little bit further and you get this exception (text is in german but FLOAT_OVERFLOW is the thing happening): Its very strange because IIncrement is what causes the problem (its value is 4,94065645841247e-324). So I tried to find the place where the error origins from and found TCgartAxis,Draw,DoDrawLabels
.... cont' in next posting (due to attachment limitations)
You need to comile and run it as 64bit application! Use the mouse, grab the right border of the applications main form and make the windows smaller until it crashes (the image below shows the form just before it): A little bit further and you get this exception (text is in german but FLOAT_OVERFLOW is the thing happening): Its very strange because IIncrement is what causes the problem (its value is 4,94065645841247e-324). So I tried to find the place where the error origins from and found TCgartAxis,Draw,DoDrawLabels
.... cont' in next posting (due to attachment limitations)