Hello all,
I have tried to create a Windows plugin dll for the Sylpheed e-mail client in FreePascal but couldn't get past a strange side effect: the mere fact of the plugin being loaded makes GTK's window-showing functions crash the whole program.
This happens even with the smallest and emptiest plugin pos- sible, when it neither subscribes for any event nor calls any API functions. The minimal plugin only provides minimal implementations of the basic interface functions simply reporting the start of every function to the debug log, which is created when Sylpheed is invoked with the --debug option.
Then I tried coding the same plugin in C, using the Tiny C Compiler, and it worked pretty well, wherefrom I concluded that something must be wrong with FreePascal's DLL genera- tion, so I have come here for help.
Attached are the C and Pascal sources of the minimal plugin. A package with the same sources plus the binaries can be downloaded here:
http://uploadbox.com/files/6d08a0b625/
This is the original report of the problem on the Sylpheed mailing list:
http://www.sraoss.jp/pipermail/sylpheed/2011-May/004525.html
After I had encountered the problem I started to strip the plugin of its functionality and dependencies until I had the bare skeleton which still didn't work and which I have attached.
If you need any further information, please ask.
Thanks in advnace,
Anton
