Home » Community » Newbie corner » [Resolved] Exitcode : 3221225477
[Resolved] Exitcode : 3221225477 [message #51080] |
Mon, 21 January 2019 14:40 |
|
Xemuth
Messages: 387 Registered: August 2018 Location: France
|
Senior Member |
|
|
Hi dear Upp users and programmers,
I get this kind of code :
ExcelSheet* ExcelWorkbook::AddSheet(Upp::String sheetName){ //Create new Sheet with defined name
if(this->isOpenned){
ExcelSheet* mySheet;
try{
mySheet = (&this->sheets.Add(ExcelSheet(*this,GetAttribute(GetAttribute("Sheets"),"Add")))); //I had my excelSheet to my vector
mySheet->SetName(sheetName); // i change the name of my excel Sheet (can raise an error)
return mySheet; // if everything going well I return the address of the sheet stored in vector
}catch(...){
//else if it crash their is no probleme;
}
return mySheet; // I just return my shit without is name changed
}
return NULL; // if my workbook is not open I return null pointer
}
The goal of it is to create an ExcelSheet object and add it to my vector named "sheets" problem is, when an error occure during the "SetName" the code goes well but at the end of the main function I got an error code 3221225477.
Can someone explain me why this occur ?
Also, if you see programming atrocity, can you take time to explain it to me ? I'm still a newbie
Thanks in advance,
Best Regard
EDIT : Problem resolved. It was just a memory leak
[Updated on: Thu, 24 January 2019 10:03] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 29 17:20:03 CEST 2024
Total time taken to generate the page: 0.02809 seconds
|