List directory works in win, Sobel owerwrited by memcpy