All I can think of is that you're using some of the APIs that are associated with the "Save for Web" functionality and someone at Adobe put in a crappy error message (probably one they assumed would never been seen outside of "Save for Web"!).
Do you know what line of code is throwing the error?
Thank you for your fast answer.
The problem is solved now - this error message is throwed if the picture's resolution is too large.