[Geany-devel] Question about using scintilla to create a simple debug plugin
Lai Hoang Nam
laihoangnam at xxxxx
Mon Apr 5 23:26:06 UTC 2010
Hi,
I'm trying to create a simple debug plugin for Geany and I want to work with
the markers.
In fact, I tried to create a marker in the plugin_init and delete it in the
plugin_cleanup:
#define SSM(m, w, l) scintilla_send_message(sci, m, w, l)
...
void plugin_init(GeanyData *data) {
ScintillaObject* sci = document_get_current()->editor->sci;
SSM(SCI_MARKERDEFINE, 0, SC_MARK_CIRCLE);
markerHandle = SSM(SCI_MARKERADD, 28, 0);
}
void plugin_cleanup(void) {
SSM(SCI_MARKERDELETEHANDLE, markerHandle, 0);
}
and the result is that the marker is created successfully but when the
plugin is unloaded, Geany is exited immediately.
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.
Thank you very much for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20100406/d4f25a96/attachment.html>
More information about the Devel
mailing list