Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows Mobile 6.1 and File Mapping

Posted on 2009-05-06
1
Medium Priority
?
830 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

609 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