Hi Mat, > If i open 25 large (full-screen) Scintilla windows, then go to the > first few windows already opened then they no longer respond (they do > not accept text or refresh). Don't take 25 as a fixed number, i just > tried it with Scite and it took 45 instances before it started hanging > (although they weren't all full-screen, which makes me think it is > related to the physical display area).
I can't reproduce this on Windows XP SP2. I set up SciTE to open full screen 1020x1680 windows with output.horizontal.size=200 so the output pane would also be active and with three files loaded. After 69 instances, Windows refuses to open any more applications but all of the instances (well, the 20 or so I randomly tried) remained responsive. Windows refusing to open more copies happens with most applications: I could open 50 copies of WinMerge or 40 or so Internet Explorer's before it stopped. I gave up on Notepad after 102 instances. Something is being exhausted here but I don't know what. Its not memory as less than half of installed RAM is used. > It is odd that CreateWindowEx_ continues to return a valid handle to > the new Scintilla windows but it is the old windows that lock up. Most Scintilla allocations occur dynamically as needed during use so an empty untouched instance is likely to need more resources when it is returned to and manipulated. > If > there is some sort of resource problem it would be better if new > instances would fail to open and return a zero handle so that i could > relay a "max windows opened" message instead of the current situation. Can't be done due to dynamic allocation. > Does anyone know what is going on or how to fix this? If this has been > covered before (i couldn't see anything) please point me in the > correct direction :-D The right thing to do is to run your application under a debugger and break when you see a hang so that you can find out where the hang occurs. Another approach would be to use BoundsChecker which will tell you when an allocation call fails. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
