Q&A

  • 질문]DhtmlEdit를 사용해서 종료시에 에러가 나요...
DhtmlEdit를 사용했는데..



종료할때마다 액세스 바이..란 에러가 나옵니다.. ~.ocx 란 문구도 포함되구요..



고드름님이 올려 주신 예제 소스는 에러 가 없는데..



DhtmlEdit를

그냥 폼에 올리면 에러가 없는데..



DHTML.LoadDocument(~~); 하구 나서 종료 하면 에러가 나네요!!



해결책을..ㅜ.ㅜ



1  COMMENTS
  • Profile
    권대웅 2001.11.03 19:49


    http://groups.yahoo.com/group/delphi-dhtmledit/message/509

    여기에 가니까 해답있 있더군요..ㅋㅋ



    ============================================================



    I was able to solve this problem by changing the code in DHTMLEDLIB_TBL.PAS

    getControlInterface

    as follows:



    function TDHTMLEdit.getControlInterface : iDHTMLEdit;

    var

    idsp : iDispatch;

    begin

    idsp := iDispatch(OleObject);

    idsp.QueryInterface( IID_iDHTMLEdit, result );

    end;



    Tony Speed

    East West Electronic Trade Centre, LTD



    -----Original Message-----

    From: waalbers@y... [mailto:waalbers@y...]

    Sent: Friday, February 16, 2001 8:04 AM

    To: delphi-dhtmledit@yahoogroups.com

    Subject: [delphi-dhtmledit] Runtime error on closing application





    I have a similar problem as Motty Adler posed on Wed Dec 20, 2000

    3:08pm.



    I have a DHTMLEdit component in my application.

    Closing the application after the component has not been used works

    well.

    But closing the application after there was loaded an html-file into

    the component gives:

    Exception EAccessViolation in module DHTMLED.OCX at 0008A88

    Access violation at address 02E38A88 in module DHTMLED.OCX

    Read of Address FFFFFFF



    The only way to suppress the dialogue is to put into OnClose:

    try

    DHTMLEdit1.Free;

    except

    end;

    but this is not quite elegant.



    Could anybody help?