How to catch exception from an unknown place in DLL?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Good day!
The situation is the following.
There is a Central program. Let's call it Node.
In Node dynamically connect multiple DLL (via LoadLibrary).
After connecting to the DLL, it begins to live her life (run separate threads from the DLL).
The problem is that we need to grab from the Node all the exceptions that can occur in the DLL to take action.
Is there any way to catch all exceptions that occur in the program even if the exception occurred in an unknown flow?
by | 51 views

1 Answer

0 like 0 dislike
I'd insulated all the bad code in separate processes - a child process of the main program. I.e. for each library runs its own process, where a) the library and b) the communication mechanism with the process of the main program. Nothing more.

Fell child process with a library - Yes, okay.

Need certainly to make the interprocess communication mechanism. But since 24x7, and you can work hard. But then you can live in peace.

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
36,634 users