Page 1 of 1

GPF when printing

Posted: Sun Nov 25, 2007 2:31 am
by jimmaguire
I reproduced the error in MFEditor using the rvf I sent in a separate email. Its in the RVItem PrintToBitmap. The RVPrint is nil so the test of Assigned(...RVPrint.OnPrint...) fails.

I did modify the initialization of MFEditor to registerClasses TCheckBox and TPngObject

It works in ActionsTest

Posted: Sun Nov 25, 2007 2:36 am
by jimmaguire
I don't see the difference yet

Sorry - was wrong - failed in ActionsTest as well

Posted: Sun Nov 25, 2007 2:41 am
by jimmaguire
Same error

Problem is due to printing TCheckbox

Posted: Sun Nov 25, 2007 5:45 pm
by jimmaguire
The TRVPrint has an OnPrintComponent that I use to print the check box. I don't see the same option on TSRVPrint

Same error with TSRVCheckBox in MFInsertControls

Posted: Sun Nov 25, 2007 10:09 pm
by jimmaguire
I created a small rvf with just 1 check box and it fails on same line of code, thought TSRVCheckBox might work.

Posted: Mon Nov 26, 2007 4:05 pm
by Sergey Tkachenko
Did you send error report to Ilya?

Yes

Posted: Mon Nov 26, 2007 4:10 pm
by jimmaguire
Sent sample

Easy to reproduce with demos

Posted: Mon Nov 26, 2007 4:39 pm
by jimmaguire
Run InsertControls, open SRVControls.rvf and try its File/Print.

Posted: Sat Dec 01, 2007 1:52 pm
by proxy3d
1/ Bugs fixed in the update v1.3.4.

2/ > The TRVPrint has an OnPrintComponent that I use to print the check box. I don't see the same option on TSRVPrint
See OnPaintComponent in TSRichViewEdit