J
JohnR
Hi all, I have an application that uses a custom DLL. The DLL needs to be
in the same directory as the executable. If it's not I want to catch the
error and give a meaningful message to the user. Right now, the appl
immediately aborts with a cryptic "Application has generated an exception
that could not be handled" error.
the application starts in a STARTUP Module and then starts up the main form.
I've tried ON ERROR, TRY CATCH, all with no success. In the startup Module
I have a DIM stmt that needs to reference a singleton pattern class which
resides in the custom dll. Code is as follows:
Dim GlobalItems As GlobalLibraryVars = getGlobalVarsObject()
'GlobalLibraryVars is a singleton pattern class in the custom DLL
I am wondering if the system is processing the DIM statements before
executing the Sub Main() code, if so, how can I catch a missing DLL error???
Does anybody have any suggestions? This thing is really driving me crazy...
Thanks, John
in the same directory as the executable. If it's not I want to catch the
error and give a meaningful message to the user. Right now, the appl
immediately aborts with a cryptic "Application has generated an exception
that could not be handled" error.
the application starts in a STARTUP Module and then starts up the main form.
I've tried ON ERROR, TRY CATCH, all with no success. In the startup Module
I have a DIM stmt that needs to reference a singleton pattern class which
resides in the custom dll. Code is as follows:
Dim GlobalItems As GlobalLibraryVars = getGlobalVarsObject()
'GlobalLibraryVars is a singleton pattern class in the custom DLL
I am wondering if the system is processing the DIM statements before
executing the Sub Main() code, if so, how can I catch a missing DLL error???
Does anybody have any suggestions? This thing is really driving me crazy...
Thanks, John