Alright sorry about that, it took me a little while to figure out what was wrong.
And the winner is:
You forgot to initialize cleanmem.dll in the world object create event.
When the world object was trying to clean memory it would cause your other dlls to crash.
Add "cleanmem_init(0);" to world object create event