Link to home
Start Free TrialLog in
Avatar of xutao
xutao

asked on

Filemapping size limit under Win98

I created a filemapping object using system paging file. Everything is ok under Window 2000, but when the same code is running under Win98 problem occurs. After using CreateFilaMapping, the first MapViewOfFile always failed, and GetLastError returns 8 (Not enough storage is available to process this command). At last I found that this has something to do with the size of the filemapping object which I've created. That's why I want know the limit.
Thanks.
Avatar of peterchen092700
peterchen092700

If you create a disk-file based mapping (on a drive with enough space), does it work then?
Avatar of xutao

ASKER

But to create filemapping object based on disk file is not what I want.
ASKER CERTIFIED SOLUTION
Avatar of peterchen092700
peterchen092700

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
xutao:

You have asked 21 questions here at EE, and you have only resolved 3 of them. Here is a list of your open questions. I will be posting this comment in all of them.

https://www.experts-exchange.com/jsp/qShow.jsp?ta=winntnet&qid=20154615
https://www.experts-exchange.com/jsp/qShow.jsp?ta=networkgen&qid=20154616
https://www.experts-exchange.com/jsp/qShow.jsp?ta=networkgen&qid=20160832
https://www.experts-exchange.com/jsp/qShow.jsp?ta=networkgen&qid=20168293
https://www.experts-exchange.com/jsp/qShow.jsp?ta=networkgen&qid=20171676
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=11217097
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=11872498
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20133253
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20133912
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20171681
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20171684
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20248551
https://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20248764
https://www.experts-exchange.com/jsp/qShow.jsp?ta=winprog&qid=20252102
https://www.experts-exchange.com/jsp/qShow.jsp?ta=winprog&qid=20254933
https://www.experts-exchange.com/jsp/qShow.jsp?ta=winprog&qid=20255719
https://www.experts-exchange.com/jsp/qShow.jsp?ta=winprog&qid=20258375

To assist you in your cleanup, I'm providing the following guidelines:

1.  Stay active in your questions and provide feedback whenever possible. Likewise, when feedback has not been provided by the experts, commenting again makes them receive an email notification, and they may provide you with further information. Experts have no other method of searching for questions in which they have commented, except manually.

2.  Award points by hitting the Accept Comment As Answer button located above and to the left of that expert's comment.

3.  When grading, be sure to read:
https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp#3
to ensure that you understand the grading system here at EE. If you grade less than an A, you must explain why.

4.  Questions that were not helpful to you should be PAQ'd (stored in the database for their valuable content?even if not valuable to you) or deleted. To PAQ or delete a question, you must first post your intent in that question to make the experts aware. Then, if no experts object after three full days, you can post a zero-point question at community support to request deletion or PAQ. Please include the link(s) to the question(s).
CS:  https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
At that point, a moderator can refund your points and PAQ or delete the question for you. The delete button does not work.

5.  If you fail to respond to this cleanup request, I must report you to the Community Support Administrator for further action.

Our intent is to get the questions cleaned up, and not to embarrass or shame anyone. If you have any questions or need further assistance at all, feel free to ask me in this question or post a zero-point question at CS. We are very happy to help you in this task!


thanks!
amp
community support moderator

Avatar of xutao

ASKER

Any further suggestions? Or I will delete this question.
again - make sure your swap file has enough room for the mapping.

The next limitation would be address space. If there's not enough contiguous address space, the mapping will fail.

(Address space has nothing todo with available physical memory - it's just that: the number used as address. While the 4G seem more than you ever need, it quickly scales down: 2G reserved for OS, and in the remaining must fil all allocations, all file mappings and all EXE's and DLL's (and the memory footprint of binaries is usually much larger than the file size)

Having said that, some 100..200MB should usually be available.

Note sent today to Admin re: remaining open questions.

Netminder
Community Support Moderator
Experts Exchange
Admin notified of user neglect. Force/accepted by

Netminder
Community Support Moderator
Experts Exchange