Results 1 to 9 of 9

Thread: Please Help with this Code. My program is crashing when Unloading

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2002
    Posts
    196

    Please Help with this Code. My program is crashing when Unloading

    I'm using a class module (in the zip file) called ctooltip.cls

    I have no other declarations, other than this function and the code inside the class module. My program terminates fine when the function below doesn't get called, but when I start the program with a commandline parameter the program crashes on termination every time. I figure that something isn't getting destroyed or set to = nothing etc...

    Any help would be greatly appreciated.

    VB Code:
    1. Private Function AnalyzeCommandLineParameters(cmd As String) As Boolean
    2.     '======================================================
    3.     '   Analyzes the CommandLine Parameters
    4.     '======================================================
    5.    
    6.     On Error GoTo ERR
    7.    
    8. With New CommandLineHelper
    9.    
    10.     .CommandString = cmd
    11.      
    12.     If .HasParameter("-P") Then
    13.        
    14.             '// Do stuff here
    15.        
    16.     End If
    17.    
    18. End With
    19.  
    20. Exit Function
    21. ERR:
    22.     MsgBox "Error In AnalyzeCommandLineParameters!" & vbCrLf & vbCrLf & ERR.Description, 64, App.Title
    23. End Function
    Attached Files Attached Files
    Brandon S Davids

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