Crystal Space
Welcome, Guest. Please login or register.
September 02, 2014, 08:38:58 pm

Login with username, password and session length
Search:     Advanced search
9009 Posts in 2043 Topics by 8379 Members
Latest Member: Hamlock3
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Game Content Creation
| | |-+  SCF Warnings, unreleased instances
« previous next »
Pages: [1] Print
Author Topic: SCF Warnings, unreleased instances  (Read 4142 times)
Panch
Jr. Member
**
Posts: 80


View Profile Email
« on: January 28, 2008, 07:05:18 pm »

Smiley

I am getting a lot of unreleased instances of a lot of stuff. I am trying to close the application with:

Code:
csRef<iEventQueue> q = CS_QUERY_REGISTRY(Phage::GetObjectRegistry(), iEventQueue);
      if (q.IsValid()) q->GetEventOutlet()->Broadcast(csevQuit(Phage::GetObjectRegistry()));

In an external class, then:

Code:
// Exit loop
void Phage::OnExit()
{
engine->DeleteAll();
Phage::CloseApplication(object_reg);
Phage::DestroyApplication(object_reg);
}

In my base class, but it's not 'cleaning up' everything. What am I doing wrong?

Thanks!
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #1 on: March 09, 2008, 01:35:10 am »

You're not necessarily doing something wrong, even apps provided with CS exhibit "unreleased instances" messages.
As for solving them, I'm not sure what the solution is...
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.086 seconds with 17 queries.