this works on visual studio without memory problems, we;ll see if this happens in the linux environment