yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] Sepplo:
Hey!

First of all: I know that there are many solutions to exactly this problem, but none of them works...

I am currenty working on an Windows Mobile 6.1 professional Application with Visual Studio 2005 Standard Edition in c#. My mobile is a Samsung Omnia i900. Additionally i use the Windows Mobile SDK 6 professional.

My Problem: the app seems to get not enough memory for executation. If i load a large image (2mb) i get an "OutOfMemory"-Exception. Weird: if i run the app via Visual Studio (Deploy on Device) i cant load even pretty small images. When i start the app on the device, i can load bigger images, but i need to load images of 2 mb and that doesnt work either way! This application will get pretty large so i was wondering how this can work, when i only got 1-2 mb ram, even though the mobile tells me that there more than 50 mf ram free to use.

i know that you can free ram of older images, when i dont need em anymore with dispose() but i even fail to load one image, if its big enough.

i also tried the OpenNetCF, didnt work either!

this really drives me crazy as im looking for solutions for the last few days, nothing works! i mean, how can i create a biger app, if i only have 2 mb or Ram to run it in??

please please help!

Michael

P.S.: as i am pretty new to visual studio, i have another tiny question: i added some references (DLLs) to the project, that i do not need anymore! how can i remove those references? cannot find the command *too stupid* :)
[Windows Mobile Software Development] Arlanthir:
Do you know if you're using DirectDraw in those .NET wrappers?

Windows Mobile powered devices have a graphical memory limit, which no one can do anything about :S

If you use GDI (slower, not hardware accelerated imaging API) I think you'll have less problems.

I work with native code, so I'm not sure you can make those choices using .NET, nor if this is your actual problem.
[Windows Mobile Software Development] Sepplo:
hey and thanks for responding!

well, as you say im not sure if i am using it! i use the normal System.Drawing Stuff. When i load a picuter i use Image i = new Bitmap(path) or paint with graphics.drawImage, either way the memory overflows! this is driving me crazy :(
[Windows Mobile Software Development] Arlanthir:
Can you try developing this using native code?
[Windows Mobile Software Development] Sepplo:
well isnt that extremely complicated? i am quite new to that stuff, so i am horrorfied to even think about writing this in native code!

well i could give it a try, do you know some good tutorials for that? i can code a little java, delphi, haskell, prolog and C#, but all of these are pretty far away from machine language ,so native coding would be pretty hard for me!
[Windows Mobile Software Development] Arlanthir:
Ahah it seems you're under the impression native code = Binary?

Native code, as opposed to Managed Code (C#, VB) is simply running C or C++, without the .NET sandbox around.

Maybe it's too much for now. I can't help with C# or VB, but I advise you to search for GDI and DirectDraw calls on Managed Code and see what you're using.
[Windows Mobile Software Development] Sepplo:
hehe, i was already wondering, what kind of dude you are, coding in machine language (that was my translation given by google). Ok, i think i can do some stuff in c++. Do i have to tell my visual studio explicitly not to use the .NET-framework when i start a C++ Mobile Device Project or is that the default configuration? sorry im really new to that, used to code in eclipse...

mhmpf! i like that wysiwyg stuff from c#, damn...

but thanks so far!

anybody else got any ideas? i mean it has to be possible... if not, ill try some c++
[Windows Mobile Software Development] Arlanthir:
I suggest you just head over to MSDN.com and check what exactly those functions do. There's no point in learning "Windows driven" C++ if the problem rests in other place.

I'm almost sure there are GDI calls for .NET. I merely wanted you to try them! ;)
[Windows Mobile Software Development] Sepplo:
hey, i am afraid i am already using the GDI-calls! Found several tutorials, which show how to load an image, exactly like i did it.
[Windows Mobile Software Development] Arlanthir:
That's not good.

I must ask, why do you want 2mb images?
[Windows Mobile Software Development] Sepplo:
its a navigation-like software, and i need to load the complete image to be able to scroll smoothly through it! for the moment it works as i changed the image into a 600kb one... but im afraid, as the application gets bigger even those 600kb could be too much.when i implemented the other logics like routing and points of interest on the map, i think that will exceed those (apparently only) 2mb ram-space i have...
[Windows Mobile Software Development] Arlanthir:
I think it's best to buffer the current position's image and the neighboring ones. When the position changes you automatically show the pre-buffered neighbor, free the previous ones and load the next. If there's a sudden change by a lot, you'll just say "loading" and buffer the new far away position with its neighbors.

Don't try to have the complete "maps" always fully available. ;)
[Windows Mobile Software Development] Sepplo:
but when the application gets bigger (other things too come), im almost sure i will need more than 1,5mb ram, besides: if i just load parts of the picture, i need to make more changes on the MouseMove-Event, Scrolling will get laggy with that :/

(by the way, thanks a lot for helping me, i appreciate it very much!!)
[Windows Mobile Software Development] Arlanthir:
No, it can be done, buffering is essential in graphical intensive applications on Windows Mobile... You have to keep in memory what you are displaying and the next probable ones ;)

No problem, it's what we're here for :P
[Windows Mobile Software Development] DaveShaw:
Try writing the code that loads the images in a seperate assembly (dll) and call that from the main exe.

Ta

Dave
[Windows Mobile Software Development] godefroi:
What kind of image is it? Remember that many image formats are compressed, so doing stuff with em takes more memory than you'd realize.
[Windows Mobile Software Development] TehPenguin:
How big is the image as a Bitmap (ie a .bmp) - this will tell you how much RAM it requires to load (plus overheads for the object)

Its probably best if you take the Google\Bing maps approach and split it into a number of smaller images and load\unload each one as you need it
[Windows Mobile Software Development] Arlanthir:
That's what I suggested, but he seems reluctant in buffering only the active and neighboring parts... I don't see any other way here =/
[Windows Mobile Software Development] Sepplo:
you guys were absolutely right! i knew before that jpeg is a compressed format, but the bmp is actually around 13mb big, that is really too much. Well i really will have to split the image. but thus week i have no time, due to another paper i have to write...

last question: what would be the best approach here?

1. one big panel and draw the images at the right position? (seems not good to me, cause i would have to repaint the panel with all images over and over again)

2. different panels to paint the pieces in?

3. different picture boxes to load the images into?

thanks very much for your help!
[Windows Mobile Software Development] Arlanthir:
What do you mean by 'panel'?
[XPERIA X1 Q&A, Help & Troubleshooting] sebastiannielsen:
Since I have no use of the àü button on the keyboard (I always use sym anyways), is it possible to remap this button to CTRL?

(I often use PocketPutty client on the phone and I always today have to take out the soft keyboard to do CTRL+O (Save in nano) or CTRL+X (Exit in nano))

Any that knows a registry tweak or something?
[XPERIA X1 Q&A, Help & Troubleshooting] Alex300588:
Hey guys, first sorry for my bad english, i´m from germany ;-)

