Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2001
    Posts
    1

    Unanswered: VB app keeps crashing on certain machines

    Hi there,

    My VB app keeps crashing on my machine and give s the following log in Doctor Watson

    ================================================== ====
    Application exception occurred:
    App: (pid=1196)
    When: 12/20/2001 @ 16:47:53.777
    Exception number: c0000005 (access violation)

    *----> System Information <----*
    Computer Name: xxx
    User Name: xxx
    Number of Processors: 1
    Processor Type: x86 Family 6 Model 3 Stepping 4
    Windows 2000 Version: 5.0
    Current Build: 2195
    Service Pack: None
    Current Type: Uniprocessor Free
    Registered Organization: SCS
    Registered Owner: xxx

    *----> Task List <----*
    0 Idle.exe
    8 System.exe
    128 smss.exe
    156 csrss.exe
    152 winlogon.exe
    204 services.exe
    216 lsass.exe
    380 svchost.exe
    408 spoolsv.exe
    468 svchost.exe
    504 regsvc.exe
    528 MSTask.exe
    580 WinMgmt.exe
    732 Explorer.exe
    860 hotsync.exe
    896 iexplore.exe
    968 dllhost.exe
    928 msdtc.exe
    1136 vb6.exe
    1196 ProjectCGH.exe
    1116 drwtsn32.exe
    0 _Total.exe

    (00400000 - 00443000)
    (77F80000 - 77FF9000)
    (66000000 - 66153000)
    (77E80000 - 77F36000)
    (77E10000 - 77E75000)
    (77F40000 - 77F7C000)
    (77DB0000 - 77E0A000)
    (77D40000 - 77DAF000)
    (77A50000 - 77B45000)
    (7FE80000 - 7FF15000)
    (77CC0000 - 77D40000)
    (78000000 - 78046000)
    (770F0000 - 772AD000)
    (24DD0000 - 24DED000)

    State Dump for Thread Id 0x6c

    eax=00144b0c ebx=0000000a ecx=00000002 edx=0000000a esi=001a6eb4 edi=00144b0c
    eip=7fe814e1 esp=0012fb38 ebp=77e983b2 iopl=0 nv up ei pl nz na pe cy
    cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000203


    function: SysAllocStringLen
    7fe814c9 7425 jz VARIANT_UserFree+0x4a9b (7fe89ff0)
    7fe814cb 8b742414 mov esi,[esp+0x14] ss:00b9d10f=????????
    7fe814cf 8918 mov [eax],ebx ds:00144b0c=00610046
    7fe814d1 83c004 add eax,0x4
    7fe814d4 85f6 test esi,esi
    7fe814d6 7412 jz VARIANT_UserFree+0x4a95 (7fe89fea)
    7fe814d8 8bcb mov ecx,ebx
    7fe814da 8bf8 mov edi,eax
    7fe814dc 8bd1 mov edx,ecx
    7fe814de c1e902 shr ecx,0x2
    FAULT ->7fe814e1 f3a5 rep movsd ds:001a6eb4=???????? es:00144b0c=00610046
    7fe814e3 8bca mov ecx,edx
    7fe814e5 83e103 and ecx,0x3
    7fe814e8 f3a4 rep movsb ds:001a6eb4=?? es:00144b0c=46
    7fe814ea 66c704180000 mov word ptr [eax+ebx],0x0 ds:0000000a=????
    7fe814f0 5f pop edi
    7fe814f1 5e pop esi
    7fe814f2 5d pop ebp
    7fe814f3 5b pop ebx
    7fe814f4 c20800 ret 0x8
    7fe814f7 e84eb80000 call SafeArrayCopyData+0x21b (7fe8cd4a)
    7fe814fc 85c0 test eax,eax

    *----> Stack Back Trace <----*

    FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
    77E983B2 000018A1 084D8B00 0F40F983 0072D083 34608300 oleaut32!SysAllocStringLen

    *----> Raw Stack Dump <----*
    0012fb38 b4 09 ff 00 58 4a 14 00 - 70 fb 12 00 00 00 00 00 ....XJ..p.......
    0012fb48 56 23 dd 24 b4 6e 1a 00 - 05 00 00 00 00 00 00 00 V#.$.n..........
    0012fb58 b4 09 ff 00 40 84 00 66 - 08 00 00 00 00 00 00 00 ....@..f........
    0012fb68 b4 6e 1a 00 00 00 00 00 - b4 fb 12 00 37 20 dd 24 .n..........7 .$
    0012fb78 00 00 00 00 b4 09 ff 00 - 43 a1 03 66 9c 4a 14 00 ........C..f.J..
    0012fb88 b4 09 ff 00 90 55 fe 00 - 54 0f ff 00 00 00 00 00 .....U..T.......
    0012fb98 31 00 00 00 b4 09 ff 00 - 18 85 00 66 f0 fb 12 00 1..........f....
    0012fba8 a0 4a 14 00 2f 00 00 00 - 90 55 fe 00 e0 fb 12 00 .J../....U......
    0012fbb8 bf df 01 66 dc 16 ff 00 - 58 4a 14 00 54 0f ff 00 ...f....XJ..T...
    0012fbc8 b4 09 ff 00 00 00 00 00 - c4 00 00 00 07 ff ff 00 ................
    0012fbd8 aa f2 02 66 4d 1d 40 00 - 08 fc 12 00 bc de 01 66 ...fM.@........f
    0012fbe8 94 1e 02 01 04 fc 12 00 - dc 16 ff 00 b4 09 ff 00 ................
    0012fbf8 54 0f ff 00 01 00 00 00 - b4 09 ff 00 03 1b 40 00 T.............@.
    0012fc08 38 fc 12 00 1e df 01 66 - 94 1e 02 01 b4 09 ff 00 8......f........
    0012fc18 00 00 00 00 4c 06 ff 00 - 54 0f ff 00 44 fc 12 00 ....L...T...D...
    0012fc28 01 00 00 00 b4 09 ff 00 - 4c 06 ff 00 54 0f ff 00 ........L...T...
    0012fc38 70 fc 12 00 55 de 01 66 - 94 1e 02 01 03 09 ff 00 p...U..f........
    0012fc48 00 00 00 00 4c 06 ff 00 - 00 00 00 00 80 fc 12 00 ....L...........
    0012fc58 01 00 00 00 00 00 00 00 - b4 09 ff 00 a4 96 fe 00 ................
    0012fc68 cc 96 fe 00 00 00 00 00 - d0 fc 12 00 52 d8 01 66 ............R..f

    State Dump for Thread Id 0x110

    eax=77d4b759 ebx=0013e6b0 ecx=0013dc0c edx=00000000 esi=0013e568 edi=00000100
    eip=77f82eec esp=012efe28 ebp=012eff74 iopl=0 nv up ei pl nz na po nc
    cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000206


    function: ZwReplyWaitReceivePortEx
    77f82ee1 b8ac000000 mov eax,0xac
    77f82ee6 8d542404 lea edx,[esp+0x4] ss:01d5d3ff=????????
    77f82eea cd2e int 2e
    77f82eec c21400 ret 0x14

    *----> Stack Back Trace <----*

    FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name
    012EFF74 77D4B407 77D4B7BF 0013E568 00000000 40140094 ntdll!ZwReplyWaitReceivePortEx
    012EFFA8 77D4B771 0013E540 012EFFEC 77E92CA8 0013E6B0 rpcrt4!RpcBindingSetOption
    012EFFB4 77E92CA8 0013E6B0 00000000 40140094 0013E6B0 rpcrt4!RpcBindingSetOption
    012EFFEC 00000000 00000000 00000000 00000000 00000000 kernel32!CreateFileA


    Please Help!!

  2. #2
    Join Date
    Feb 2002
    Posts
    1

    What is this?

    I am not real proficent in reading that debug info, so could you please explain what your app is trying to do when it craps out? I usually get those doctor watson errors when I play around with multithreading stuff in VB. Sorry I couldn;t be of more help, post some more info

  3. #3
    Join Date
    Apr 2002
    Location
    Maryland
    Posts
    3

    Did you find an answer to this?

    Hey I am experiencing a similiar problem. Did you find and answer?

    Thanks

  4. #4
    Join Date
    Apr 2002
    Posts
    1

    Same here.

    I have been working on a program from two different machines - one NT and one 2000. I had no problems editing the same project util I compiled the project on the NT machine. Now when I close the project or the EXE on the 2000 machine, I get this error. One discussion group suggested that it may be because of different versions of the Microsoft Acces Driver. I'm still researching and will post if I find anything. Please let me know if you find the answer.

  5. #5
    Join Date
    Apr 2002
    Location
    Maryland
    Posts
    3

    I cannot find anything and am frustrated!!

    My app is crashing at different places and different times. We are using ADO & a bunch of business objects so tracking this down is sooooo hard. I am going nuts here trying to find this and so far have had no luck. I didnt think about where the .exe was built. We are running this on 2000 machines and we build on an NT machine. If anyone can help or has any ideas, it would be greatly appreciated!

  6. #6
    Join Date
    Feb 2002
    Posts
    2,232
    Could you provide more information about your programming environment ?- for example, you mentioned that you are using business objects. Other information that would be helpful is are you using MTS, which version of ADO, which database are you hitting (version,sp) ?

  7. #7
    Join Date
    Jul 2002
    Location
    Chicago, IL
    Posts
    2

    Similar problem in automation machine application

    I am also experiencing the same problem with code that was previously running. I am using VB6 SP5 under Win2000 SP2 to develop a user interface for a robot. All machine and application settings are saved in Access 2000 data tables. I am using the Jet 4.0 database provider. The situation I have found occurs when an event triggers an alarm condition. The alarm condition pulls up an alarm form and writes data into the alarm history table. Then I receive almost exactly the same C000005 (access violation error) that you have seen. I have a tabset that I use to show the alarm history table (Read only). I have found that when I click and view the tabe that has the alarm history information before an alarm event occurs, Visual Basic does not crash with the access violation error and runs normally. This error only occurs in the third version of this software. Two versions with similar code run perfect. I wish I knew of a good way to troubleshoot this scenario.

    Any ideas?

    Thanks

  8. #8
    Join Date
    Jul 2002
    Location
    Chicago, IL
    Posts
    2

    Similar problem in automation machine application

    I am also experiencing the same problem with code that was previously running. I am using VB6 SP5 under Win2000 SP2 to develop a user interface for a robot. All machine and application settings are saved in Access 2000 data tables. I am using the Jet 4.0 database provider. The situation I have found occurs when an event triggers an alarm condition. The alarm condition pulls up an alarm form and writes data into the alarm history table. Then I receive almost exactly the same C000005 (access violation error) that you have seen. I have a tabset that I use to show the alarm history table (Read only). I have found that when I click and view the tabe that has the alarm history information before an alarm event occurs, Visual Basic does not crash with the access violation error and runs normally. This error only occurs in the third version of this software. Two versions with similar code run perfect. I wish I knew of a good way to troubleshoot this scenario.

    Any ideas?

    Thanks

  9. #9
    Join Date
    Oct 2002
    Posts
    1

    Question Similar: VB6.exe Application Error - HELP!

    My problem is really frustrating. I'd like to thank u in advance for solving it.

    Err Msg:
    The instruction at "0x00497ede" referenced memory at "0x21d71418". The memory could not be "read"
    Click on OK to terminate the program
    Click on CANCEL to debug the program

    Strangeness:
    1. No problem on other Pcs
    2.Only happens in 1 vbp. never happened in the previous versions of the same project before.
    3. Always happens at 0x00497ede so far

    When:
    Happens after the "END" statement is encountered
    Happens during design time, during saving
    no other events


    Steps taken
    1. reinstalled Visual Studio,
    2. Created another VB proj file
    3. reInstalled VS Sp 5

    Platforms:
    Win 2k Server, SP3
    VS 6, SP5

    Database Access:
    MSSQL, using ADO & DataEnvironment
    Last edited by dh003756; 10-08-02 at 13:55.

  10. #10
    Join Date
    Jan 2003
    Posts
    1

    Unhappy word 97 error when printing a document using vbscript

    I seem to get an error message which appears in Dr watson
    app: windowrd.exe(pid=1276)
    exception number: c000005(access violation)

    This occurs when I try to print a document using vbscript to an HP 2200DN laser printer using activedoucment.printout for windows 98/2000 PC. It seems to send the file to the printer, saves changes to sql server database and when it tries to close the document an winword.exe error appears and word 97 closes with the above error to dr watson.

Posting Permissions

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