Re: Multiple selection causing application crash
Jean Lalonde <[email protected]> Mon, 13 Jan 2025 18:18:26 -0800 (PST)
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
> Before working on an newer wrapper, I'll follow your suggestion to trace the app crash. I was not able to produce a stack trace inside a debugger, but I inserted diagnostic code in my code, particularly inside the Scintilla wrapper, and I found what command caused the crash. It was a call to the command SCI_GETSELTEXT() that I did not suspect to occur in a piece of code executed every 500 ms to update a value in the app's status bar. I could not tell why this command crashed when called with multiple selection. Could it be related to the buffer size? I can post code if you wish. Anyway, I solved the issue using a different approach with the commands SCI_GETSELECTIONSTART and SCI_GETSELECTIONEND. Thanks you for your help. Jean Le dimanche 12 janvier 2025 à 17 h 40 min 54 s UTC-5, Jean Lalonde a écrit : > > Its better to compile DLLs yourself as that is more secure, trusting > fewer people and services. > > Yes, I agree. But as I don't have the tools required to do that, I think I > can rely on safe source like Scintilla. > > > Every binary release of SciTE includes the DLLs. See > https://sourceforge.net/projects/scintilla/files/SciTE/ and look for the > wscite999.zip files. > > Great. I tested v4.4.6 and it could not be wrapped with my current > wrapper. Release v4.2.3 was the last release that I can use. It includes > SciLexer.dll instead of the more recent Scintilla.dll. I tested it and, > unfortunately (but not surprisingly...) it did not change the crash issue. > > Before working on an newer wrapper, I'll follow your suggestion to trace > the app crash. As I'm quite green in this area, I created a thread on AHK > forum <https://www.autohotkey.com/boards/viewtopic.php?f=76&t=135280> asking > for help. I'll follow up here with my findings (if any...). > > Jean > > > > Le dimanche 12 janvier 2025 à 15 h 46 min 27 s UTC-5, Neil Hodgson a > écrit : > >> Jean Lalonde : >> >> But v3.7.6 is the most recent version of Scintilla that I can find in a >> compiled .DLL. I'm not equipped to compile DLL from C++ source code. And >> the recent .DLL that I can find now on Scintilla.org can't be used with the >> AutoHotkey (AHK) wrapper I use (developed by Alguimist) because it does not >> support the separate Lexilla. >> >> >> Every binary release of SciTE includes the DLLs. See >> https://sourceforge.net/projects/scintilla/files/SciTE/ and look for the >> wscite999.zip files. >> >> Its better to compile DLLs yourself as that is more secure, trusting >> fewer people and services. >> >> 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 visit https://groups.google.com/d/msgid/scintilla-interest/ebc81d0c-76fd-4afa-a981-f3d8573d4b5en%40googlegroups.com.