[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] SCUserView.clearOnRefresh_(true) in SCScrollView eats memory



Hi All.

How are we all doing? Hope you're well and had a lovely Christmas. It's been a while but I'm back with a new computer and doing SC & LNX stuff again. : ) I've been missing it!
Can anyone help with this SCUserView.clearOnRefresh_(true) memory eater bug I have? I know it's not Qt but I still use SCViews.

When you click on the SCUserView below and move the mouse around to scroll, SC really starts to eat the memory and stops working after a few seconds. SCUserView must be in a SCScrollView.

It's all because of .clearOnRefresh_(true); when it's false SC stops eating memory. 

I'm guessing this goes back to the SCScrollView bug which crashed SC on OS >=10.6

(
GUI.cocoa;

w=SCWindow();

v=SCScrollView(w,Rect(10,10,300,300))
.hasBorder_(true);
SCUserView(v,Rect(10,10,1500,1500))

.clearOnRefresh_(false) // when true it eats memory, when false it doesn't

.drawFunc_{|me|
Color.black.set;
SCPen.fillRect(Rect(0,0,1500,1500));
};
w.front;
)


Intel Core i5

OS 10.8.2

SC 3.6 (.1)


cheers Neil