Board index » delphi » Error when closing active document main form.
Joel Jn-Francois
![]() Delphi Developer |
Mon, 19 Sep 2005 01:21:50 GMT
Error when closing active document main form.
I have followed the sample code by Steve Teixeira and Alexandre Rai on how
to create a Active Document. I did not hide the main form because I am just writing a simple Active Document without the complexities of menu and toolbar merges etc. However, whenever I try to close the form I keep getting "Access Violation Error". Can anyone tell me what I am doing wrong? { TDelphiAxDoc } destructor TDelphiAxDoc.Destroy; procedure TDelphiAxDoc.DoMenuClick(Sender: TObject); procedure TDelphiAxDoc.Initialize; procedure TDelphiAxDoc.LoadFromStream(const Stream: IStream); procedure TDelphiAxDoc.SaveToStream(const Stream: IStream); { TDelphiAxDoc.IPersistStreamInit } function TDelphiAxDoc.IsDirty: HResult; initialization |