Results 1 to 8 of 8

Thread: Failed to create new thread, code:8

  1. #1
    Join Date
    Apr 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Failed to create new thread, code:8

    Over the last few days I have been receiving this error more and more frequently. I dont think its anything to do with Randoms as the script runs in SW. It has only been happening recently, (within the last week or so)

    Exception in Script: Failed to create new thread, code:8
    The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, 4]

    Any suggestions?

  2. #2
    Join Date
    Oct 2011
    Location
    Australia, Vic
    Posts
    1,517
    Mentioned
    2 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by tensix View Post
    Over the last few days I have been receiving this error more and more frequently. I dont think its anything to do with Randoms as the script runs in SW. It has only been happening recently, (within the last week or so)

    Exception in Script: Failed to create new thread, code:8
    The following DTMs were not freed: [SRL - Lamp bitmap, 1, 2]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, SRL - NavBar Bitmap, 4]

    Any suggestions?
    What script? Have you tried Re-installing? Are you sure your up-to-date?
    We Need some more info.

  3. #3
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    Code 8 means Simba is running out of memory. Check for memory leaks in the script.
    [10/14/13:19:03] <BenLand100> this is special relatively, just cleverly disguised with yachts

  4. #4
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Do you use any onscreen paint or debugging?

  5. #5
    Join Date
    Apr 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have tried moving the call for my onscreen paint, and it seems to be running a bit better now. (was calling it often so I had to assume that with it being a memory issue it was that)

    Thanks for your help

  6. #6
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by tensix View Post
    I have tried moving the call for my onscreen paint, and it seems to be running a bit better now. (was calling it often so I had to assume that with it being a memory issue it was that)

    Thanks for your help
    What functions do you use, I'm trying to find the problem in the includes and fix it.

  7. #7
    Join Date
    Apr 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SMART_DrawText, SMART_DrawBitmap, SMART_ClearCanvas, SMART_FreeDebug
    and of course FreeBitmap().

  8. #8
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Could you post your code or is it private? Try to use wrapper functions where possible and free all the images you created.
    Working on: Tithe Farmer

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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