This is clearly a bug in 3.5.17 and/or the raspi package. I am running in to this problem and a bunch of others, my whole codesys is crashing and dysfunctional. Tried remove/install codesys, did not fix it. Reg cleaner did not work. Next is reinstall of win 10. Hope a bug fix its on its way