Just recently, I started getting this error at seemingly random times when running my game. It will be running smoothly, then suddenly crash, and I get this error in a pop up box in visual studio (not in the output window).
DisconnectedContext was detected
Message: Context 0x4f0bf0' is disconnected. Releasing the interfaces from the current context (context 0x4f09c8).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them.
Does anyone know why this happens?
Any help would be greatly appreciated!