Results 1 to 13 of 13
  1. #1
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1)

    I have seen this happen with other programs like Word and Excel but I have a VB app that gives a Dr. Watson error every time when exiting the program. I checked the drwtsn32.log file and I have the following first few lines:

    Application exception occurred:
    App: (pid=532)
    When: 10/17/01 @ 16:59:18.181
    Exception number: c0000005 (access violation)

    There are 5 pages total that appear in this log from this error. Does anyone know what causes this error? If anyone is interested, I can e-mail the log file to them.

    Thanks,
    Mark Santos
    mpsantos@yahoo.com

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    It may be an MDAC 2.6 issue if you're using a DataGrid control. Take a look at MSKB article <A target="_blank" HREF=http://support.microsoft.com/support/kb/articles/q281/8/87.asp>FIX: Invalid Bookmark ErrMsg When Records Added to Recordset [Q281887]</A>.
    Charlotte

  3. #3
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    Will do, thanks.

  4. #4
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    I looked at the article and then ran the component checker. I am running the latest MDAC code as well as the latest Jet service pack. Looks like I might need to go back to 2.5.

    Thanks,
    Mark

  5. #5
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    Hi Charlotte,
    I do have two forms that use dbgrid's. I also switched back to MDAC 2.5 sp2. The problem still occurs. Do you think that the dbgrid could be causing the problem? I am using dbgrid32.ocx (Microsoft Data Bound Grid Control 5.0 (sp3)). This problem doesn't cause any other problems for me except the error on exit but I would like to find out what the heck is causing it.

    Thanks so much for the help!

    Mark Santos

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    You're mixing a VB5 control with a VB6 application. The activex controls between the two versions are not fully compatible. You'd be best advised to grab the latest version of the control and use that instead.
    Charlotte

  7. #7
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    Thanks. We have been using this old control in the app since 1997. I switched over to designing in VB6 when it came out and have always kept this older control. I will look into changing over to the newer control.

    Do you have any other ideas on the error? I read up (per your advice) and then changed back to MDAC 2.5 SP2 instead of 2.6. That didn't make a difference. Exact error in drwtsn32.log: c0000005 (access violation). I can't find anything else in the MSKB about this particular problem. I ran some other VB stuff I am working with and they don't produce the error.

    Thanks again,
    Mark Santos

  8. #8
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    This may sound weird but here it is.

    I tried removing items from the project until the problem disappeared. Basically I had to remove all but the first form and all components. After which the access violation disappeared. I then started adding things back in until all of the original items were back in the project. Guess what? No more error. I can't explain it other then that maybe some link got refreshed and now it likes it! Have you heard of anything like this before?

    Thanks for your patience,
    Mark Santos

  9. #9
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    More or less. I haven't run into it myself, though. Another method to try is to create a new project and add all the objects from the project that throws the error, although not the project itself.
    Charlotte

  10. #10
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    Well I thought the problem was fixed but it still gives an access error on exit when you do certain things. If I run the program and immediately exit, there is no problem. If I open a form or two and then exit I get the error. I have tried all all the things (not many) on the MSKB and what Charlotte has asked about. Does anyone else have any ideas.

    Thanks,
    Mark Santos

  11. #11
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    It's a nuisance to wade through Dr Watson logs, but go to the bottom and work backward looking for a clue to which library or executable might be causing the error. Sometimes the file will be referenced directly, but not always.

    a dbg file is a de###### that corresponds to a dll. Look down the task list and the last executable before DrWtsn32.exe is the one I'd suspect of triggering the error.

    Application exception occurred:
    App: exeiexplore.dbg (pid=306)
    When: 12/20/1999 @ 21:59:58.303
    Exception number: c0000005 (access violation)

    has this in the task list:

    279 connect.exe
    306 IEXPLORE.exe
    315 ARUpld32.exe
    301 DRWTSN32.exe
    0 _Total.exe

    (00400000 - 00413000) exeiexplore.dbg
    (77f60000 - 77fbe000) dllntdll.dbg
    Charlotte

  12. #12
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    Hi Charlotte,
    Here is a clean log (attached as zip) with just one occurrence. By the way, I stripped everything except the essential two forms from the project. I also removed all references and components not contained on the two forms. I suspect that the problem is inherent to VB SP5 or Win 2K. I might have to call on MS to get this one fixed. FYI, according to the component checker, I am running MDAC 2.5 SP2.

    Thanks,
    Mark Santos
    Attached Files Attached Files

  13. #13
    4 Star Lounger
    Join Date
    Jun 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    527
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dr. Watson Error when exiting vb app (Win 2K / VB6 SP5 / Access 2k SR1

    As a note: under further testing to try and figure this thing out, I compiled the project and did the same tests. The problem does not occur at all with a compiled exe file. I turned it over to MS.

    Thanks again,
    Mark Santos

Posting Permissions

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