Skip to main content
nico's cat
Associate III
Feb 21, 2020 8:37 AM UTC
Question

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

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​

This topic has been closed for replies.

2 replies

Martin KJELDSEN
Principal III
Feb 21, 2020 1:46 PM UTC

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
Feb 21, 2020 2:08 PM UTC

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!​