Page 1 of 1
DivideByZero Error
Posted: Mon Jul 11, 2011 6:29 pm
by pdcuser
After upgrading to TRichView 13.0.5, I am receiving a DivideByZero error in both TRVStyle.GetAsDevicePixelsX and TRVStyle.GetAsDevicePixelsY. PSaD.ppixScreen and PSaD.ppixDevice are both set to 0 by the time this routine executes in certain cases.
Posted: Mon Jul 11, 2011 8:24 pm
by Sergey Tkachenko
Can you create a simple project reproducing this problem and send it to me?
Posted: Mon Jul 11, 2011 9:33 pm
by pdcuser
Yes I will. Give me a day or two to isolate the issue.
Posted: Mon Jul 11, 2011 10:53 pm
by pdcuser
I just submitted an email with the title, "Sample Application." Let me know if it doesn't reach you.
Posted: Wed Jul 13, 2011 7:50 pm
by Sergey Tkachenko
Do not call RVReportHelper.RichView.Format. RVReportHelper is formatted when you call its Init method.
This is quite a common error... In the next update, RVReportHelper.RichView.Format will raise a special exception.
Posted: Wed Jul 13, 2011 11:07 pm
by pdcuser
Thanks!