Results 1 to 7 of 7

Thread: Hide warning error dll not present

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2022
    Posts
    4

    Question 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?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    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?

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2022
    Posts
    4

    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.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2022
    Posts
    4

    Re: Hide warning error dll not present

    DLL not present
    Name:  s2.jpg
Views: 159
Size:  37.3 KB
    DLL present
    Name:  s1.jpg
Views: 127
Size:  11.7 KB

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    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.

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2022
    Posts
    4

    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
  •  



Click Here to Expand Forum to Full Width