-
Aug 18th, 2022, 04:55 PM
#1
Thread Starter
New Member
Hide warning error dll not present
is it possible in VB.NET to remove the warning message when the dll is not present in the directory?
-
Aug 18th, 2022, 08:48 PM
#2
Re: Hide warning error dll not present
What DLL? What message? Either you need this library or not. If you don't, why does something think you do in the first place?
-
Aug 20th, 2022, 10:48 AM
#3
Thread Starter
New Member
Re: Hide warning error dll not present
DLL present:
Attachment 185547
DLL NOT present:
Attachment 185548
I just want to know if this screen error is possible to receive it in a txt file when dll not present.
-
Aug 20th, 2022, 11:07 AM
#4
Re: Hide warning error dll not present
Your attachments are invalid. The 'Insert Image' function doesn't work properly. You need to click 'Go Advanced' and then 'Manage Attachments'. Regardless, almost certainly not.
-
Aug 20th, 2022, 11:15 AM
#5
Thread Starter
New Member
Re: Hide warning error dll not present
DLL not present
DLL present
-
Aug 20th, 2022, 11:31 AM
#6
Re: Hide warning error dll not present
If you reasonably expect a specific exception in a specific place then you can use a Try...Catch block and do whatever you like in the Catch block. To catch unexpected exceptions, handle the UnhandledException event of the application. That will allow you to shut down gracefully instead of crashing. You can continue to run the app but you shouldn't because, if an unexpected exception was thrown, you can't possibly know that the application is in a stable state.
That said, if your app requires a DLL, you probably ought to make sure that it is present. If the user deletes that DLL or moves it or whatever then they are tampering with the app, so it's their fault if it breaks. It still wouldn't hurt for you to exit gracefully though.
-
Aug 20th, 2022, 11:45 AM
#7
Thread Starter
New Member
Re: Hide warning error dll not present
Perfect, thank you very 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|