The loudspeaker of my x1 is broken and i need to flash it with the original rom. I have try it 3 times to cook a new rom but its not working. is there any ready original german rom to download? please help me. i ´m triing 3 days now but it`s not working.
[XPERIA X1 Q&A, Help & Troubleshooting] Alex300588:
or could somebody tell me how i can get the sony erricson update service running? its going to the three colour mode and starts flashing. on 0% the device shoots down and goes to the three colour mode again, and again, and again......
[XPERIA X1 Q&A, Help & Troubleshooting] tictac0566:
Here is the thread for virtually all stock ROMs, also German generic and operator.

Here is a comprehensive guide with step by step instructions and problem hints.
[XPERIA X1 Q&A, Help & Troubleshooting] Alex300588:
i hafe flash APP_SW_X1i_GENERIC_DE_CDF1215-3303_KOV_R3AA007 now, but the sony update service still doesn`t work. is it normal?
[XPERIA X1 Q&A, Help & Troubleshooting] Alex300588:
its working now. i only had to use an other usb-port. haha 3 days becouse of a stupid usb-port.
[Upgrading, Modifying and Unlocking] psolunke:
Dear All,

Can anybody give provide me the 100% working Android ROM for my i780.

Or any other way to use android os on Samsung my i780.

Please help me as I want to test it.

Thanx in advance.
[myTouch 3G, Magic Android Development] feicher:
--- Updated and simplified

Updates from HTC are randomly released for countries and regions. These Update may lock your phone. As of today, phones can be unlocked again by using the GOLDCARD approach. However, there is a much simpler way to prevent bad things from happening:

If you like flashing HTC roms and have no intention to lock your phone, follow these steps:

On the PC

1. Double Click the .exe from the update. Wait for the first window to appear (DO NOT CONNECT YOUR PHONE). Don't close the application but do not continue

2. Open explorer and navigate to the hidden directory:

Windows 7: \users\$username$\AppData\Local\Temp\... followed by something like ...\{2A3DF7FC-1693-4C53-8883-6CF09DED700D}\...

Vista: documents and settings\.....

3. You should find the install application files along with a file "Rom.zip" (40 to 90 Megs)

4. Extract the ROM.zip to your SDK Tools directory, where fastboot.exe resides

5. open command shell and navigate to your Tools directory (supposing SDK, adb and fastboot are installed)

On the Phone

6. Enter recovery console on phone (press "home" + then "on")

7. Do a nandroid backup

8. Select Wipe your phone

9. Hold "back" and select "reboot system" in recovery to enter Fastboot mode

On the PC

10. Type: "fastboot flash boot boot.img" .... wait to complete

11. Type: "fastboot flash system system.img" .... wait to complete

12. Type: "fastboot flash userdata userdata.img" .... wait to complete

13. [Optional] Type: "fastboot flash radio radio.img" .... wait to complete (note: some HTC radios locked windows mobile phones. I am not sure whether this applies for Android)

14. Reboot your phone

15. Keep the update if you like it, revert to backup via recovery and nandroid in case you don't

And sorry for any confusion caused...

Regards,

fde
[myTouch 3G, Magic Android Development] :No-Frost::
Thanks a lot mate... I will try the official sense for my magic then using this method first =D...
[myTouch 3G, Magic Android Development] ZeaDK:
Are you sure....

That this will work? I have made the RUU Flash: RUU_Sapphire_HTC_Europe_2.20.401.2_HTC_Nordic_release_signed_NoDriver

And that resulted in:

HBOOT-1-33-0014

CPLD-12

RADIO-3-22-23-18

I don't understand what you are meaning about the Radio.img file.

And what about the HBOOT file?
[myTouch 3G, Magic Android Development] feicher:
Yes it works. Just verfied it aigain. What the RUU package does is:

1. Extract the application to a temp file

2. Use ADB to flash the ROM to your phone

By the approach described in the first post, the application unpacks itself into a temp directory. This allows you to access the ROM-File which is stored as ROM.zip or something similar. By moving only the vital Boot, System and Userdata, you avoid flashing your Recovery console or Bootloader (Hboot).

It implies of course, that you DO NOT continue with the RUU application as soon as the first window becomes visible. (I will adjust the above Tutorial and make it simpler).
[myTouch 3G, Magic Android Development] ZeaDK:
Problem

But the problem is that I allready have flashed my phone, is this the way to revert is så I can root it again and put custom roms on it again?
[myTouch 3G, Magic Android Development] thihaz:
same here

