Re: [Iup-users] scintilla LOADLEXERLIBRARY

2021-08-07 Thread Andrew Robinson
Try using DisableThreadLibraryCalls() in the DLLmain function of your DLL to disable thread attach/detach notifications that aren't present for normally loaded DLLs. On 2021-08-06 at 7:32 PM, breadstick wrote: >The Lua script stays open because I do the message loop with iup.MainLoop(). The scint

Re: [Iup-users] scintilla LOADLEXERLIBRARY

2021-08-06 Thread breadstick
The Lua script stays open because I do the message loop with iup.MainLoop(). The scintilla object is still there. The dll is loaded when I set loadlexerlibrary="some.dll". I know because the code in the dll reaches DLL_PROCESS_ATTACH in DllMain(). What happens is that it gets immediately unloade

Re: [Iup-users] scintilla LOADLEXERLIBRARY

2021-08-06 Thread Antonio Scuri
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 1