0 Replies Latest reply on Aug 1, 2008 9:02 AM by FingerPaint2008

    ArgumentError: Error #2015: Invalid BitmapData.

      I've written a C++ driver that renders a Flash file into a DirectX texture, after which it can be either shown in a sprite or be used to map on objects. The sprite version is also interactive and processes input events. Most flash files work but those created with Flex run into problems. Some files will get stuck at the end of the initialization phase. No ActionScripts are called (such as init or creationComplete), the CPU will be spike to 100% and memory usage shoots up. I haven't been able to find any patterns that might explain this behavior.

      After the application runs for a while and then I get the following error:

      ArgumentError: Error #2015: Invalid BitmapData.
      at flash.display::BitmapData$iinit()
      at mx.graphics::RectangularDropShadow/::createShadowBitmaps()
      at mx.graphics::RectangularDropShadow/drawShadow()
      at mx.skins.halo::HaloBorder/ http://www.adobe.com/2006/flex/mx/internal::drawDropShadow()
      at mx.skins.halo::PanelSkin/ http://www.adobe.com/2006/flex/mx/internal::drawBorder()
      at mx.skins.halo::HaloBorder/mx.skins.halo:HaloBorder::updateDisplayList()
      at mx.skins::ProgrammaticSkin/validateDisplayList()
      at mx.managers::LayoutManager/::validateDisplayList()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      The error above occurs when I add a RichTextEditor component.

      Has anyone seen this before? I've tried to following assumptions with no effect:
      1) Perhaps certain image/resource files could not be loaded from disk. After setting various security options
      and stripping any images from my flex files I did not arrive at a solution
      2) Compile the host C++ application with network support on the assumption that perhaps resources were needed from the web that could not be access. This did not solve the problem.
      3) Change the threading to provide the ActiveX control with the most CPU resources. Even though Flash ran faster on the files that worked, it did not solve the problem for the more complex Flex files.