Hi,<br><br>I'm trying to create a simple debug plugin for Geany and I want to work with the markers.<br>In fact, I tried to create a marker in the plugin_init and delete it in the plugin_cleanup:<br><br>#define SSM(m, w, l) scintilla_send_message(sci, m, w, l)<br>
...<br>void plugin_init(GeanyData *data) {<br>    ScintillaObject* sci = document_get_current()->editor->sci;    <br>    SSM(SCI_MARKERDEFINE, 0, SC_MARK_CIRCLE);<br>    markerHandle = SSM(SCI_MARKERADD, 28, 0);<br>
}<br><br>void plugin_cleanup(void) {       <br>    SSM(SCI_MARKERDELETEHANDLE, markerHandle, 0);<br>}<br><br>and the result is that the marker is created successfully but when the plugin is unloaded, Geany is exited immediately.<br>
I have tried to remove the marker with the other messages (SCI_MARKERDELETE, SCI_MARKERDELETEALL) but that error still exists and I don't know why.<br><br>Thank you very much for your help!<br>