Windows Mobile GDI pool - Windows Mobile Software Development

Hello,
if I create 4000 HDC objects (via ::CreateCompatibleDC) and then destroy these DCs the memory allocated for them is "leaked". When i try the same operation many times the memory leak is only for the first operation (so it definitely there is a GDI pool).
My question is how to release that "pool-allocated" memory?
Very thanks to any help!

need help
Any idea what to check is very welcome! Thank you!

hi,
you have to release an allocated dc with releasedc

Of course I do - that does not help at all.

Related

Original Rom dump LG KS20 WM6 - FR - SFR

Sorry for my bad English the translation FR-> EN made by an on-line translator
Hello,
The objective of this post is to allow each to modify its Rom in particular to correct the small youth defects of this quite new PPC under WM6.
Presentation of the animal...
Networks: GSM, GPRS and EDGE, 3G and 3G + ( HSDPA) ·
Mobile Windows 6 Professional ·
Processor tribande: ARM 1136EJS MSM 7200 400 Mhz ·
Screen QVGA of 320 x 240 pixels of 2,8 thumbs ·
internal Memory: 256 Mb ROM and 128 Mb RAM ·
removable Memory: microSD
http://www.pdadb.net/index.php?m=pdamaster&posted=1&cpu=a7200
From these characteristics we notice resemblances at the level of the processor and the reports with Kaiser.
1/Dump of Rom following the tuto of KS20_en_colère.
One thank you to him and in forums of http: // www.forummobiles.com
We have now four files
Part00 = 1.12M
Part01 = 5.00M
part02 = 65.38M
part03 = 150.13M
2/Reconstruction of Rom
Basic hypothesis - > the KS20 is close enough to Kaiser to apply him(her) the same step(initiative).
Thanks to BEDAV for excellent sound tuto on the www.win-mobile.com site http: // qtek9100.forumpro.fr/htc-p4550-tytn-ii-kaiser-f41/kaiser-reconstruction-d-une-rom-t8849.htm
We obtain reconstituted Rom named RUU_signed.nbh = 79 451 Kb
3/Construction of new Rom
Again thanks to BEDAV and www.win-mobile.com
http://qtek9100.forumpro.fr/htc-p4550-tytn-ii-kaiser-f41/kaiser-tuto-rom-custom-t9322.htm
Finally we have 4 files:
- Temp (contains the temporary files for your works)
- SYS (contains the logs of the builder(manufacturer))
- OEM (contains the logs of the operators phone)
- ROM (contains the BASIC BONE)
Check has this step of progress I can say that we find a multitude of thing, progs, the keys of the base of register, icones, DLL...
4/Questions
How to verify the integrity of Rom extracted to confirm or not my hypothesis?
How to relieve this Rom to obtain a base work (transfer the menu Lg and the other one superfluous!) the Seine and without bug (or almost).
How CID unlock the KS20? The dump can he help us?
Thanks to all for your precious help.
oh ... its on xda ftp ^_^ thx ... i will try to extract the videodriver and put on the HTC Niki!
Hello,
If you want I can put the directory OEM or SYS (or Dump) on the XDA FTP.
@+
lg-kS20
Hi all
probably this should not be posted under this thread ... but this is the closest on i could find
so applologies in advance
my issue is like that ... i just bought a brand new KS20 ..i was really happy in the beggining until i found that i am stuck with the GREEK WM6
is there anyway to change the ROM to English
let me point out that i am not looking for an original version of the ROM
thank you all in advance
G
Hello,
I think that it is possible. See the attached file for example. It is a translation in Chinese with 0804.mui
hi, how do you dump ks20?
have you the "ks20 usb modem driver"?
oussbaba said:
hi, how do you dump ks20?
have you the "ks20 usb modem driver"?
Click to expand...
Click to collapse
No, he do it with applications availible from this forum. And this dump cant be used with that LG flashing aplication
Do any body knows where I can find how to dump KS20 ROM from my KS20 for Backup purpose? I wanna backup my Traditional Chinese ROM for backup and flash EN 10c ROM. Thanks all.

Program Memory

Hi,
Is it possible to increase the program memory space?
I have installed alot of software on my mini-SD card but there is still only minimal space for the program memory?
Cheers
truongazn said:
Hi,
Is it possible to increase the program memory space?
I have installed alot of software on my mini-SD card but there is still only minimal space for the program memory?
Cheers
Click to expand...
Click to collapse
If your looking for Program Storage, then a bigStorage Rom is what you need.
If it's more Ram for program usage, then look for a "lite" Rom and search for program to change Pagepool to 4mb. You could try 2mb, but I would recommend at least 4mb with a lite rom. This should give you about 30mb before you start installing stuff. Then use Schaps Advanced config 2 and change the file cache to "Auto". Good luck
Chris
check this thread to get bigstorage: http://forum.xda-developers.com/showthread.php?t=360461
or http://forum.xda-developers.com/showthread.php?t=298327
Cheers Fellas!
Will take a look and see what happens!

