Runtime error

Discussion in 'Windows' started by KevinS, Sep 21, 2009.

Thread Status:
Not open for further replies.
  1. KevinS

    Joined:
    Sep 21, 2009
    Messages:
    3
    Likes Received:
    0
    I believe I have a corrupt 3CX phone configuration, and I am unsure how to clean it up.

    A few months ago, I installed 3CX v3, and had it working for a little bit. I made a change (I forget what at this point), and now when I start it, the application starts to initialize, but I get a runtime error when the program attempts to read the configuration data.

    I've uninstalled v3 multiple times, and today installed version4, and am getting the same results.

    I checked the event log, but there are no records logged.

    The error I get is "Microsoft Visual C++ Runtime Library Runtime Error! Program : C:\Program Files \3CXPhone\3CXPhone.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

    When I click OK I get Visual Studio 2008 up, it gives me the debug information below.

    Any thoughts?


    ---- Start ----
    '3CXPhone.exe': Loaded 'C:\Program Files\3CXPhone\3CXPhone.exe'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
    '3CXPhone.exe': Loaded 'C:\Program Files\3CXPhone\3CXVoipPhone.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\iphlpapi.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\dsound.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\version.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
    '3CXPhone.exe': Loaded 'C:\Program Files\3CXPhone\ssleay32.dll', Binary was not built with debug information.
    '3CXPhone.exe': Loaded 'C:\Program Files\3CXPhone\libeay32.dll', Binary was not built with debug information.
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\winspool.drv'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
    '3CXPhone.exe': Loaded 'C:\Program Files\3CXPhone\3CXEventLog.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msvfw32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll'
    '3CXPhone.exe': Loaded 'C:\Program Files\3CXPhone\sl.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wininet.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\normaliz.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\iertutil.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msctf.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msctfime.ime'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msftedit.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\riched20.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\netman.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\mprapi.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\activeds.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\adsldpc.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\atl.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\rtutils.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\samlib.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\netshell.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\credui.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\dot3api.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\dot3dlg.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\onex.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wtsapi32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\winsta.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\eappcfg.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msvcp60.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\eappprxy.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\rasapi32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\rasman.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\tapi32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wzcsapi.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wzcsvc.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wmi.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\dhcpcsvc.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\dnsapi.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\eapolqec.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\qutil.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\esent.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wintrust.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\imagehlp.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wdmaud.drv'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msacm32.drv'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\msacm32.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\midimap.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\clbcatq.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\comres.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\xpsp2res.dll', Binary was not built with debug information.
    '3CXPhone.exe': Loaded 'C:\Program Files\3CXPhone\Skins\3CXPhone.cxs'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\oleacc.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\mswsock.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\hnetcfg.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\wshtcpip.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\winrnr.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\rasadhlp.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\PGPlsp.dll'
    '3CXPhone.exe': Loaded 'C:\WINDOWS\system32\ksuser.dll'
    The thread 'Win32 Thread' (0xedc) has exited with code 0 (0x0).
    The thread 'Win32 Thread' (0x1600) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x10d8) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xb6c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x177c) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x4b0) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xf4) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x1320) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x12f8) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xb68) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x1044) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x8c4) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x17a0) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x1780) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0xd08) has exited with code 3 (0x3).
    The thread 'Win32 Thread' (0x85c) has exited with code 3 (0x3).
    First-chance exception at 0x100d8f61 in 3CXPhone.exe: 0xC0000005: Access violation reading location 0x00000004.
    The program '[5748] 3CXPhone.exe: Native' has exited with code -1073741819 (0xc0000005).
     
  2. Vali_3CX

    Vali_3CX Well-Known Member
    Staff Member 3CX Support

    Joined:
    Dec 12, 2008
    Messages:
    1,479
    Likes Received:
    67
    Hi, Kevin

    Do you mean, when phone (V4 Beta) displays "Reading configuration data...", THEN it crashes?
    I'm asking you because few days ago, we found a similar incident, and we discovered the crash happened because the history file has became too large (~700KB) triggering an issue in one of Microsoft libaries we use. We fixed it and will be available in the next release.

    Until then, there is a "manual fix" which can be provided
    supposing you're logged in on your computer as KevinS, go to the C:\Documents and Settings\KevinS\Local Settings\Application Data\3CX VoIP Phone\History\ folder and check if you have such kind of large (> 450K) file there. If yes, there are three solutions:
    1 - rename or delete that file - you will loose call history for that IP;
    2 - rename or delete the whole History folder - you will loose call history for all IPs

    I suggest you to don't delete, if it's important, because when we will release next fix, you will be able to use it again.

    Try this and tell me how it's going.
    Regards
    vali
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. KevinS

    Joined:
    Sep 21, 2009
    Messages:
    3
    Likes Received:
    0
    Vali -
    I just walked through your steps. I only had 3 files - two with IP addresses and one "callHistorysip" - all were 0 length. I moved them all into a different directory and reinstalled, then tested. Same result.

    I deleted the files, and got the same result. Unfortunately, it is not even letting me get to any configuration options (it starts up, hangs for about 60 seconds, then displays the Runtime Library error previously identified. )

    I'm wondering if there are traces of the old configuration out there, but I do not know where to look for it.
     
  4. Vali_3CX

    Vali_3CX Well-Known Member
    Staff Member 3CX Support

    Joined:
    Dec 12, 2008
    Messages:
    1,479
    Likes Received:
    67
    :roll: very strange :roll:
    If you want to remove "any traces" of the old installation is enough to rename/delete the C:\Documents and Settings\KevinS\Local Settings\Application Data\3CX VoIP Phone folder or, at least C:\Documents and Settings\KevinS\Local Settings\Application Data\3CX VoIP Phone\3CXVoipPhone.ini configuration file.
    However, before doing such a destructive test, if you have another computer account, you may login to that one and try to start there the Phone, to see if it works, since phone keeps data per-user.
    vali

    P.S dont uninstall-reinstall 3CXphone
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. KevinS

    Joined:
    Sep 21, 2009
    Messages:
    3
    Likes Received:
    0
    Vali
    Thanks for your help. Uninstalling, then removing the INI file did the trick. I think the problem was that there was an invalid IP address in the NetInterface field.

    Thanks again for the quick response.

    Regards,
    Kevin
     
  6. Vali_3CX

    Vali_3CX Well-Known Member
    Staff Member 3CX Support

    Joined:
    Dec 12, 2008
    Messages:
    1,479
    Likes Received:
    67
    Hi, Kevin

    Kevin, you solved your problem, but the reason is still there :mrgreen: If you think there is no private information (public IPs mainly) in the ini file, please send it to me by PM, to try it (PM doesn't allow attachements, please do a copy-paste there if you want). Thanks.

    Best regards
    vali
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.