System.AccessViolationException

My guess is that the garbage collector is throwing away something that is actually still needed.

I agree. Identifying that object would help us fixing the problem in Activiz. Storing it in a class is a valid workaround in the meantime.
I’ll try to reproduce in a small example and will update here if I find anything.