[MonoTouch] building in Release mode?

Randy Edmonds randy at randyedmonds.com
Fri Aug 7 22:50:22 EDT 2009

I build the app in Debug and it runs fine on the Simulator... but when I
build in Release it will not run on the Simulator. The problem is related to
loading a PNG file.
It crashes on this line... *img.Image = UIImage.FromFile("toplogo.png");*
*This is the error in the Application Output window...
Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Parameter name: value

It seems like there is some difference in the way files are handled/loaded
based on Release or Debug builds.
Any idea why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monotouch/attachments/20090807/32044a65/attachment.html 

More information about the MonoTouch mailing list