Help!!!!Who know about the memory limit problem On Windows Mobile 5.0

We developed a application on windows mobile 5.0.One of it's features is to play audio files.
We did it by hosting Window Media Player Control in our project.By default, WMP control only suppurt wma and mp3 audio formats on WM5.0.When playing other formats (like aac,3gp,mp4,amr,midi and so on),the WMP control will load neccessary dll which provided by Hardware Vender .
The problem is that,after building,the size of exe file is about 6M,and in the application,we will allocate a 5M big heap for application using.When playing the audio files such as aac,amr,It seems that load dlls will not succeed.I try to load libraries by LoadLibrary(...) before playing audio files.It failed.Get the errno by GetLastError(...),ERROR_OUTOFMEMORY returned.
It seems that when playing audio files which need the libraries provided by handset vender,more memory is need,and in our application,the memory is not enough for loading library or playing audio.
I have heard that one proccess memory size limit on WinCE 5.0 is 32M,I think it's the same situation on WM5.0.I don't know whether our application has exceed the limit or not when playing the audio files.
Is there anyone can help me
Thanks.




Answer this question

Help!!!!Who know about the memory limit problem On Windows Mobile 5.0

  • Nihal Chand

    We experience the exact same problem when playing wav files in our application. Did you find any good way to solve your problems

  • cwmoor

    Your absolutely right: On Windows Mobile 5.0, a single process has a virtual address space of 32MB p (plus an other 32MB) for DLLs located in ROM).

    The article Windows CE .NET Advanced Memory Management explains this in full details. The MEDC 2006 had a session with a similar name (can't remeber the exact name) daling with this. The MEDC conference contents is available for download on the Microsoft Download Center (Search for MEDC).

    Michael



  • MicahN

    Thanks a lot.

    I will search for it.



  • Tintivilo

    I have not yet got the way.

    We thought about we could discuss about this problem with handset vender at first,so I stopped my

    investigation about this.But now,the problem reopenned,and we have to investigate it again.I haven't

    find the resources about it so far.



  • cesarin

    I ordered and received the MEDC2006 DVD but after a quick look I could not find anything discussing this explicit issue.

    However after reading the article mentioned above I will try to put my windows media interface and some other stuff in a separate process. That would in my theory give me 32mb + 32mb memory available. Or what do you think

  • BuddyBoy2006

    I have considered about it.

    However,it seems that if you want to put wmp interface in a seperated process.you would have to make a seperate exe file for it.

    and use some mechnism to communicate between these two process and transport data.

    I'm not very satisfy with this way.



  • Help!!!!Who know about the memory limit problem On Windows Mobile 5.0