cancel
Showing results for 
Search instead for 
Did you mean: 

How the Screen::JSMOC(const Rect & invalidatedArea,Drawable * widgetToDraw) works?

nico's cat
Associate III

I have some trouble with the JSMOC method.

In my application,one screen could contain many(over 3000) widgets.Because of the recursive JSMOC function,it can easily cause a stack overflow.

Like this:

0690X00000DC29QQAT.png

2 REPLIES 2
Martin KJELDSEN
Chief III

Why do you have this many? Seems unreasonable. I feel we can optimize something in this application : ) Tell me about it?

/Martin

nico's cat
Associate III

Hi Martin.

Our product is a writing pad.The more you write the more widgets will be added to the screen.

Here is the product.

0690X00000DC5WhQAL.jpgWhat is clear is that recursion caused a stack overflow.

​Looking forward to your reply.

Thanks!​