Status & Roadmap
Authors & License
Funding Ultimate++
Search on this site
Search in forums

SourceForge.net Logo
Home » Community » Newbie corner » [Resolved] Exitcode : 3221225477
[Resolved] Exitcode : 3221225477 [message #51080] Mon, 21 January 2019 14:40
Xemuth is currently offline  Xemuth
Messages: 307
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 
		ExcelSheet* mySheet;
			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
			//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 Embarassed

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

Previous Topic: [Resolved] char* with "\0" between each char
Next Topic: Always compiling libraries when creating new project?
Goto Forum:

Current Time: Tue Jan 19 09:49:22 CET 2021

Total time taken to generate the page: 0.00721 seconds