Mat:
> Typical, as soon as i post something i find some more info ;-) I tried
> running MemProof and when the problem happens it says:
>
> 1886 Error 00000008 0
> CreateCompatibleBitmap(234954230,780,663) : Not enough storage is avai
>
> So that would explain why it is related to the physical window size.
> But why does Scintilla have this problem and not, say RichEdit?
The drawing buffer pixmapLine is being allocated too much space. It
was originally just holding one line but is now being allocated the
whole client area. You could try changing the initialisation in
src/Editor.cxx Editor::RefreshPixMaps from
pixmapLine->InitPixMap(rcClient.Width(), rcClient.Height(),
surfaceWindow, wMain.GetID());
to
pixmapLine->InitPixMap(rcClient.Width(), vs.lineHeight,
surfaceWindow, wMain.GetID());
This buffer and the margin buffer can be turned off with
SCI_SETBUFFEREDDRAW(0).
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest