I am working on an application that uses an out-of-process COM server. Even though our code is perfect
, there are some instances where the server EXE may crash or be terminated, causing access violations when the client tries to call a method on one of its proxy objects. Is there a good way to determine if the references to these objects are still valid before trying to use them?
Try...catch blocks work OK, but I feel like there might be a better way to do this. Thanks in advance!
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)