DLL heap is private, you cant delete objects created inside it.

http://stackoverflow.com/questions/13679104/heap-corruption-when-returning-from-funtion-inside-a-dll
Fixing dictionary
Save dictionary from exporting
Success detemplated
Merge pull request #9 from Enelar/untemplate_server_controller

Untemplate server controller