This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Crash in custom plugin

0

I added the following to my dissector to make use of wireshark's xml dissector:

static dissector_handle_t xml_handle;
xml_handle = find_dissector("xml");
call_dissector_only(xml_handle, xml_tvb, pinfo, tree, NULL);

But now I am getting the following error whenever I capture a packet that makes the code execute:

"This application has requested the Runtime to terminate it in an unusal way."

asked 26 May '15, 11:47

XQW1123's gravatar image

XQW1123
4681014
accept rate: 0%

edited 27 May '15, 01:08

Anders's gravatar image

Anders ♦
4.6k952

It depends on where you've placed these calls. Can you elaborate on that? Whats the value of xml_handle after the function call?

(27 May '15, 00:10) Jaap ♦