Results 1 to 9 of 9

Thread: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    761

    Question Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    Hello VB6 Community,

    I'm facing a perplexing issue with a VB6 application that quits unexpectedly with a ding.wav sound upon startup, but this only happens when run on any machine other than the developer machine. The application doesn't even reach Sub Main.

    The application is substantial, featuring:

    • About 20 OCXs
    • 15 UserControl instances
    • 10 ActiveX EXEs
    • 5 Type Libraries (TLBs)
    • Numerous enums, including one with roughly 2000 enumerators


    Troubleshooting this issue is challenging due to the application’s size. Dismantling and testing it component by component could potentially take up to five days.

    Here’s what I’ve tried so far:

    • Utilizing Process Explorer, which failed as the application terminates too quickly to track.
    • Implementing a global exception handler, which has had no effect since Sub Main isn't even initiated.


    I have now managed to capture a Process Monitor log (PML file) during one of these sudden terminations. I’m attaching the PML log here for analysis. Could anyone recommend tools or methods to analyze this log to pinpoint where and why the termination occurs? Any insights or guidance on how to proceed would be greatly appreciated.

    Thank you in advance for your assistance!

    [Attachment: Logfile.pml as zip as .pml did not work]
    Attached Files Attached Files
    Last edited by tmighty2; Aug 25th, 2024 at 06:12 PM.

  2. #2
    Lively Member
    Join Date
    Jul 2017
    Posts
    117

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    Have you checked if anything shows up in Event Viewer?
    Is the program osc.exe?

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    761

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    Nothing in the event viewer.

    Yes, osc. exe is the app.

  4. #4
    PowerPoster VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,619

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    Quitting with a ding can also be a sign of an error in your side-by-side manifest but those errors definitely get logged in the Event Viewer so this may not be the issue you're experiencing...

  5. #5
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,294

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    at the end of the day for something that big and complex. you are going to want to hire someone local to sit down at the PC and really take a log hard look at it. It could probably be done over a remote session. If the dev you have is not the dev who created it especially.

    You will need an installer app to transfer it between machines andf make sure everything is registered properly. You will have to search to make sure each dll/ocx etc does not have additional dependencies which are failing. data files, databases, DSNs / ODBC connectors etc could be missing.

    if you set some filters this might be a place to start. You might have resolve issues in layers as one fix unlocks the next level error. I would expect it to take a while even in skilled hands.

    If you have the source, I would install vb6 on the test machine and try to load the source. The IDE will give good error messages while loading about missing components. (Some like the TLBs wont be required on machines which only run the exe but it would still help alert on others not working right).

    Attachment 192628

    Code:
    3:59:26.0369506 PM	osc.exe	8048	CreateFile	C:\Windows\System32\wow64log.dll	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    3:59:26.0410863 PM	osc.exe	8048	CreateFile	C:\Users\test\Desktop\osc.exe.Local	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    3:59:26.0428556 PM	osc.exe	8048	CreateFile	C:\Users\test\Desktop\MSVBVM60.DLL	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    3:59:26.1506496 PM	osc.exe	8048	CreateFile	C:\Windows\SysWOW64\VB6DE.DLL	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    3:59:26.1510571 PM	osc.exe	8048	CreateFile	C:\Windows\SysWOW64\rpcss.dll	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    3:59:26.1579302 PM	osc.exe	8048	CreateFile	C:\Users\test\Desktop\osc.exe.cfg	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    3:59:26.1580726 PM	osc.exe	8048	CreateFile	C:\Users\test\Desktop\SXS.DLL	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    Last edited by dz32; Aug 26th, 2024 at 09:00 AM.

  6. #6
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    924

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    Please suspend believe, and try these tests:

    1 - Rename Main() into Main1(), and add empty one like so:

    Public Sub Main()

    End Sub

    Run the project, and you should get no errors, because no code runs. Why this test? Main could run and crash on the first MsgBox or so, so you you might think it's not running.

    2 - Add a simple MsgBox to Main above, do you see it when you run the program?

    3 - If you have VC6(not VB6), then follow this method to pinpoint the source of a crash. However, if even Main doesn't run, then it's somewhat pointless.

    https://www.vbforums.com/showthread....-app-using-VC6

    Also, you can use an external Debug viewer to see messages when running in the EXE. You call OutputDebugString() to send text to it. I wrapped it in an easy to use routine, DebugPrint:

    Private Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (ByVal lpOutputString As String)

    Code:
    Public Sub DebugPrint(msg As String)
        OutputDebugString msg & vbCrLf ' Send to DebugView
        Debug.Print msg ' If running in the IDE
    End Sub
    You can download DebugView from here:

    https://learn.microsoft.com/en-us/sy...oads/debugview

  7. #7
    Fanatic Member
    Join Date
    Feb 2019
    Posts
    924

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    After looking at the log file with Process Monitor, it seems that one DLL is missing, VB6DE.DLL, which is a German language DLL according to this article:

    Support Statement for Visual Basic 6.0 on Windows:
    https://learn.microsoft.com/en-us/pr...support-policy

    Code:
    6:59:26.1506496 PM	osc.exe	8048	CreateFile	C:\Windows\SysWOW64\VB6DE.DLL	NAME NOT FOUND	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
    CreateFile doesn't mean the file is being created, it's opened for reading(loading the DLL).
    Last edited by qvb6; Aug 26th, 2024 at 01:00 PM.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    761

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    At the end, my app would not even compile anymore, a telling me about invalid syntax but not jumping to the point the source code.
    VB6 would crash during compilation.

    What helped me to get to know the failing situation was to use "VB6 /make myapp.vbp".

    When I used cmd to build the app, vb6 would finally tell me where the error was (in a form missing a control).

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2017
    Posts
    761

    Re: Need Help Analyzing PML Log File for Sudden Termination of VB6 EXE

    That may be, but it is usually not present on any system, and I never had this problem.

Tags for this Thread

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