If i close the Form (with a WPMemo on it) immediate after i opened it i get an Error : Control has no parent.
in the following line :
WPCTRMemo.TWPCustomRtfEdit.WMWPTOOLSUPDATE (Line 11162, "WPCTRMemo.pas" + 40) + $C
If i close the Form (with a WPMemo on it) immediate after i opened it i get an Error : Control has no parent.
in the following line :
WPCTRMemo.TWPCustomRtfEdit.WMWPTOOLSUPDATE (Line 11162, "WPCTRMemo.pas" + 40) + $C
Has somebody please a workaround for this ?
hard to reproduce without sample project -
if you do something like
Show; Close;
I suggest to do this
Show;
Application.ProcessMessages;
Close;
hmm, in the simple demo i wrote, it works, but in the main application i still get the error ....
I will check if I can reproduce it somehow ...
Julian, please try following :
Use TBX demo, in the OnClose event of the form place
Action := caFree;
Remove the form from the autocreate
Place a new form with only one button and with the following code :
WPTBXForm := TWPTBXForm.Create(Application);
WPTBXForm.Show;
Now, if you click the button and close the form (before the Toolbar is refreshed) you will get the error.
Thanks, I found it.
It has to do with the thumbnail (TWPPreview).
I suggest as a work around to attach the WPPreview in a OnTimer event, some mms after the creation of the form.
Julian Ziersch
The same error i get (attached the Preview to the Editor in the OnTimer Event) if the editor is loaded, and i click NEW and Close immediately.
well - the next release don't produces the problem anymore. But there are too many changes to be posted here.
But if the preview is not attached I see no possibility for the rror to happen. It had to do with the DelayedInvalidate the preview is using. (It is updated after a period of 800 mss)
Julian Ziersch