Thank you for trying that out so i know the fault is here by me.
1. It also crashes if i use "level_load(NULL)" so i think my .wmb is not damaged. Will try later with a minimal level.
2. I save the image with paint.net as a 24 bit .tga file (tried already with .bmp)
3. Will try it next week on a other PC, no time this week because i am busy at WEF in Davos

4. No more code. I reduce all for testing to the code i posted already.