Yeah i believe it's a runtime issue (compiler posts 6 errors, 4 in stdlib.h and 2 in vadefs.h but i think that they re not the problem). i used dependency walker and it didnt find anything missing. the Windows Event Log reported 1 information and 2 errors.

1)Fault bucket -813065184, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: pamepali.exe
P2: 0.0.0.0
P3: 514b0bfe
P4: KERNELBASE.dll
P5: 6.2.9200.16451
P6: 50988a1f
P7: e0434352
P8: 00012005
P9:
P10:

Attached files:
C:\Users\Xristos\AppData\Local\Temp\WER212C.tmp.WERInternalMetadata.xml

These files may be available here:
C:\Users\Xristos\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_pamepali.exe_f8903a42357b7c5821dbd8e6cd6e7d39ca87ec58_1a0e2773

Analysis symbol:
Rechecking for solution: 0
Report Id: 145f8e62-923a-11e2-afba-001a80fb78e1
Report Status: 0
Hashed bucket: e8ed8cf0722fb4d7cd45ee3363ac7df3


2) Faulting application name: pamepali.exe, version: 0.0.0.0, time stamp: 0x514b0bfe
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0x50988a1f
Exception code: 0xe0434352
Fault offset: 0x00012005
Faulting process id: 0xa60
Faulting application start time: 0x01ce2644f235cb45
Faulting application path: C:\Program Files\%blahblah%\My Product Name\pamepali.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 30285e89-9238-11e2-afba-001a80fb78e1
Faulting package full name:
Faulting package-relative application ID:

3) Application: pamepali.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:


From what i can tell from this there is something wrong with KernelBase.dll but i checked in system32 and it was there... can it be that the name is not in caps?