So I just started using C#
my program runs when running directly from VS 2010, but the standalone executable throws this exception:
ArgumentNullException was unhandled
I've tried many hours to fix the problem to no avail...I've placed the ico file in the resources folder, set the build action to embedded resource.
Source: http://support.microsoft.com/kb/319292
my program runs when running directly from VS 2010, but the standalone executable throws this exception:
ArgumentNullException was unhandled
I've tried many hours to fix the problem to no avail...I've placed the ico file in the resources folder, set the build action to embedded resource.
Code:
_assembly = Assembly.GetExecutingAssembly();
_imageStream = _assembly.GetManifestResourceStream("MathMunchersTheGame.muncher.ico");
_textStreamReader = new StreamReader(_assembly.GetManifestResourceStream("MathMunchersTheGame.muncher.ico"));
It is either my naming convention or the ico file itself
Source: http://support.microsoft.com/kb/319292





