0

I'm loading an external dll with QLibrary. In some cases the dll just crashes (seg. fault). The DLL does not throw exceptions. What is the best way to handle this? I read that I need to run in a separate process/thread. Is this the only option?

cheers, m.

miro
  • 809
  • 10
  • 25

1 Answers1

1

Unfortunately you can't do anything with a segfault, you can try run the crashing code in a separate thread but that has the risk of leaving you with leaking resources or a massive amount of inconsistent state in your application.

If the .dll is yours I'd recommend trying to fix the segfault, if it's not report it as a bug and try work around it.

Nicholas Smith
  • 11,642
  • 6
  • 37
  • 55