Crystal Space
Welcome, Guest. Please login or register.
August 01, 2014, 01:37:05 pm

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8270 Members
Latest Member: Rodphil39
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  SCF warnings
« previous next »
Pages: [1] Print
Author Topic: SCF warnings  (Read 1408 times)
paganwarrior
Jr. Member
**
Posts: 68


View Profile Email
« on: October 21, 2006, 10:08:12 am »

I get many SCF warnings, when I shut down my application. The text:

SCF WARNING: 1 unreleased instances of class crystalspace.console.input.standard!
SCF WARNING: 1 unreleased instances of class crystalspace.console.output.standard!
SCF WARNING: 1 unreleased instances of class crystalspace.font.server.default!

etc.

I load this plugins with this function:

bool luaConsole::Initialize(iObjectRegistry* obj_reg)
{
   object_reg = obj_reg;

   conout = csQueryRegistryOrLoad<iConsoleOutput> (object_reg,
     "crystalspace.console.output.standard");
  if (!conout)
  {
    csReport (object_reg,
          CS_REPORTER_SEVERITY_ERROR, "lua.console",
      "Can't load the output console!");
    return false;
  }
  conin = csQueryRegistryOrLoad<iConsoleInput> (object_reg,
     "crystalspace.console.input.standard");
  if (!conin)
  {
    csReport (object_reg,
          CS_REPORTER_SEVERITY_ERROR, "lua.console",
      "Can't load the input console!");
    return false;
  }
 

  conin->Bind (conout);
  conin->SetPrompt ("lua:");
  ExecCallback* cb = new ExecCallback ();
  conin->SetExecuteCallback (cb);
  if(!cb->InitLua(object_reg)) return false;


  cb->DecRef ();
  conout->SetVisible (false);

  return true;
}

The exit code is canonical:

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

Why I get this wranings?
How can  I avoid this?

Thx for any reply!

Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: October 23, 2006, 07:44:35 am »

Probably a leak in your application somewhere. You'll have to give a bit more source before I can see where it is.

Greetings,
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 4.153 seconds with 15 queries.