1. Start any game (e.g. Doom 2) with ictionary.pk3 loaded. 2. Save the game.
3. Load the saved game.
4. Open console. Console says:
Code: Select all
Warning: 'ictionary' is freed outside the GC process.
Code to cause the error (the same as in the attached pk3):
Code: Select all
class ictionaryEventHandler : EventHandler
{
override void WorldLoaded(WorldEvent e)
{
dict = Dictionary.Create();
}
Dictionary dict;
}
Edit: OnRegister was changed to WorldLoaded. The warning is the same.