[lazarus] Resize crash

Michael A. Hess mhess at miraclec.com
Mon Jul 19 11:31:05 EDT 1999


Shane Miller wrote:
> 
> The crash was caused by the creation of the SendMessage3 procedure and
> the removal of the LM_CREATE message in SendMessage2.  The canvas was
> being created in SendMessage2 yet.

Sorry about that. I was hoping it wouldn't hose anything.  :-(
 
> In SendMEssage3, we cxurrently are sending it a TControl.  I am going
> to change it to TObject because TControlCanvas is not derived from a
> TControl and therefore can't be sent as one.

Works for me. We can just cast to TControl where needed. In fact should
we make sure everything pass TObject and then just cast were needed.
Might be a good idea.


-- 
==== Programming my first best destiny! ====

Michael A. Hess      Miracle Concepts, Inc.
mhess at miraclec.com   http://www.miraclec.com






More information about the Lazarus mailing list