after more tests i noticed, runs fine wen compiled/published but i get empty pointer in main when running from SED...

so the million dollar question is: What could cause a dll to run in compiled when published but not otherwise ?