Click here to Skip to main content
15,563,352 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stack overflow Pin
CPallini5-Apr-10 22:27
mveCPallini5-Apr-10 22:27 
GeneralRe: Stack overflow Pin
Tim Craig6-Apr-10 9:31
Tim Craig6-Apr-10 9:31 
GeneralRe: Stack overflow Pin
CPallini6-Apr-10 10:23
mveCPallini6-Apr-10 10:23 
AnswerRe: Stack overflow Pin
Adam Roderick J5-Apr-10 20:02
Adam Roderick J5-Apr-10 20:02 
QuestionRe: Stack overflow Pin
browneyes867-Apr-10 5:27
browneyes867-Apr-10 5:27 
AnswerRe: Stack overflow Pin
jagadish bharath7-Apr-10 6:42
jagadish bharath7-Apr-10 6:42 
QuestionRe: Stack overflow Pin
browneyes867-Apr-10 6:55
browneyes867-Apr-10 6:55 
AnswerRe: Stack overflow Pin
jagadish bharath7-Apr-10 8:18
jagadish bharath7-Apr-10 8:18 
you are trying to create a multidimenional array on stack. normally stack has a limitation of 2MB but heap can go upto around 100 MB.
create all the variables in heap and importantly delete it after using. this is a classic multi dimension c++ mem allocation.
sample :
_variant_t **raw_data[N];

for(int nOut = 0;nOut < N;nOut++)
{
raw_data[nOut] = new _variant_t*[N2];
for(int nIn = 0;nIn < N2;nIn++)
{
raw_data[nOut][nIn]= new _variant_t(nIn);// sample initialization
}
}

// delete this is important
for(int nOut = 0;nOut < N;nOut++)
{
for(int nIn = 0;nIn < N2;nIn++)
{
delete raw_data[nOut][nIn];
}
delete raw_data[nOut] ;
}
Questiondelete breaking heap [modified] - solved Pin
PaulowniaK5-Apr-10 16:21
PaulowniaK5-Apr-10 16:21 
AnswerRe: delete breaking heap Pin
Adam Roderick J5-Apr-10 20:03
Adam Roderick J5-Apr-10 20:03 
AnswerRe: delete breaking heap [modified] Pin
Eugen Podsypalnikov5-Apr-10 21:22
Eugen Podsypalnikov5-Apr-10 21:22 
AnswerRe: delete breaking heap [modified] - solved Pin
Tim Craig6-Apr-10 9:34
Tim Craig6-Apr-10 9:34 
QuestionhInstance / Win32 Pin
Fareed Rizkalla5-Apr-10 7:19
Fareed Rizkalla5-Apr-10 7:19 
AnswerRe: hInstance / Win32 Pin
Chris Meech5-Apr-10 7:27
Chris Meech5-Apr-10 7:27 
AnswerRe: hInstance / Win32 Pin
Joe Woodbury5-Apr-10 7:31
professionalJoe Woodbury5-Apr-10 7:31 
QuestionRe: hInstance / Win32 Pin
Fareed Rizkalla5-Apr-10 7:44
Fareed Rizkalla5-Apr-10 7:44 
AnswerRe: hInstance / Win32 Pin
Joe Woodbury5-Apr-10 8:02
professionalJoe Woodbury5-Apr-10 8:02 
Questionsort CListCtrl specially Pin
includeh105-Apr-10 7:18
includeh105-Apr-10 7:18 
QuestionRe: sort CListCtrl specially Pin
David Crow5-Apr-10 17:36
David Crow5-Apr-10 17:36 
Questionc progrmng code help for the following algo Pin
abhijit.hzrk5-Apr-10 6:38
abhijit.hzrk5-Apr-10 6:38 
AnswerRe: c progrmng code help for the following algo Pin
Chris Losinger5-Apr-10 9:07
professionalChris Losinger5-Apr-10 9:07 
Questioncode page Pin
Member 5903105-Apr-10 3:28
Member 5903105-Apr-10 3:28 
AnswerRe: code page Pin
Emilio Garavaglia5-Apr-10 21:42
Emilio Garavaglia5-Apr-10 21:42 
QuestionNeed to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++? [modified] Pin
glitteringsound5-Apr-10 3:09
glitteringsound5-Apr-10 3:09 
AnswerRe: Need to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++? Pin
enhzflep5-Apr-10 3:41
enhzflep5-Apr-10 3:41 

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.