Error Handling in Declarations Section

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Workaholic

    Error Handling in Declarations Section

    Hi,
    I have written an application in which I am using a third party
    control. I have declared the control using a DIM statement in the
    Declarations Section of the application, so that it is available to
    all functions and sub-routines in the application. Everything works
    fine on my development PC.

    If I install the application onto a second PC, which does not have the
    third party control installed, then I get problems (which you'd
    expect!). The application dies immediately with a "Applicatio n has
    generated an exception that could not be handled" messagebox.

    Please can somebody tell me how I can handle this error. I can handle
    errors in functions and sub-routines, but I don't know how to handle
    an error that is coming from the declarations section!

    Thanks
  • Herfried K. Wagner [MVP]

    #2
    Re: Error Handling in Declarations Section

    "Workaholic " <workaholicme@h otmail.comschri eb:
    I have written an application in which I am using a third party
    control. I have declared the control using a DIM statement in the
    Declarations Section of the application, so that it is available to
    all functions and sub-routines in the application. Everything works
    fine on my development PC.
    >
    If I install the application onto a second PC, which does not have the
    third party control installed, then I get problems (which you'd
    expect!). The application dies immediately with a "Applicatio n has
    generated an exception that could not be handled" messagebox.
    VB Application Model:
    'My.Application .UnhandledExcep tion'.

    Windows Forms:
    'System.Windows .Forms.Applicat ion.ThreadExcep tion'.

    [
    Console applications:
    'System.AppDoma in.UnhandledExc eption'.

    ASP.NET:
    'System.Web.Htt pApplication.Er ror' event in "Global.asa x".
    ]

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    Working...