<br><br><div class="gmail_quote">On 6 April 2010 09:26, Lai Hoang Nam <span dir="ltr"><<a href="mailto:laihoangnam@gmail.com">laihoangnam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>
<br></blockquote><div><br>Hi,<br><br>You don't say which language you are creating the debugger for, but note that there is already a plugin front end for gdb which supports C,C++, Pascal, Ada, Fortran etc.<br><br>Looking at the source of that plugin may help provide you with a known working outline of a debugger plugin (or save the effort if its a gdb supported language)<br>
<br>Cheers<br>Lex<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br>