Hi, I have written a Plugin for Wireshark wich includes the library mxml. The compile of the plugin is successfull. But when I start wireshark with my plugin wireshark crashes. Do you have any experiences with using an external dll (mxml) in your own plugin? The problem seems to be in 'mxmlloadfile'... Thanks asked 10 Jan '12, 05:46 Nic |
One Answer:
I'm assuming, as you mention dll, your platform is Windows. If so, are you sure your external dll is linked to the same c runtime library as Wireshark and your plugin? Try starting Wireshark under a debugger and report the error you see. answered 10 Jan '12, 05:56 grahamb ♦ showing 5 of 7 show 2 more comments |
Sorry, forgot to mention it, yes the platform is windows. I build only the plugin and not wireshark. The plugin is running while I don't call the mxmlloadfile. When I call other functions from the dll everthing works.... I try to get the debug messages
Do you build the external dll. What is it (mxml)?
mxml is a free library for xml-parsing
Now I found the problem. It wasn't in the plugin but in the xml-library....
That's not much of an answer, would you like to elaborate?
Both dlls (mxml and the wireshark dll) included mscvr90.dll (from VisualStudio 2008). The mxml-lib was build with an other version of this dll than the wireshark plugin. So the internal dependencies were wrong. This caused the crash when calling some functions from the mxml lib.
Ok, so my original answer was in the right area, I'll move your "answer" to a comment on that answer.
Can you mark the answer as "accepted".