Crystal Space
Welcome, Guest. Please login or register.
October 22, 2017, 02:58:46 pm

Login with username, password and session length
Search:     Advanced search
9063 Posts in 2051 Topics by 77690 Members
Latest Member: Ayoluwcarily867
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  SCF warnings
« previous next »
Pages: [1] Print
Author Topic: SCF warnings  (Read 1784 times)
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!


I load this plugins with this function:

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

   conout = csQueryRegistryOrLoad<iConsoleOutput> (object_reg,
  if (!conout)
    csReport (object_reg,
          CS_REPORTER_SEVERITY_ERROR, "lua.console",
      "Can't load the output console!");
    return false;
  conin = csQueryRegistryOrLoad<iConsoleInput> (object_reg,
  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!

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.

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.295 seconds with 15 queries.