0 Replies Latest reply on Jan 8, 2010 8:31 AM by storyguy88

    Writing array/object to shared object in child window crashes

    storyguy88 Level 1

      If I write an array/object to a shared object in the main window it works fine. If I try the same thing in a child window, it works - but then as I'm exiting the application it crashes. The really weird thing is that if I write a single value datatype like a string or integer it works just fine without crashing on exit. I've tried only using a shared object in the second window and it still crashes.

       

      index.html

      <html>
           <head>
                <title>crash test</title>
                <script type="text/javascript" src="lib/air/AIRAliases.js"></script>
           </head>
           <body>
                <h1 onclick="javascript:window.open('window2.html', 'Child', 'width=500, height=300');">Crash Test Header</h1>
                <script type="text/javascript">
                     var so = air.SharedObject.getLocal('preferences', '/');
                     so.data.testProperty = new Array();
                </script>
           </body>
      </html>
      

       

       

      No crash on application exit:

      window2.html

      <html>
           <head>
                <title>window 2</title>
                <script type="text/javascript" src="lib/air/AIRAliases.js"></script>
           </head>
           <body>
                <h1>window 2 header</h1>
                <script type="text/javascript">
                     var so = air.SharedObject.getLocal('preferences', '/');
                     so.data.testProperty = 'singe value datatype';
                </script>
           </body>
      </html>
      

       

      Crashes on application exit:

      <html>
           <head>
                <title>window 2</title>
                <script type="text/javascript" src="lib/air/AIRAliases.js"></script>
           </head>
           <body>
                <h1>window 2 header</h1>
                <script type="text/javascript">
                     var so = air.SharedObject.getLocal('preferences', '/');
                     so.data.testProperty = new Array();
                </script>
           </body>
      </html>