Results 1 to 2 of 2

Thread: VB is Terminating Itself..

  1. #1

    Thread Starter
    Addicted Member Rohan_Powle's Avatar
    Join Date
    Mar 2000
    Location
    Mumbai,maharashtra.India
    Posts
    173

    Thumbs up

    I have a problem with my VB APPLICATION.

    I am executing this code
    -------------
    With orditem.adorditem
    .CommandType = adCmdUnknown
    .RecordSource = "Select * from orditem where ordno='" & ordfield(0) & "'"
    .Refresh
    End With
    -----------
    it is working fine for a couple of times but the giving a error "Method refresh of Adodc Failed".........

    after this error vb is terminating automatically, before terminating this error is flashed

    ---------------------------------
    VB6.exe - Application error
    The instruction at "0x007015c8" referenced memory at "0x007015c8". The memory could not be "read".
    Click ok to terminate & cancel to debug..
    ---------------------------------

    I will be greatfull to the person who can solve this problem.
    Thanks In advance - Rohan

  2. #2
    Addicted Member
    Join Date
    Aug 1999
    Location
    Hamilton, New Zealand
    Posts
    137
    Hard to know exactly what is going on here without some specifics but try the following things anyway.

    Make sure that you are initilising / de initilising your ADO objects correctly. If you are not closing them down properly, then that may be why it is crashing on the 2nd and 3rd times.

    If you can supply any more information, I'd be glad to offer any other advice that I have.


    Regards

    Matt Brown
    Hamilton, NZ
    VB6 C++ in Visual Studio 6sp4
    VB.net Beta 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width