?
Solved

Windows Mobile 6.1 and File Mapping

Posted on 2009-05-06
1
Medium Priority
?
823 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

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

Determining the an SCCM package name from the Package ID
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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). …
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

770 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