View Full Version : Failed to create new thread, code:8
tensix
08-20-2012, 08:13 PM
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?
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.
euphemism
08-21-2012, 12:27 AM
Code 8 means Simba is running out of memory. Check for memory leaks in the script.
Do you use any onscreen paint or debugging?
tensix
08-21-2012, 05:01 PM
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 :)
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.
tensix
08-22-2012, 03:05 PM
SMART_DrawText, SMART_DrawBitmap, SMART_ClearCanvas, SMART_FreeDebug
and of course FreeBitmap().
masterBB
08-22-2012, 05:23 PM
Could you post your code or is it private? Try to use wrapper functions where possible and free all the images you created.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.