PDA

View Full Version : BA WM5 System.Drawing.Bitmap Problem


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()

_TB_TB_
13-10-2006, 07:21 PM
Did you install the DDraw/D3D driver? (its only a set of reg entries, actually, that switches the driver to use another one;) ) All the default WM5 BA bulds use ACE_DDI driver - it seems to have a lot of problems in various programs (mostly those with custom draw interfaces - try running PencilBox Deluxe - u'll see)

The driver is usually available in the package with ROM, as Extrom addon.

Twiggerdingo
22-10-2006, 12:04 PM
Was this the answer? I tried the extra .dll but no change. Therefore wififofum, dynamo and bluesniper wont work on wm2005.

I am interesed in the solution, because the error on these programs is also related.

_TB_TB_
22-10-2006, 04:45 PM
?? WiFiFoFum works great at my BA with WM5...

motisu
22-10-2006, 07:12 PM
?? WiFiFoFum works great at my BA with WM5...

That is really weird... I installed CF2 prerequisite and then installed Wififofum2 and I get a list of error messages.... something about being out of range.

I just gave up on it, but it sure would be nice to have.

Twiggerdingo
22-10-2006, 07:24 PM
That is really weird... I installed CF2 prerequisite and then installed Wififofum2 and I get a list of error messages.... something about being out of range.

I just gave up on it, but it sure would be nice to have.

Same here i guess, and i seem to have the same rom as yours, also Helmi BA Aku.3.2 v1.3.2, but then on a qtek 9090.

I wonder, TBTB, what rom do you have, the 1.26 rom instead of the 1.32 rom? I have read that the pim and radio (?) are basicaly different. I dont want to try out when i am not sure, everything else works.

_TB_TB_
23-10-2006, 12:04 AM
I use helmi's AKU 2.6 ROM. Remember to install DDraw driver add-on...

Twiggerdingo
23-10-2006, 07:04 AM
Ok then, then its worth a try i guess. I will download the 2.6 version tonight and give it a try.

Edit ----

Installed 2.6 and the extra DDraw driver, but no go. I got the same error (bitmap error) in the program 'sniper' and wififofum. Have reflashed it to 3.2 because that 1 worked fine on all other things. Maybe this problem gets solved in a newer ROM...

Twiggerdingo
03-11-2006, 01:54 PM
Kick

I was wondering if anyone has figured out a solution yet, still several programs aren't working in the WM2005 roms.