Results 1 to 7 of 7

Thread: generic err msg

  1. #1

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075

    generic err msg

    is there any way to figure out what these generic vb.net error messages mean?


    Application has generated an exception that could not be handled

    Process id=Oxaa(170), Thread id=Oxbe (190)
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Try inspecting the StackTrace of the exception object that gets thrown. That should have more information with it including the file and line number that caused the error.

  3. #3

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    the app thats having the problem is on a user machine. Would I have to recompile then update the exe?

    It's strange, I have the app installed on a bunch of NT boxes all working fine, but on this one when the user goes to close out of the app they get the exception err msg?
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Yes to make use of the StackTrace you'd need to add more error handling in your code and recompile. The only thing I can think of without a recompile is MAYBE something with adding TraceListeners into the config file. I haven't actually tried that yet, but it may work.

  5. #5

    Thread Starter
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    I'm getting the error message on the close event. All I have in that event is END. Do you know where else I can debug and place some error trapping in?
    It's tough being an unhandled exception...

    ___________
    VB.NET 2008
    VB.NET 2010
    ORACLE 11g
    CRYSTAL 11

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If you start the app from a sub main then you can wrap that in a try..catch to catch anything not caught in the rest of the app.
    VB Code:
    1. Public Module Starter
    2.  
    3.     Public Sub Main()
    4.  
    5.         Try
    6.             Application.Run(New Form1)
    7.         Catch Ex As Exception
    8.             MsgBox(Ex.StackTrace, MsgBoxStyle.Critical, Ex.Message)
    9.         End Try
    10.  
    11.     End Sub
    12.  
    13. End Module

  7. #7
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    I was told iin another posting that using End was very harsh on an apllication and to use Appplication.exit instead

    I'm not saying that is the solution, but it's a simple change to make and try

    Other than that try what Edenis posted, the only problem I've found with the stack trace, is it only gives the code execution list and so if you already know where it fails does no thelp you that much

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