Sign in to follow this  
mmcginity

ReadFileEx "Insufficient system resources..."

Recommended Posts

mmcginity    122
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
MaulingMonkey    1730
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
mmcginity    122
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this