Re: Problem finding the cause of a random crash in Document::NotifyModified(DocModification mh)
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
Neil, thank you very much for the help and tips. I will apply them and see if I can solve the mystery. Thank you Eren Neil Hodgson schrieb am Donnerstag, 6. Juni 2024 um 13:01:40 UTC+2: > ekopa…: > > > <Document_NotifModified.PNG> > > Its pretty strange for watcher.watcher to be 0xFF… as its a pointer and > should be set up in an AddWatcher call with a pointer to a valid Watcher. > Check the implementation code for AddWatcher calls and trace them. 0xFF.. > could be uninitialized memory but it shouldn't be occurring here. > > > This happened after typing "self ", the word self with a space, in an > empty python buffer. > > <ScintillaWin_AddWString.PNG> > > Is it normal that even though wsv[0] is 32 (space), the docChar size is > 0? > > More likely that the debugger is reporting poorly. > > It's possible there is some optimization occurring or different pieces of > code are being compiled with different flags. Try cleaning and recompiling. > > > To be 100% clear, this ONLY happens when Notepad++ loads my plugin, I've > never seen it occur without my plugin, but nothing in the stack trace > points to a source from my plugin. > > There are two calls to AddWString inside KeyMessage, with WM_CHAR or > WM_UNICHAR and that should be checked. > > > And all my plugin is doing is calling searchintarget and using > indicators to flag matches. > > Its easy to reuse the target in unexpected ways in reentrant code so see > if your code is being called with other uses of the target in up or > down-stack calls. > > Neil > > -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/scintilla-interest/678c60b1-cd6c-4445-8a5f-a596b2709fd0n%40googlegroups.com.