I also want to know how I can flash new ROM since people said that my spl is perfected after upgrading :(

I was learned that we need to use goldcard method to root again.

In our case, any idea which ROM to use as we gotta use higher ROM?

Or are we able to gain root access without touching the existing ROM?

Now even cannot boot to recovery mode.

So stupid to upgrade it although the ROM is stable and fast but no root access sucks.

any help would be appreciated.

thanks,

thihaz
[myTouch 3G, Magic Android Development] feicher:
Well I guess my post was too late then.

However, the GOLDCARD approach, is said to allow succesful flashing of the engineering SPL or 1.33.0009. Do that and your back in business.

Regards,

fde
[myTouch 3G, Magic Android Development] :No-Frost::
The problem with the goldcard method is that you lose the roms as well...
[myTouch 3G, Magic Android Development] phygee:
Sir, would you please let me know how to flashing engineering SPL, right now i have HBoot-1.76.007 which shipped with the Singapore HTC sense rom.

BTW: i don't care i will lose the rom or not.

Many thanks!

I flashed using RUU_Sapphire_HTC_Asia_WWE_2.16.707.3_SG_release_signed_NoDriver.exe with golden card, but got "check main rom verion" error msg.

then flashed using RUU_Sapphire_HTC_Asia_WWE_2.53.707.2_SEA_test_signed_NoDriver.exe with golden card, same error msg again.

I really have no idea how to flash back to engineering SPL, i'm stuck in Singapore HTC sense rom.
[myTouch 3G, Magic Android Development] radonsg:
i got 1 rom.zip(11mb) & another one rom1.zip(89mb).

But both I also can't unzip. Any idea? Thanks.
[myTouch 3G, Magic Android Development] feicher:
I did this twice on a Swiss Update, which btw wasn't worth applying. Just by the Size it's rom1.zip.

Let me download the Singapore and see what I can do.... But then looking at the guys post it seems the second file in the post is what you need. Download this package and only flash boot, system and data in fastboot mode. (From Step 4. onward in the guide). Anyway I will have a look.
[myTouch 3G, Magic Android Development] feicher:
Please follow the GOLDCARD method. I am not a recovery expert. I try to be cautious and was lucky until now (so I never tried it myself, but it is reported to work). Sorry for that. If :No-Frost: knows of a better guide with regard to GOLDCARD, please post!

Regards,

fde
[myTouch 3G, Magic Android Development] :No-Frost::
For now the only method I know is the goldcard one... But in my country, using the goldcard method, makes the magics lose the 3g, edge or any internet mobile connection... =(...
[myTouch 3G, Magic Android Development] yschandra:
Be careful, by using this method you can not upgrade to Snese UI (example TW). The reason being system image in Sense UI is larger than the previous 1.5 ROM system image, so system partition needs to be re-sized, which the RUU update does it for you. Otherwise you are struck with failed system image flashing.
[myTouch 3G, Magic Android Development] sparky.exe:
signiture verifiaction fail

I get a signiture verifiaction fail when trying to write the .img files using fastboot. Any suggestions?
[G1 Android Development] FukTheRegister:
Hi,

I search for "What is the misc partition ?"

And what he's contents ?
[G1 Android Development] stefan.buddle:
what is the Q&A section?

And what goes in the "QUESTION&ANSWER" section?

P.S- You Fail
[XPERIA X1 Themes and Apps] kestonikas:
Hi,

I have noticed some problem - when I use mobile data connection and it is on HSDPA, sometimes no one can call me - it says, that my phone is switched off. When connection is slower, like GPRS, EDGE - everything is fine.

In sony ericsson sevice center I was told to talk with operator. Operator told that this can not be their problem. So, I am in situation, when everyone is right.

Just offered to find some software which could limit connection speed.

So, my question is - maybe someone knows such software?
[XPERIA X1 Themes and Apps] sergiomusa:
i know a program to switch on-off the data connections...

NoData

PD: I don´t know if i can post a utility from other forum, if not someone help me to do the attachment, when i press attach it´s give me an error. Maybe firefox it´s wrong.
[Touch GSM General] Leightonw87:
Hi all, new here, I'll get straight to the point because it'ds quite urgent. I flashed my htc elfin with the onyx 6.5 rom and after flashing if kept crashing on the Orange splash screen but I done an even more of a stupid move because I tried flashing the phone with a shipped rom and at the time I did it I didn't know it was incorrect so now all my phne can do is display pretty red green and blue gradiants with the following written on the red gradiant.

IPL 2.27.0002

SPL 2.28.0000

I can't remember anything like CID or anything like that but I do have the following...

SN :HT837Gxxxxxx

IMEI :35678601xxxxxxx

Part Number :99HEH137-00

Part Description :SKU,ORANGE,English-WWE,GBR,white,GSM 900/1800/1900,HTC_P3452,ELFIN-A2,w/ SIM Lock

Customer Name :Orange P.C.S Limited

Customer Model :

HTC Model :ELFIN-A2

Error Message :

Please help me as I can't do anything with it.

By the way I got two other devices, one being my gizmondo and the other being my old IPAQ h1910.

I've also got this info...

Cmd>password BsaD5SeoA

Pass.

+ SD Controller init

- SD Controller init

+StorageInit

SDInit+++

SDInit - SD ver2.00

SDCmd1 Command response time-out. MMC_STAT = 80

SDCmd1 Command response time-out. MMC_STAT = 80

SDCmd1 Command response time-out. MMC_STAT = 80

SDCmd55 Card status error in response. MMC_STAT = 4000

SD Ver2.00: Low Capacity

SD clock to 24MHz

***** user area size = 0x3AF000 Secters

SDInit---

SDInit OK

g_cKeyCardSecurityLevel = FF

HTCEType (0x1)(Operation mode flag): cOpModeFlag=(0x0).

Type (0x2)(Back color flag): cBackColorShowFlag=(0x1).

Type (0x5)(Background color value): g_wBColor=(0xC618) (0xC0C0C0).

HTCST

Thanks Leighton
[Touch GSM General] crapula512:
that little line is telling u that the phone is CID-Locked, and as it doesnt go beyond the bootloader, is bricked too.

so, the most easy thing to do is trying to flash the unbricker rom from sd, if that doesnt work go with the goldcard method that will work for sure if done properly.
[Touch GSM General] Leightonw87:
I tried the unbricker rom through the ruu utility but it says invalid vendor and when I do it through SD it says Checking SD and then nothing. I'm currently trying the goldcard method but it doesn't seem to want to work on my 2gb MicroSD. The SD SN starts with 00 so I not sure whats wrong.

I now regret doing the flash in the first place. Also some of the utilities are reconising it as around 900>mb, not 2gb so thats making me think that I should get a 512mb or 1gb memory card...
[Touch GSM General] crapula512:
try making a smaller partition in sd card and the unbricker rom again.

read this:

http://wiki.xda-developers.com/index.php?pagename=Elf_SD_Card_Flashing

the problem is not flashing roms, the problem is with all the ppl that tries to flash original roms/backups and end with a dead phone.
[Touch GSM General] Leightonw87:
That is probably what did lol.

Edit, How do I resize the SD card, I've done it in past for my IPAQ but that was a good while ago and it was for putting opie on it.
[Touch GSM General] crapula512:
Start > control panel > administrative tools > computer management, then on the left select disk management under storage. delete all partitions from ur sd card and make a new one with 800mb for example and make sure to format it.
[Touch GSM General] Leightonw87:
I've got windows 2000 and under disk management, Delete Partition is greyied out on the sd card.

EDIT:

I just tried disk management on my windows xp laptop and I cannot Delete Partition, same as the above which makes me think it maybe my card reader because this is with a 1gb microsd, not my 2gb one.
[Touch GSM General] Leightonw87:
I know I shouldn't do this but I'll say sorry in advance.

I can't get the gold card method to work nor will it flash from sd, should I be using a wm device with a MicroSD slot or should I be able to use the adaptors in a standard sd slot device as I only got the latter. I'm in desperation and I really can afford to send it off, please help me.
[Touch GSM General] crapula512:
AFAIK, the sd adaptor is just a mechanical device, so it should work ok.

however is strange that u cant flash from SD, make sure that the filename is correct and that u wait long enough.
[Touch GSM General] dare2know:
i will suggest simple way switch off ur device . (take the battery out) reinsert the battery and flash ur carrier provided rom from our forum..see sticky rom thread. and try flashing original one .it will work flawlessly ..and then use 3.10cmon uspl and ur cid unlocked and free to flash any

rom..

Hapy flashing
[Touch GSM General] Leightonw87:
I've tried looking for the Orange uk shipped rom and they are all dumped roms on the wiki and there isn't any orange uk shipped roms on the stickie.

I wish they made this sort of thing alot easier, My sony ericsson didn't even give me this much hassle. :(
[Touch GSM General] dsixda:
Your Sony Ericsson probably didn't allow you to flash cooked ROMs either.

You don't need an Orange shipped ROM, you just need a shipped ROM with same device ID (eg. ELF010150 or whatever your device is). Gold card should work if done right.
[Touch GSM General] Leightonw87:
I think I'll have to see if I can get a Virgin Lobster phone because out local pawn shop gets them quite often and very cheap, to try the goldcard then, until I find one I'll wait abit because my gizmondo refuses to do anything with QMAT even though it says written to sd card.

By any chance is it possible to change Cardid by hex editing?
[Touch GSM General] dsixda:
I don't know because all the knowledge I have about the Gold Card is shared in the Wiki. As I already stated there, I don't know of any other way to get the Card ID. I'm no hacker.
[Touch GSM General] Leightonw87:
ok no probs, thanks for all the help you've given to me, once I find another WM device I'll try again because I spend too much time on trying to do goldcard and my partner is getting annoyed. lol
[Touch GSM General] dsixda:
What do you mean by it "doesn't seem to want to work"? What error are you getting. And why do you want to hex edit the card id?
[Touch GSM General] Leightonw87:
No matter how many times I try I just doesn't want make the goldcard. on xp and 2000 but like I mentioned before it must be something to do with my gizmondo. My pda is pre ppc 2003 so no luck there. doesn't find the serial number at all.
[Touch GSM General] dsixda:
Just buy a WM device from the electronics shop and then use the Gold Card method on it.. then return the device when you are successful ;)
[Touch GSM General] Leightonw87:
hahaha, Thats a great idea but these days they are pretty fussy when it comes to returns.
[Touch GSM General] Leightonw87:
Hi, I just thought I'd add this as I don't know what the CID number is.

Cmd>getdevinfo

HTCSELF010051¡o³fHTCE

As far as I can work out its ELF010051 but looks like something went wrong with the CID number

I know it's orange uk as shown in the first post. I was also wondering could I create a goldcard by just using my pc/laptop or could someone create a goldcard for me???

SD SN:E06E030000000000F0FFFFFF30000306
[Touch GSM General] Leightonw87:
Also I just noticed something odd, the serial number changes everytime it gets inserted in my Gizmondo. Very odd.
[Touch GSM General] Leightonw87:
SOLVED: Phone Fixed with test Firmware

Thanks to all the people that helped my fix my Elfin, I can now confirm the phone is now in full working firmware. Shame I HAD to buy another HTC phone. oh well.