I have added this message below, this was all I got. I sometimes have had a memory corruption error as well. Thanks for your help !
CallbackOnCollectedDelegate was detected
Message: A callback was made on a garbage collected delegate of type 'R.NET!RDotNet.Internals.blah3::Invoke'. This may cause application crashes, corruption and data loss. When passing delegates to unmanaged code, they must be
kept alive by the managed application until it is guaranteed that they will never be called.