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:
Private Function AnalyzeCommandLineParameters(cmd As String) As Boolean '====================================================== ' Analyzes the CommandLine Parameters '====================================================== On Error GoTo ERR With New CommandLineHelper .CommandString = cmd If .HasParameter("-P") Then '// Do stuff here End If End With Exit Function ERR: MsgBox "Error In AnalyzeCommandLineParameters!" & vbCrLf & vbCrLf & ERR.Description, 64, App.Title End Function




Reply With Quote