ChuckStyles
13-10-2006, 06:03 PM
Hello, im a software developer and im having an issue with a SX66 of mine upgraded to WM5. I figured someone would like to know about this, as every single WM5 upgrade for the BA i've tried still gives this error. It has to do with System.Drawing.Bitmap I thought someone could point me in the right direction, if this is a bug that can be fixed with the BA WM5 or a limitation of the actual device itself. here is the bug: (this program works fine on native WM5 devices and emulator, but has an exception when running on a WM5 BA)
I've installed all the WM5 builds from this site, TuMa, Helmi, etc All have the same problem.
Error occurs when trying to load a Bitmap from the resources folder into the program.
Code is here:
internal static System.Drawing.Bitmap Customers {
get {
object obj = ResourceManager.GetObject("Customers", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
System.Drawing.Image and System.Drawing.Icon for getting resources work perfectly, its just System.Drawing.Bitmap that is having problems.
Inner StackTrace
at Microsoft.AGL.Common.MISC.HandleAr()
at System.Drawing.Bitmap._InitFromMemoryStream()
at System.Drawing.Bitmap..ctor()
at System.Reflection.RuntimeConstructorInfo.InternalI nvoke()
at System.Reflection.RuntimeConstructorInfo.Invoke()
at System.Reflection.ConstructorInfo.Invoke()
at System.Resources.ResourceReader.CreateResource()
at System.Resources.ResourceReader.LoadBitmap()
at System.Resources.ResourceReader.LoadObjectV2()
at System.Resources.ResourceReader.LoadObject()
at System.Resources.RuntimeResourceSet.GetObject()
at System.Resources.ResourceManager.GetObject()
at Microsoft.Practices.Mobile.AdventureWorksToGo.Cust omerModule.Properties.Resources.get_Customers()
at Microsoft.Practices.Mobile.AdventureWorksToGo.Cust omerModule.CustomerModule.Load()
at Microsoft.Practices.Mobile.CompositeUI.Services.Mo duleMetadata.InitializeModuleClasses()
at Microsoft.Practices.Mobile.CompositeUI.Services.Mo duleLoaderService.InnerLoad()
at Microsoft.Practices.Mobile.CompositeUI.Services.Mo duleLoaderService.Load()
at Microsoft.Practices.Mobile.CompositeUI.CabApplicat ion`1.LoadModules()
at Microsoft.Practices.Mobile.CompositeUI.CabApplicat ion`1.Run()
at Microsoft.Practices.Mobile.AdventureWorksToGo.Shel l.ShellApplication.Main()
I've installed all the WM5 builds from this site, TuMa, Helmi, etc All have the same problem.
Error occurs when trying to load a Bitmap from the resources folder into the program.
Code is here:
internal static System.Drawing.Bitmap Customers {
get {
object obj = ResourceManager.GetObject("Customers", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
System.Drawing.Image and System.Drawing.Icon for getting resources work perfectly, its just System.Drawing.Bitmap that is having problems.
Inner StackTrace
at Microsoft.AGL.Common.MISC.HandleAr()
at System.Drawing.Bitmap._InitFromMemoryStream()
at System.Drawing.Bitmap..ctor()
at System.Reflection.RuntimeConstructorInfo.InternalI nvoke()
at System.Reflection.RuntimeConstructorInfo.Invoke()
at System.Reflection.ConstructorInfo.Invoke()
at System.Resources.ResourceReader.CreateResource()
at System.Resources.ResourceReader.LoadBitmap()
at System.Resources.ResourceReader.LoadObjectV2()
at System.Resources.ResourceReader.LoadObject()
at System.Resources.RuntimeResourceSet.GetObject()
at System.Resources.ResourceManager.GetObject()
at Microsoft.Practices.Mobile.AdventureWorksToGo.Cust omerModule.Properties.Resources.get_Customers()
at Microsoft.Practices.Mobile.AdventureWorksToGo.Cust omerModule.CustomerModule.Load()
at Microsoft.Practices.Mobile.CompositeUI.Services.Mo duleMetadata.InitializeModuleClasses()
at Microsoft.Practices.Mobile.CompositeUI.Services.Mo duleLoaderService.InnerLoad()
at Microsoft.Practices.Mobile.CompositeUI.Services.Mo duleLoaderService.Load()
at Microsoft.Practices.Mobile.CompositeUI.CabApplicat ion`1.LoadModules()
at Microsoft.Practices.Mobile.CompositeUI.CabApplicat ion`1.Run()
at Microsoft.Practices.Mobile.AdventureWorksToGo.Shel l.ShellApplication.Main()