vb.net - Handling exception on missing reference -
is possible somehow in vb.net handle exception thrown when reference has not been copied right directory. unable find way include dll file system.io.sqlite application.
currently if user copies/installs exe file uncaught exception error due missing dll file. gracefully explain issue , terminate program, or @ to the lowest degree give them alternative disable sqlite portion of it.
if have modules
, need remove private/public declarations of dll. if have startup form, remove private/public declarations of dll.
every private/public declaration in module of startup form processed before first line of code, cannot that.
with above done, can check create sure dll existing in directory doing this:
if not io.file.exists("system.io.sqlite.dll") ...
vb.net exception-handling filenotfoundexception
No comments:
Post a Comment