DivideByZero Error

General TRichView support forum. Please post your questions here
Post Reply
pdcuser
Posts: 17
Joined: Tue Jan 17, 2006 9:00 pm

DivideByZero Error

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Can you create a simple project reproducing this problem and send it to me?
pdcuser
Posts: 17
Joined: Tue Jan 17, 2006 9:00 pm

Post by pdcuser »

Yes I will. Give me a day or two to isolate the issue.
pdcuser
Posts: 17
Joined: Tue Jan 17, 2006 9:00 pm

Post by pdcuser »

I just submitted an email with the title, "Sample Application." Let me know if it doesn't reach you.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
pdcuser
Posts: 17
Joined: Tue Jan 17, 2006 9:00 pm

Post by pdcuser »

Thanks!
Post Reply