Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Intresting "Heap leaks detected" warning
Intresting "Heap leaks detected" warning [message #6569] Sun, 19 November 2006 09:43 Go to previous message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
bool URightCtrl::ShowSys(String id,String name)
{
if(!odb().IsDbAlive())return false;
viewS1.m_SysTitle.SetLabel("当前系统:"+name);//显示当前系统名称
USQLite3DB& data=odb().database();
USQLite3Table tab;
String sql="select syNQty,syCQty from System where syId="+id;
try
{
tab=data.GetTable(sql);
viewS1.m_Matrix.SetRowCol(atoi(tab.fieldValue(1)),((atoi(tab .fieldValue(0))) >>1));
tab.finalize();
}
catch(USQLite3Exception &e)
{
PromptOK(e.errorMessage());
tab.finalize();
return false;
}

return true;
}

Without last "return true;" line,program claim a "Heap leaks detected" warning
caller is:
if(!right->ShowSys(m_Tree1.Get(cursor),m_Tree1.GetValue(cursor)))
{PromptOK("can't load Systems.");}

[Updated on: Sun, 19 November 2006 09:51]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help:Capture USB Device message
Next Topic: How to show a ButtonOption in a cell of a the GridCtrl
Goto Forum:
  


Current Time: Mon Apr 29 06:39:37 CEST 2024

Total time taken to generate the page: 0.03378 seconds