broken with p/invoke cpp class