Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionopen(char*,...) fails with "Too many open files" ..help me pls Pin
dharani6-Mar-07 1:32
dharani6-Mar-07 1:32 
AnswerRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
David Crow6-Mar-07 2:49
David Crow6-Mar-07 2:49 
AnswerRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
Nemanja Trifunovic6-Mar-07 3:15
Nemanja Trifunovic6-Mar-07 3:15 
AnswerRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
Blake Miller6-Mar-07 6:50
Blake Miller6-Mar-07 6:50 
GeneralRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
dharani6-Mar-07 17:23
dharani6-Mar-07 17:23 
GeneralRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
kakan6-Mar-07 19:14
professionalkakan6-Mar-07 19:14 
GeneralRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
Blake Miller7-Mar-07 10:14
Blake Miller7-Mar-07 10:14 
QuestionRe: open(char*,...) fails with "Too many open files" ..help me pls Pin
David Crow7-Mar-07 2:54
David Crow7-Mar-07 2:54 
Have you tried scaling this down to a more manageable problem? Something like:

char szFile[256];
for (int x = 0; x < 100; x++)
{
    sprintf(szFile, "Test%03d", x);
    if (open(szFile, ...) == -1)
    {
        printf("Failed after opening %d files\n", x);
        break;
    }
}
Now when open() fails, note the value of x.


"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

"Judge not by the eye but by the heart." - Native American Proverb


QuestionHow to disable CD drive Pin
VC_RYK6-Mar-07 1:23
VC_RYK6-Mar-07 1:23 
AnswerRe: How to disable CD drive Pin
Newbie006-Mar-07 2:16
Newbie006-Mar-07 2:16 
AnswerRe: How to disable CD drive Pin
Super Hornet6-Mar-07 6:37
Super Hornet6-Mar-07 6:37 
GeneralRe: How to disable CD drive Pin
VC_RYK6-Mar-07 20:22
VC_RYK6-Mar-07 20:22 
QuestionIPadderss details mfc Pin
deeps_cute6-Mar-07 1:20
deeps_cute6-Mar-07 1:20 
AnswerRe: IPadderss details mfc Pin
James R. Twine6-Mar-07 1:25
James R. Twine6-Mar-07 1:25 
GeneralRe: IPadderss details mfc --please help me i need it Pin
deeps_cute6-Mar-07 1:32
deeps_cute6-Mar-07 1:32 
GeneralRe: IPadderss details mfc --please help me i need it Pin
David Crow6-Mar-07 2:53
David Crow6-Mar-07 2:53 
AnswerRe: IPadderss details mfc Pin
David Crow6-Mar-07 2:50
David Crow6-Mar-07 2:50 
GeneralRe: IPadderss details mfc Pin
deeps_cute6-Mar-07 3:27
deeps_cute6-Mar-07 3:27 
QuestionRe: IPadderss details mfc Pin
David Crow6-Mar-07 3:47
David Crow6-Mar-07 3:47 
AnswerRe: IPadderss details mfc Pin
deeps_cute6-Mar-07 3:50
deeps_cute6-Mar-07 3:50 
GeneralRe: IPadderss details mfc Pin
David Crow6-Mar-07 5:14
David Crow6-Mar-07 5:14 
QuestionSimple Tab Control without using frames and child dialogs Pin
Tushar Arora6-Mar-07 0:53
Tushar Arora6-Mar-07 0:53 
AnswerRe: Simple Tab Control without using frames and child dialogs Pin
Y_R6-Mar-07 3:45
Y_R6-Mar-07 3:45 
GeneralRe: Simple Tab Control without using frames and child dialogs Pin
Tushar Arora6-Mar-07 18:43
Tushar Arora6-Mar-07 18:43 
AnswerRe: Simple Tab Control without using frames and child dialogs Pin
Y_R8-Mar-07 8:59
Y_R8-Mar-07 8:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.