6 Replies Latest reply on Jun 16, 2011 10:22 PM by drkstr_1

    Strange stack overrun with simple scroller

    drkstr_1 Level 4

      Any particular reason why the following would eat up an entire core of my CPU and then crash when I attempt to resize the appilcation?

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark">
           <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
           </fx:Declarations>
      
           <s:Scroller top="0" left="0" bottom="0" right="0">
                <s:VGroup>
                     <s:RichText width="100%"
                                    text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae vehicula ante. Pellentesque eleifend ullamcorper facilisis. Maecenas mi elit, aliquam sed tempus eu, mattis sit amet ligula. Vivamus vel urna orci, ac consectetur magna. Curabitur ipsum leo, accumsan pulvinar porta non, cursus vitae turpis. Suspendisse aliquam placerat enim a dapibus. Etiam ultricies, leo in ornare feugiat, lacus ipsum sollicitudin augue, non ultricies diam libero ut ipsum. Aliquam at nunc at lorem rutrum varius. Duis imperdiet porta tortor vel iaculis. Aliquam erat volutpat. Nullam nisi leo, porta vitae cursus vel, fringilla a lacus. Integer laoreet, ipsum nec ornare congue, ipsum ipsum mattis nulla, non porttitor velit tortor vitae sem. Sed aliquet nibh in lorem pellentesque accumsan ultricies quam laoreet. Mauris cursus sapien quis ligula suscipit tempor. Morbi ornare, lectus nec ultricies suscipit, arcu mauris malesuada nibh, mattis consectetur felis purus at purus. Suspendisse arcu ante, accumsan nec eleifend at, consectetur ac sapien." />
                     <s:RichText width="100%"
                                    text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur vitae vehicula ante. Pellentesque eleifend ullamcorper facilisis. Maecenas mi elit, aliquam sed tempus eu, mattis sit amet ligula. Vivamus vel urna orci, ac consectetur magna. Curabitur ipsum leo, accumsan pulvinar porta non, cursus vitae turpis. Suspendisse aliquam placerat enim a dapibus. Etiam ultricies, leo in ornare feugiat, lacus ipsum sollicitudin augue, non ultricies diam libero ut ipsum. Aliquam at nunc at lorem rutrum varius. Duis imperdiet porta tortor vel iaculis. Aliquam erat volutpat. Nullam nisi leo, porta vitae cursus vel, fringilla a lacus. Integer laoreet, ipsum nec ornare congue, ipsum ipsum mattis nulla, non porttitor velit tortor vitae sem. Sed aliquet nibh in lorem pellentesque accumsan ultricies quam laoreet. Mauris cursus sapien quis ligula suscipit tempor. Morbi ornare, lectus nec ultricies suscipit, arcu mauris malesuada nibh, mattis consectetur felis purus at purus. Suspendisse arcu ante, accumsan nec eleifend at, consectetur ac sapien." />
                </s:VGroup>
           </s:Scroller>
      
      </s:WindowedApplication>
      

       

       

      As soon as I size down to the point where it needs a scroll bar, It crashes out on me every time.

       

      I was just putting a together simple example for someone on how a scroller works... but I gues I'm not as qualified to do so as I thought hehe.

       

      Any idea what's causing this? Am I setting the scroller up in a way that forces it to continually messure?

       

      *edit*

       

      BTW, I am using latest 4.5 release..