I have a WPF application, which sometimes is exiting with an exit code of -1073740771. The issue is not occurring in any pattern and it's varying from system to system. In some system the issue is occurring for less that 10% of the total cases and in other system I am seeing it occurring at a rate of almost 30% of the total cases. I haven't been able to form any solid repro steps and it seems to be happening at random.
The symptoms include that after I have clicked the close button, the application exits but in task manager I could still see the process lingering for about 20-30 seconds, and then it exits. The application seems to be shutting gracefully (from a functional point of view) so it might not have much effect on customers using it, but the error code is getting logged in the logs which is pretty annoying.
This issue is also happening when I am debugging from Visual Studio, but no exception is getting caught in the try - catch block.