SRL Archive - Help

Failed to create new thread, code:8


tensix

2012-08-20 16:13:10

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?

John

2012-08-20 19:37:08

From: tensix
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

2012-08-20 20:27:14

Code 8 means Simba is running out of memory. Check for memory leaks in the script.

mormonman

2012-08-20 20:53:53

Do you use any onscreen paint or debugging?

tensix

2012-08-21 13:01:54

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 :)

mormonman

2012-08-21 13:29:58

From: tensix
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

2012-08-22 11:05:00

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

masterBB

2012-08-22 13:23:16

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