Jump to content
  • Advertisement
Sign in to follow this  
mmcginity

ReadFileEx "Insufficient system resources..."

This topic is 4975 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm getting this windows error whenever I use ReadFileEx with a request of 64 MB or more... "Insufficient system resources exist to complete the requested service." Anyone know where this is coming from? Regards, Matt

Share this post


Link to post
Share on other sites
Advertisement
Using the small (default) memory model IIRC (assuming you arn't literally running out of virtual memory).

For Visual C++, the flags are:

/AT - tiny model
/AS - small model (default)
/AC - compact model
/AM - medium model
/AL - large model
/AH - huge model

Try going up a size and see if that fixes your problem.

Share this post


Link to post
Share on other sites
not obvious to me.

The memory is allocated fine well before i make the call to ReadFileEx. its the ReadFileEx that has a problem. and its always consistently 64 MB, which indicates to me its not a dynamic resource issue, but a setting or compile flag somewhere.
I've found no mention of any limits of ReadFileEx - its probably something more general... heap block data fo example.

I'm using Visual Studio 6.0 on WinXP Sp2.

and for the memory model suggestion... i thought that all went out a long time ago. my compiler doesnt recognise those flags in any case.

matt

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!