As I said, give us a runnable failing test suite.
Here's a reduced plugin with VisualD project files and all dependencies.
http://filesmelt.com/dl/bugdist.rarIt uses the standard DllMain, and the only thing xchat_plugin_init contains is this line:
xchat_printf(ph, "test = %p:%d", test.ptr, test.length);Where 'test' is a TLS variable of type string[] with no explicit initializer.
