TRY-CATCH does not work when using a method from an other DLL
`// My Func private byte[] InjectAndExecute(…) { try { … while (BitMemory.ReadInt(adressCodeToExecute) > 0) Thread.Sleep(1); … } catch { } } // In DLL the final function where the error occurs public static int ReadInt32(IntPtr hProcess, uint dwAddress, bool bReverse) { byte[] array = ReadBytes(hProcess, dwAddress, 4); if (array == null) throw new Exception(“ReadInt failed.”); […]
TRY-CATCH does not work when using a method from an unmanaged DLL
`// My Func private byte[] InjectAndExecute(…) { try { … while (BitMemory.ReadInt(adressCodeToExecute) > 0) Thread.Sleep(1); … } catch { } } // In DLL the final function where the error occurs public static int ReadInt32(IntPtr hProcess, uint dwAddress, bool bReverse) { byte[] array = ReadBytes(hProcess, dwAddress, 4); if (array == null) throw new Exception(“ReadInt failed.”); […]