Poor program memory using BEPE's ROM version 0.97 Premium GER

before i begin, i would like to know from us, how many program memory's left in our devices?
I have the last Bepe's ROM (0.97 Premium) installed, and some small programs on the intern main memory, they don't really use so much space and i don't think they are the reason of my memory lack, my program memory shows only 22,1 MB memory free, what about your own values...?
What can be the reason for having so a memory problem
I have noticed that most of the ROM developers don't include detailed information about the memory use of their ROMs.
usual values:
after a restart: 37 MB
by using TF3D: 28,86 MB
by using TF3D and some programs: 22 MB
Since you have the Diamond with 4Gb of Internal Memory, why not use it to install the programs?
The speed difference is barely noticiable and you will get more out of the machine memory.
Nevertheless make sure that you are not running some programs in the background. Try to make a soft reset and check how much memory you have immediately after the restart of the mobile. This is the maximum memory you will have.
lmbranco said:
Since you have the Diamond with 4Gb of Internal Memory, why not use it to install the programs?
The speed difference is barely noticiable and you will get more out of the machine memory.
Nevertheless make sure that you are not running some programs in the background. Try to make a soft reset and check how much memory you have immediately after the restart of the mobile. This is the maximum memory you will have.
Click to expand...
Click to collapse
the 2 Programs installed on the main memory are not bigger that 900 Kb, it could not be that problem how i've said it before. After 2 restarts i obtained 37 MB, but i mean is still to slow....!!!!
Any ideas, about what can i do without to reflash again my device..??
THX
Are you running TouchFlo3D?
This is what is in Bepe's description of his Rom. As you can see without TouchFlo3D you have "only" 64Mb, since TouchFlo3D takes around 25Mb, this goes to the 37Mb you have.
Code:
# Premium Edition boot up memory
* RAM: 64.28 MB
* Storage: 115.92 MB
That is without activating TouchFLO 3D
My suggestion, try another Rom, Dutty's V1.5 is great, or check if Bepe has a more recent one.
lmbranco said:
Are you running TouchFlo3D?
This is what is in Bepe's description of his Rom. As you can see without TouchFlo3D you have "only" 64Mb, since TouchFlo3D takes around 25Mb, this goes to the 37Mb you have.
Code:
# Premium Edition boot up memory
* RAM: 64.28 MB
* Storage: 115.92 MB
That is without activating TouchFLO 3D
My suggestion, try another Rom, Dutty's V1.5 is great, or check if Bepe has a more recent one.
Click to expand...
Click to collapse
I'm running TF3D but the memory values never arrive the 40 MB, just 37 MB by the restart, but it drops immediately to 26 MB when i scroll around the TF3D surface.
Actually I'm using BEPE's ROM because he released a GER version of the ROM, i was thinking to try with an original HTC ROM, but I'm not sure if i do it by now (reason time)
he say that , if you want to free some memory, you need to DESACTIVATE COMPLETELY TouchFlo3D ... without that, you can't have more free memory available.
hey guys...
I use BEPE's ROM version 0.97 Premium GER, too.
I've got no Problems with memory since flashing...
My Diamond runs now for a few hours, TF3D, ActiveSync and little tools are running and i received some mails and worked with it.
I've got TT7 and some little tools on "my device" installed.
After scrolling trought all Tabs of TF3D I already have...
78mb free file storage (Datenspeicher) of 122,91mb
41,84mb free ram (Programmspeicher) of 111,36mb
Everything runs fine and much better than the original old O² ROM
Jason
on swiftbl 5.0 rom I have 57meg free, ver nice,fast rom
if u have also tweaked your device that will also cost you memory data. If u tweaked the file cache and also other tweaks that are above 2 MB you have to add them also with the totaal used memory because the tweak uses the program memory so therfore always concider that in mind and also any tweak with cahe files !!

[KITCHEN][WWE][05.08.2009][M2D] WM6.1.21042 - Mega/Jade port v1.2

