I have an application in C# that runs perfectly when I start it manually.
If I try to get it to run on computer start up by placing it in SHELL:STARTUP it fails at
i.Save("screen" + index + ".bmp");
where index is an integer 0.
I catch the exception and the message is ‘generic error in GDI+’.
The easiest way to fix it is to set “Start in” property of the shortcut to be folder where you want to store files.
Real fix as everyone else points out is to store files in location that you have access to as the user. Usual ways are: