Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to access environment variables? Pin
Graham Bradshaw20-Sep-05 12:22
Graham Bradshaw20-Sep-05 12:22 
Questionclosing main window, close IE window problem Pin
babyspidy20-Sep-05 9:59
babyspidy20-Sep-05 9:59 
AnswerRe: closing main window, close IE window problem Pin
Achim Klein20-Sep-05 21:17
Achim Klein20-Sep-05 21:17 
GeneralRe: closing main window, close IE window problem Pin
babyspidy20-Sep-05 21:31
babyspidy20-Sep-05 21:31 
Questioncrashes on close() Pin
bonosa20-Sep-05 9:57
bonosa20-Sep-05 9:57 
AnswerRe: crashes on close() Pin
David Crow20-Sep-05 10:32
David Crow20-Sep-05 10:32 
GeneralRe: crashes on close() Pin
bonosa20-Sep-05 10:45
bonosa20-Sep-05 10:45 
GeneralRe: crashes on close() Pin
bonosa20-Sep-05 11:03
bonosa20-Sep-05 11:03 
I just stumbled on to this:

http://www.awprofessional.com/articles/article.asp?p=99706&seqNum=5&rl=1[^]

says:

When a process terminates, all open files are automatically closed by the kernel. Many programs take advantage of this fact and don't explicitly close open files

This would explain why I get the invalid pointer crash on linux.

However, if I open too many files in my loop it chokes. Interestingly on windows strerror(errno) is 24(too many open) but on linux its 0 --- Success.
So looks like its not getting set.

Most puzzling.
Thanks for helping,
sb

How
GeneralRe: crashes on close() Pin
David Crow21-Sep-05 3:25
David Crow21-Sep-05 3:25 
QuestionChanging the BG color of a multiline edit box Pin
Mohammad A Gdeisat20-Sep-05 9:44
Mohammad A Gdeisat20-Sep-05 9:44 
AnswerRe: Changing the BG color of a multiline edit box Pin
Christopher Lloyd20-Sep-05 12:44
Christopher Lloyd20-Sep-05 12:44 
QuestionTMS InnerView 2.1 Pin
davemassey20-Sep-05 8:33
davemassey20-Sep-05 8:33 
AnswerRe: TMS InnerView 2.1 Pin
Alexander M.,20-Sep-05 8:35
Alexander M.,20-Sep-05 8:35 
QuestionRetrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Liu Shuai20-Sep-05 7:34
Liu Shuai20-Sep-05 7:34 
AnswerRe: Retrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Alexander M.,20-Sep-05 8:38
Alexander M.,20-Sep-05 8:38 
GeneralRe: Retrive previously selected index in a CListbox control when ON_LBN_SELCHANGE is fired Pin
Liu Shuai20-Sep-05 9:21
Liu Shuai20-Sep-05 9:21 
QuestionSlidder Display Pin
P.Sunitha Kiranmaye20-Sep-05 6:20
P.Sunitha Kiranmaye20-Sep-05 6:20 
AnswerRe: Slidder Display Pin
David Crow20-Sep-05 7:03
David Crow20-Sep-05 7:03 
AnswerRe: Slidder Display Pin
PJ Arends20-Sep-05 7:50
professionalPJ Arends20-Sep-05 7:50 
QuestionRunning a batch file Pin
Camron20-Sep-05 5:26
Camron20-Sep-05 5:26 
AnswerRe: Running a batch file Pin
David Crow20-Sep-05 5:37
David Crow20-Sep-05 5:37 
GeneralRe: Running a batch file Pin
Camron20-Sep-05 5:49
Camron20-Sep-05 5:49 
GeneralRe: Running a batch file Pin
David Crow20-Sep-05 6:04
David Crow20-Sep-05 6:04 
AnswerRe: Running a batch file Pin
bugDanny20-Sep-05 7:16
bugDanny20-Sep-05 7:16 
AnswerRe: Running a batch file Pin
Christopher Lloyd20-Sep-05 12:47
Christopher Lloyd20-Sep-05 12:47 

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.