Solved

Windows Mobile 6.1 and File Mapping

Posted on 2009-05-06
1
806 Views
Last Modified: 2013-12-27
Old source code (in the code section below) that still working fine on Windows CE 5 fails on Windows Mobile 6.1. It is just the standard file mapping but for "huge" data files: 2 files with ~90MB each. The device has 256MB. MS improved DLL loading in 6.1 but they say that they use the memory management from the CE 5.0.
What is the problem with this code? How the problem can be solved (does not matter in the application or on the OS level)?


HANDLE hFile = ::CreateFileForMapping(szFile,GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);

HANDLE hMap = ::CreateFileMapping(hFile, NULL, PAGE_READONLY, 0, 0, NULL);

LPVOID pMap = ::MapViewOfFile(hMap, FILE_MAP_READ, 0, 0, 0);

Open in new window

0
Comment
Question by:pgnatyuk
1 Comment
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 0 total points
ID: 24347150
I don't see any comment for this question.
Probably not a lot of people work with huge mapped files on Windows Mobile.
The whole memory management subject is dificult.
Do we have someone expirienced with the Platform Builder? With paging pool? LMA?
Thanks.
0

Featured Post

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now