Click here to Skip to main content
15,867,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Prining letters made of letters Pin
Nelek9-Dec-07 20:55
protectorNelek9-Dec-07 20:55 
GeneralStack overflow Pin
RomTibi9-Dec-07 4:34
RomTibi9-Dec-07 4:34 
GeneralRe: Stack overflow Pin
Cedric Moonen9-Dec-07 4:41
Cedric Moonen9-Dec-07 4:41 
GeneralRe: Stack overflow Pin
RomTibi9-Dec-07 6:17
RomTibi9-Dec-07 6:17 
GeneralRe: Stack overflow Pin
Cyrilix9-Dec-07 22:30
Cyrilix9-Dec-07 22:30 
GeneralRe: Stack overflow Pin
Mark Salsbery9-Dec-07 7:20
Mark Salsbery9-Dec-07 7:20 
GeneralRe: Stack overflow Pin
RomTibi9-Dec-07 7:29
RomTibi9-Dec-07 7:29 
GeneralRe: Stack overflow Pin
Mark Salsbery9-Dec-07 7:45
Mark Salsbery9-Dec-07 7:45 
RomTibi wrote:
I modified from the previous stable version some tables, making them permanentlly, instead of initialising locally with new or malloc()


Putting them on the stack didn't make them any more permanent than using dynamic
allocation.

In general, it may be better to use dynamic allocation (the new operator)
for large objects instead of using the stack. That way you don't have
to micro-manage your stack size. You want your stack to have some
breathing room. Use the heap - that's what it's for.

What's considered a "large" object? Opinions vary Smile | :)


Mark


Mark Salsbery
Microsoft MVP - Visual C++


Java | [Coffee]

GeneralRe: Stack overflow Pin
RomTibi9-Dec-07 20:56
RomTibi9-Dec-07 20:56 
GeneralRe: Stack overflow Pin
Mark Salsbery10-Dec-07 7:20
Mark Salsbery10-Dec-07 7:20 
GeneralRe: Stack overflow Pin
RomTibi10-Dec-07 8:38
RomTibi10-Dec-07 8:38 
QuestionHow to Find out what was selected in Combo Box Pin
Larry Mills Sr9-Dec-07 4:28
Larry Mills Sr9-Dec-07 4:28 
AnswerRe: How to Find out what was selected in Combo Box Pin
Hamid_RT9-Dec-07 6:25
Hamid_RT9-Dec-07 6:25 
AnswerRe: How to Find out what was selected in Combo Box Pin
Mark Salsbery9-Dec-07 7:09
Mark Salsbery9-Dec-07 7:09 
AnswerRe: How to Find out what was selected in Combo Box Pin
ddspliting10-Dec-07 6:53
ddspliting10-Dec-07 6:53 
GeneralFrom Mpeg-2 to Vob Pin
mjmim9-Dec-07 3:59
mjmim9-Dec-07 3:59 
Answerabout const member function Pin
clj198705039-Dec-07 1:07
clj198705039-Dec-07 1:07 
GeneralRe: about const member function Pin
super_ttd9-Dec-07 2:51
super_ttd9-Dec-07 2:51 
GeneralRe: about const member function Pin
Steen Krogsgaard9-Dec-07 22:29
Steen Krogsgaard9-Dec-07 22:29 
Questionproblem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
ashjas8-Dec-07 23:27
ashjas8-Dec-07 23:27 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
ashjas8-Dec-07 23:33
ashjas8-Dec-07 23:33 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
normanS9-Dec-07 0:53
normanS9-Dec-07 0:53 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
markkuk9-Dec-07 2:18
markkuk9-Dec-07 2:18 
GeneralRe: problem in code running on msvs2008 c++ while same logic runs fine on turbo c++ 3.0 Pin
ashjas9-Dec-07 4:15
ashjas9-Dec-07 4:15 
Questionfind error Pin
keyto8-Dec-07 20:08
keyto8-Dec-07 20:08 

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.