Results 1 to 6 of 6

Thread: Crash when I close the program (font related)

  1. #1

    Red face Crash when I close the program (font related)

    Font manager class:
    http://pastebin.com/GRgjXzJr

    But when I close the program I get an error within sharedptr.h at:
    CL_SharedPtr_Deleter(Type *instance) : instance(instance) { }

    If I do not call the AddFont function in my game at all, there are no crashes when closing the game. Can anybody help?

    Thanks!

  2. #2
    Lesser Knight
    Join Date
    Mar 2009
    Posts
    54

    Default

    Sounds like CL_Font_Freetype was freed after CL_SetupCore went out of scope.

  3. #3

    Default

    That isn't the case. Any other reasons why this could be?

  4. #4
    Lesser Knight
    Join Date
    Sep 2010
    Posts
    41

    Default

    Try to locate font instance not in stack. I had the same issue. Rombust said some time ago that font class don't have some code for right memory freeing.

  5. #5

    Default

    Quote Originally Posted by Ockonal View Post
    Try to locate font instance not in stack. I had the same issue. Rombust said some time ago that font class don't have some code for right memory freeing.
    How exactly did you fix the problem? This is the only down-side to ClanLib so far and is heavily delaying progress on my project

  6. #6

    Default

    I fixed the problem, turns out huntercool was right all along. Thanks bro.

Similar Threads

  1. Mystery bug, related to physics and engine reset.
    By speeder in forum Novashell Game Creation System
    Replies: 2
    Last Post: 04-03-2010, 05:13 PM
  2. Adventure game related
    By Uhfgood in forum Novashell Game Creation System
    Replies: 4
    Last Post: 09-28-2009, 04:05 PM
  3. Font crash in GUI
    By Harry in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 07-23-2009, 01:47 AM
  4. SoundBuffer related memory problem
    By ehd19777 in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 08-27-2008, 06:38 PM
  5. Getting close
    By Seth in forum Other RTsoft Games
    Replies: 12
    Last Post: 10-19-2002, 11:51 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •