CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2001
    Posts
    34

    apllication error

    Can i know what's the cause for this error which read :

    Application Error :
    The instruction of "0x77f6750b" referenced memory of "0x08de1e18". The memory could not be read.
    Click OK to terminate the application.

    Thank you.


  2. #2

    Re: apllication error

    do u have errors also debugging?

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  3. #3
    Join Date
    Jun 2001
    Posts
    34

    Re: apllication error

    sorry, berta, i don't get what do u mean.

    Actually it's not during compiling that this error occured. The error appeared when i close the VB application after running my program.

    can someone out there please help me...thank you!!


  4. #4

    Re: apllication error

    do u use some activex control? what kind?
    do u use the statment END to close program?


    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  5. #5
    Join Date
    Jun 2001
    Posts
    34

    Re: apllication error

    yup, i had closed the database that i had open earlier.


  6. #6

    Re: apllication error

    witch kind of DB? can U post here the code?

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  7. #7
    Join Date
    Jun 2001
    Posts
    34

    Re: apllication error

    i used MS Access database.
    but the problem is the error still occurs although i didn't open the database. i mean i just run the GUI and then click the close button. then when i close VB, the error occured.


  8. #8

    Re: apllication error

    1) u can test if db is iopen before close it
    2) u can use "on error"

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  9. #9
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: apllication error

    How does your program terminate?
    DO NOT USE THE END statement to terminate your program. It leaves all sorts of nasties around.
    When closing your program, make sure you have freed all memory allocations you have performed, if any, Set all Objects you created to nothing then close all forms using the following loop in your terminating form.

    private Sub Form_Unload(Cancel as Integer)
    Dim f as Form
    for Each f In Forms
    If f.Name <> me.Name then Unload f
    next f
    End Sub




    John G

  10. #10
    Join Date
    Jun 2001
    Posts
    34

    Re: apllication error

    The error only occurs if it's opened a recordset ( used to display data ) from a database. If I open the GUI and then close it immediately without any process of opening a recordset, the error WILL NOT occur.

    Please help. Thank You.


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

Featured