Hi all,
I want to share my kitchen. Feel free to modify it.
Thanks to chanvi93 and xdmcdmc for their awesome work, and Da_G, whitealien and JoOoSs for Mega packages and cabs
New version 1.2
This is a hybrid Mega/Jade port. Known issues:
- "All settings" left soft key in M2D settings tab does not work
- Manually copy Recorder.lnk from Windows folder to Start Menu folder
- I used my HTCMenuLoader-BootLauncher, but I still have an issue: at first boot htc menus do not work. Workaround: start another program (also Start->Programs should be enough) then menu should start working.
- Do not start fingermenu and htc menus (with my loader) at the same time (fingermsgbox should work instead)
Download here v1.2
http://www.mediafire.com/?cymogzhamyo
Download here v1.1.
http://www.mediafire.com/?jmlzgmmzdon
ChangeLog
v1.1)
- EXT: Removed SMS.Scrollbar.Tweak (it does not work!)
- OEM: Added nueMassStorage (cpl modified by me) finally working on trinity.
v1.2)
- New packages from Mega
Remember to donate (link in my signature) if you like my work. Thank you for supporting me.
Hi
good job man .
,-)
Hi! Please put some photo with your work and tell us about the memory ram free.thank you.
Hi Francarl.
First of all, many thanks for sharing your work with us.
I am very excited at testing it, so when you have time, could you possibly upload a demo ROM that we can flash? Maybe a "Manila Version", and a "Non Manila Version"?
At some point I will try to create my own using your Kitchen but in the meantime I would be very grateful to test a ROM created by you.
Thanks again,
Mattster.
p.s. Is the ROM creation method that Chanvi & Oggi provided us (as demonstrated by Supersport in his video tutorial) available for this kitchen, i.e drop down menu, select ROM version, deselect unwanted components?
Hi
@goalex your question it ' not valabe.
size of ram for a rom
this is a kitchen memory.... is based on cooking
.
1 the size of the page pool ( example 2 or 3 or 4 or 6 for trinity )
2 of the different cache sizes. (example 4096 )
3 of the application that starts the launch of the bone ( example startups , services, size picture , exe , Dll ) if possible compress exe and Dll with upx.
4 Kitchen compressed yes or no ( lzx or xpr )
5 Big storage or remove uldr or both or not whether or not launch other services.
For the 21042 (xip and sys ) in generality it goes from 20 to 31 on the first start after that it all depends how the kitchen and cooking.
Example very light ( 27 - 31 mo )
Example full with manilla ( 20 -25 mo )....
Regard Oggi
Mattster_spv said:
Hi Francarl.
First of all, many thanks for sharing your work with us.
I am very excited at testing it, so when you have time, could you possibly upload a demo ROM that we can flash? Maybe a "Manila Version", and a "Non Manila Version"?
At some point I will try to create my own using your Kitchen but in the meantime I would be very grateful to test a ROM created by you.
Thanks again,
Mattster.
p.s. Is the ROM creation method that Chanvi & Oggi provided us (as demonstrated by Supersport in his video tutorial) available for this kitchen, i.e drop down menu, select ROM version, deselect unwanted components?
Click to expand...
Click to collapse
To generated standard rom, start ervius kitchen, then select TRINITY, then "create rom". That's all!
I strongly suggest to hard reset after flashing!
regards
oggi1969 said:
Hi
@goalex your question it ' not valabe.
size of ram for a rom
this is a kitchen memory.... is based on cooking
.
1 the size of the page pool ( example 2 or 3 or 4 or 6 for trinity )
2 of the different cache sizes. (example 4096 )
3 of the application that starts the launch of the bone ( example startups , services, size picture , exe , Dll ) if possible compress exe and Dll with upx.
4 Kitchen compressed yes or no ( lzx or xpr )
5 Big storage or remove uldr or both or not whether or not launch other services.
For the 21042 (xip and sys ) in generality it goes from 20 to 31 on the first start after that it all depends how the kitchen and cooking.
Example very light ( 27 - 31 mo )
Example full with manilla ( 20 -25 mo )....
Regard Oggi
Click to expand...
Click to collapse
thank you for your quick response and explanations. Now i understand how is going on.
francarl said:
To generated standard rom, start ervius kitchen, then select TRINITY, then "create rom". That's all!
I strongly suggest to hard reset after flashing!
regards
Click to expand...
Click to collapse
Thanks.
Just flashed it & did Hard reset as suggested.
Without installing anything else, the memory is at 77%?
Program: Total 49.10MB, In Use 37.97MB, Free 11.13MB
Storage: Total 48.22MB, In Use 8.71MB, Free 39.51MB
Current Free memory 9.528MB
Clean RAM tool: 8MB Saved! New Free Memory 18MB.
Played round with it a bit, suddenly memory was back up to 76%!
Clean RAM tool again: 8MB Saved again... New Free Memory 18MB.
Clean RAM Level 3: New Free Memory 21MB.
Where is the 8MB RAM getting lost to? Possible memory leak?
Mattster
Cannot send SMS message
Tryed the ROM one bug found!
Cannot send SMS message... Anyone with the same issue??
:: edit ::
Solved!!!
Create ROM without SMS.ScrollBar.Tweak ( COMMON: Trinity_External_Packages)
xdapocket said:
Tryed the ROM one bug found!
Cannot send SMS message... Anyone with the same issue??
:: edit ::
Solved!!!
Create ROM without SMS.ScrollBar.Tweak ( COMMON: Trinity_External_Packages)
Click to expand...
Click to collapse
thank you for bug reporting.
First post updated with new version 1.1
Hi Oggi! I can see that you are very good in cooking and i have one more question. Can you or is possible to increase memory program? Now i have 12MB after reset in memory program and 40 mb in storage.I don't need 40 mb in storage and i can quit for 15 mb from storage and put in program memory.
Thank you in advance!
Hi
Goalex
If not possible ... Because....
No this is not possible kitchen francarl is very good but it is not optimized for a maximum of memory.
So to have more memory with the kitchen francarl I advise you to change it.
1 delete packtages you do not.
2 download upx compress exe that starts in memory.
3 optimize all the bmp and png picture
4 to cooking with the tools ervius check compression lzx
This should save you almost 10 MB of memory.
Or try cooking 21042 that I did with Chanvi.
Or Mix kitchen Francarl and Kitchen Chanvi+oggi
Chanvi and me optimize Kitchen 21042 for max memory
http://www.mediafire.com/?sharekey=5330c72c2c98e20d7069484bded33bcd48c3279b870421d7
oggi1969 said:
Hi
Goalex
If not possible ... Because....
No this is not possible kitchen francarl is very good but it is not optimized for a maximum of memory.
So to have more memory with the kitchen francarl I advise you to change it.
1 delete packtages you do not.
2 download upx compress exe that starts in memory.
3 optimize all the bmp and png picture
4 to cooking with the tools ervius check compression lzx
This should save you almost 10 MB of memory.
Or try cooking 21042 that I did with Chanvi.
Or Mix kitchen Francarl and Kitchen Chanvi+oggi
Chanvi and me optimize Kitchen 21042 for max memory
First I want to say that my question is based on Windows Mobile 2003, where memory can be adjusted. Secondly, I wanna learn to make my self a rom and install programs that I interested.
Now I don't now how is working to
(1)delete packtages,
(2)download upx compress exe that starts in memory,
(3) optimize all the bmp and png picture,
(4)to cooking with the tools ervius check compression lzx
Big thanks for your quick response.When I manage to cook my own a rom, I will provide all, but this will take a while, I don't have very much time free.
Click to expand...
Click to collapse
Your welcome Francarl we should indeed provide some contribution...
How about the possible "memory leak"?
ROM seems to work well (beside of closing the M2D after some memory comsuption), very fast and nice.
Have tested most of the functions: Wifi, Internet, Gprs, 3G, Video Call, etc. and it worked. Maybe this is the best or at least one of the best WM 6.1 ROM for Trinity!
With more RAM definitely the nr.1!
But, it would be nice if some more RAM is available for programs...
Have seen that PagePool is 6MB which is nice and should not cause this.
Any ideas?
hi
for trinity 4 mo PP ... top pool
may have if possible 3 mo pp when it is optimized.
oggi1969 said:
hi
for trinity 4 mo PP ... top pool
may have if possible 3 mo pp when it is optimized.
Click to expand...
Click to collapse
So do you mean that we should change de PP to 4 MB?
Have seen/used/tested other ROM's with 6MB PP with more free RAM than this one.
But at least, with this ROM all things (wifi, active sync, bluetooth, and so on) do really function ok!
Hi
every body
Test this rom with 4 PP change with papepool changer and re-flash.
Velocity similary . and 2 mo memory for app exemple GPS.
Regard
Oggi
Use this ROM with 4MB PagePool
Yes! That should be the way...
Else, you can use M2D Config tool to free some memory, removing unneeded tabs from it
GPRS Icon Fix!
If you install Advanced Configuration Tool so that you can disable 3G, you must install this FIX for the GPRS Icon on top bar:
http://forum.xda-developers.com/showpost.php?p=2513718&postcount=172
Enjoy!
new version 1.2 added. This is a Jade/Mega port!

