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