Results 1 to 3 of 3

Thread: CL_File crashes showing dbgheap.c

  1. #1

    Default CL_File crashes showing dbgheap.c


    I'm having trouble with the CL_File. I'm using ClanLib 2.2.12 static linked, running in /MDt ..
    W7 64bit, VC++ 2010 SP1.. It compiles fine, but this piece of code
    PHP Code:
    CL_File assetFile(this->m_basePath "Media\\" assetPath ".mast"); 
    Crashes everything, giving me this message
    PHP Code:
    Unhandled exception at 0x75acb727 in MGE.exeMicrosoft C++ exceptionCL_Exception at memory location 0x003af188.. 
    and then it shows me a file called "dbgheap.c"..

    What the hell am I doing wrong?

    Yes, the path is valid. The file already exists, but does that matter? Nope[edit2]

  2. #2
    ClanLib Developer
    Join Date
    May 2007


    A CL_Exception was thrown, and you have not caught it anywhere

    So we don't know the exact error.

    From Examples/Basic2D
    	catch(CL_Exception &exception)
    		CL_ConsoleWindow console("Console", 80, 160);
    		CL_Console::write_line("Exception caught: " + exception.get_message_and_stack_trace());
    		return -1;
    If you compile the ClanLib source code yourself, it's easier to debug when the "break on std::exception" option is set.

    When debugging, if the call stack looks strange "frames below may be incorrect and/or missing...", remember to load the symbols (you only ever have to do this once) :

  3. #3


    Ah, ofc - aint used to exceptions in C++ yet, but ye - figured it out.

    Needed to call the
    PHP Code:
    CL_String filename,
    OpenMode  mode,
    unsigned int access,
    unsigned int share share_all,
    unsigned int flags 0); 
    constructor instead of the CL_File(CL_String path).

Similar Threads

  1. RT3DApp Crashes on Android
    By Balraj in forum Proton SDK
    Replies: 11
    Last Post: 05-02-2011, 02:29 AM
  2. Game crashes system?
    By Scary Guy in forum Funeral Quest
    Replies: 0
    Last Post: 11-27-2009, 12:17 AM
  3. 16x16 showing up as 17x17
    By illspirit in forum Novashell Game Creation System
    Replies: 2
    Last Post: 07-29-2008, 06:40 AM
  4. FQServer Crashes When New Account Created
    By File Sponge in forum Funeral Quest
    Replies: 3
    Last Post: 02-27-2007, 06:25 AM
  5. Flash errors/crashes
    By Mugombie in forum Funeral Quest
    Replies: 1
    Last Post: 06-15-2004, 03:44 AM



Posting Permissions

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