Skip to main content
nico's cat
Associate III
February 21, 2020
Question

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

  • February 21, 2020
  • 2 replies
  • 1568 views

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
February 21, 2020

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
February 21, 2020

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