[ROM][WM6.5] built 23409 light by thormdac [WWE][11-09-09]

@all,
on my hunt for an ultralight wm6.5 just for my needs, namely speedy gps ttn7 navigation in combination with sms and phoning inbetween, i have made use of all of "iggord`s" (and all others that send my links etc.) help and cooked the following lean roms:
most credits hereby go to iggord, i just ported, deleted and recooked the stuff
- wm6.5 built 23047.5.3.0
memory: 47.93MB
after first boot:
storage free: 45.58MB
program free: 16.98MB
and
-wm6.5 built 23409
both have gotten rid of things like:
- adobe flash
- CHome and WMweather app !!!
- office
- live search
- other crap
and various other things
built 23047 here:
(packed *.nbh for sd-card-flashing, alternatively use flasher provided in in various wm6.5 packs such as shady313 and exchange*.nbh)
http://www.megaupload.com/?d=4L7MD5JE
built 23409 is now available here:
http://www.megaupload.com/?d=X2SBV3LO
Storage free : 48.85MB
Program free : 18.52
reserved
link is up and running
Sounds good mate, will give it a go as soon as I get my phone back. That might be tomorrow! Two motherboards in two weeks, must be a new record!
need is a funny thing...makes people do stuff....congrats thorm...now try playing with registry,kernel and mapping memory to get more program memory....because 16 mb is not enough imo
HI thorndac many thanks for make a light WM6.S rom.
Maybe you can make one with more program free memory, because in my opinion 17 is not enough for a light rom.
Thanks bro
Thanks, please keep up the good work
Cool !
Many Thanks for your effort and time.
Hi Thormdac. The rom is good but some problems are there with me. The program memory is too much less, the download link is blocked here in Saudi Arabia, (MEGAUPLOAD). So what to do, a rapidshare download link please.
Thanks
Lite??? with only 16 MB free RAM?
i wouldn't call that lite anyway.
Shady's free Ram is higher than that...
but keep on going would be a great ROM if the RAM consumption can be improved
PagePool Changer - 8 Mb => 6 Mb => 4 Mb - max free RAM
after pagepool to 4mb we are at:
storage free: 45,47
program free: 19,34
plus i have some time right now, so give me a minute and i will see what my noob-cooking comes up with
greetz
built 23409
@all,
here is version built 23409, resulting from my noob-cooking -
Storage free : 48.85MB
Program free : 18.52
i will add link once fully uploaded to first page by about 21:15 cet
greetz
http://www.megaupload.com/?d=X2SBV3LO
thormdac said:
@all,
here is version built 23409, resulting from my noob-cooking -
Storage free : 48.85MB
Program free : 18.52
i will add link once fully uploaded to first page by about 21:15 cet
greetz
http://www.megaupload.com/?d=X2SBV3LO
Click to expand...
Click to collapse
hey i just think the amount of RAM is decreasing because the recent OS updates are highly dependent on different png images
all these images are loaded in RAM and use up space in RAM
so what we can do is reduce the QUALITY (not to compress the images) of these images and make them smaller so we get more free RAM and snappier device
anybody good at image editing????????
EDIT: and you are doing awesome job SIR ( )
wow wow.. a million thanks to thormdac...
Can you also add an "very extra lite version" of your ROM. I mean i only use phone, messaging some music and videos ..Can you even please remove gps...it if is possible . Hope I am not asking too much ... I apreciate and once again thanks a ton.
/thanks&regards
/ew
oops sorry, gps is a software that we install... So i guess its up to me whether to install or not to make it ultra lite.. Never mind my posting.... Just waiting for the lightest version
thanx for all your support!
having cooked and recooked numerous versions by now, i have to say i am sticking with iggords light russian version here:
http://www.megaupload.com/?d=H8OZONJ0
http://4pda.ru/forum/index.php?showt...post&p=2734290
this for sure is my absolute favorite!
i would pay for it if someone could get us this one in wwe - english
greetz
sheennick123456 said:
hey i just think the amount of RAM is decreasing because the recent OS updates are highly dependent on different png images
all these images are loaded in RAM and use up space in RAM
so what we can do is reduce the QUALITY (not to compress the images) of these images and make them smaller so we get more free RAM and snappier device
anybody good at image editing????????
EDIT: and you are doing awesome job SIR ( )
Click to expand...
Click to collapse
no problem...i just need to figure out how to uncompress dll files...someone mentioned upx to uncompress them
@all,
i have dug out another wm6.5 lite version right here:
http://multi-up.com/79213
will post details asap
russian, again
http://s41.radikal.ru/i094/0904/bf/0c045159327b.jpg
greetz

Categories

Resources