Solved

Windows Mobile 6.1 and File Mapping

Posted on 2009-05-06
1
809 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

822 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