Probably you mean the same problem that is described in the thread avobe, see "using GC needs particular skills?" Every time after execution my code I got very frustating access violation and the problem was misunderstanding garbage collector because I've never used it before.