When setting that IUP attribute what we do is exactly the same thing. It unloads after the script is ended? I mean It actually worked inside the script then is unloaded somehow after that?
Is the Scintilla object destroyed when the script ends? Best, Scuri Em sex., 6 de ago. de 2021 às 13:21, breadstick <breadstic...@gmail.com> escreveu: > Hi > I'm using Iup 3.3.0, Lua 5.3.5, iup-scintilla 3.11.2. > I'm trying to load an external lexer library for scintilla. > > What I do is simply: > --creation > edit = iup.scintilla{ ... } > --load lexer > edit.loadlexerlibrary = "lexluthor.dll" > > The dll loads correctly, but then it unloads immediately. The Lua/Iup > script continues to work, it's just the lexer dll that gets unloaded for > some reason. > > The lexer dll I'm using is basically like the template you can find here: > www.scintilla.org/LexPython.cxx.html, but without the calls to the python > lexer, so it's an empty lexer that doesn't do anything; it's just for > testing. > The lexer dll is built with the headers/sources of scintilla 3.11.2, the > same version used by Iup, and using the same g++ swithes that are in the > makefile scintilla-3.11.2\win32\makefile. > > Just to be sure, I've made a small C program that loads the scintilla dll > (again, version 3.11.2) and then it loads the lexer dll with: > SendMessage(hsci, SCI_LOADLEXERLIBRARY, (WPARAM)0, > (LPARAM)"lexluthor.dll"); > This time the dll stays loaded correctly, and I can set the lexer with > SCI_SETLEXERLANGUAGE. > > So it appears to be a problem in Iup. > > Any suggestions on why Iup unloads the dll? > > Thanks > > > _______________________________________________ > Iup-users mailing list > Iup-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/iup-users >
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users