Ok, unfortunately I misinterpreted the documentation, again.
*No modifications may be performed while in a SCN_MODIFIED event.*
I had understood this to mean "text modifications" and I actually only
wanted to change styles.
Lessons learnt.
Eren
[email protected] schrieb am Donnerstag, 6. Juni 2024 um 14:25:27 UTC+2:
> 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/c5e551ff-c91f-4618-8f44-15e4b5cdd86fn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.