designDialog() crashes out

Stimulsoft Reports.Flex discussion
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

designDialog() crashes out

Post by brianj774 »

Hallo...

I'm still experimenting with the product, just working on simple reports, just getting familiar with the product.

If I call

Code: Select all

report.design();
everything works just fine, but if, instead, I call

Code: Select all

report.designDialog();
I get the following call stack

Code: Select all

TypeError: Error #1007: Instantiation attempted on a non-constructor.
	at mx.controls.sliderClasses::Slider/createBackgroundTrack()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1944]
	at mx.controls.sliderClasses::Slider/createChildren()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1480]
	at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
	at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
	at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]
	at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:4392]
	at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:4181]
	at mx.core::Container/createChildren()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3187]
	at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
	at mx.core::Container/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3129]
	at stimulsoft.viewer.panels::StiViewModePanel/initialize()
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
	at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
	at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]
	at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:4392]
	at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:4181]
	at mx.core::Container/createChildren()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3187]
	at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
	at mx.core::Container/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3129]
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
	at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
	at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]
	at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:4392]
	at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:4181]
	at mx.core::Container/createChildren()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3187]
	at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
	at mx.core::Container/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3129]
	at stimulsoft.viewer::StiViewerFx/initialize()
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
	at mx.core::UIComponent/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:6924]
	at stimulsoft.controls_old.visual::StiReportViewer/createChildren()[D:\Flex\.BuilderFx\temp\Stimulsoft_DesignerFx\stimulsoft\controls_old\visual\StiReportViewer.as:141]
	at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
	at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
	at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]
	at stimulsoft.report.design::StiDesignerFx/createChildren()[D:\Flex\.BuilderFx\temp\Stimulsoft_DesignerFx\stimulsoft\report\design\StiDesignerFx.as:691]
	at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
	at mx.core::Container/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3129]
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
	at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
	at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]
	at stimulsoft.report.design::StiDesignerForm/createChildren()[D:\Flex\.BuilderFx\temp\Stimulsoft_DesignerFx\stimulsoft\report\design\StiDesignerForm.as:139]
	at mx.core::UIComponent/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7349]
	at mx.core::Container/initialize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3129]
	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:7241]
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:3972]
	at mx.core::Container/addChildAt()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2616]
	at mx.core::Container/addChild()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\Container.as:2534]
	at stimulsoft.controls.visual::StiWindowForm/show()[D:\Flex\.BuilderFx\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiWindowForm.as:516]
	at stimulsoft.report::StiReport/designDialog()[D:\Flex\.BuilderFx\temp\Stimulsoft_Report\stimulsoft\report\StiReport.as:961]
	at dashboard.ui.modules::ModuleReportsFX/onLoadComplete()[C:\SVN\webstore\trunk\tmpFlex_RenameMe\Flex\Dashboard\src\dashboard\ui\modules\ModuleReportsFX.mxml:100]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flash.net::URLLoader/onComplete()
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

designDialog() crashes out

Post by Vladimir »

Hello,

We made some changes in the code, which may affect on this error. You can find the update in the attached archive.

Thank you.
Attachments
804.FXFLEX_2011.01.20_Trial.zip
(3.27 MiB) Downloaded 380 times
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

designDialog() crashes out

Post by brianj774 »

I swapped out the swc's, build-clean, and tested....same deal.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

designDialog() crashes out

Post by Vladimir »

Hello,

Unfortunately, we could not reproduce this error.
Can you please send us a complete application for Flash Builder? Perhaps the error depends on some application settings, we need to analyze them.

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

designDialog() crashes out

Post by brianj774 »

I'll see what I can do, as its located deep in my entire application.

I'll see if I can create a sample project which demonstrates the same behavior.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

designDialog() crashes out

Post by Vladimir »

Hello,

It would be very good. We will wait for your answer.

Thank you.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

designDialog() crashes out

Post by brianj774 »

Ha!

Of course, the simple sample works just fine.

Aside from the complete project, is there anything else we can look at? I imagine that for the most part, I've got pretty standard settings. The only thing that might be somewhat out of the ordinary is that I've got this running inside a module? But, for clarity, the report.showDialog() works just fine, only the designDialog() is broken.
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

designDialog() crashes out

Post by brianj774 »

Okay, here's an oddity.

I copied

Code: Select all

		StiDesignerFx.initialize();
		var _report: StiReport = new StiReport();
		_report.designDialog();
Into my main app (as opposed to being in a module).

It worked...so, is there something about a module thats causing problems?
brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

designDialog() crashes out

Post by brianj774 »

ok,

So, I pared my module down to a bare minimum, and it continues to work...I'll keep adding stuff back in, until I can report what the problem is.

Code: Select all


	
	
		
	
	
	
	

brianj774
Posts: 177
Joined: Tue Jan 11, 2011 7:15 am
Location: Minnesota

designDialog() crashes out

Post by brianj774 »

Oh ho ho!

I found that, when I leave the minimalistic module as is, and then I remove the initializate() code from my main app, THEN I get the problem.

But, for now, if I leave the

Code: Select all

StiDesignerFx.initialize();
in my main app, then remove it from the module, everything seems to work out correctly.

Is that then, what should happen in a modular app? SHould we initialize the Designer and Viewer as part of the main apps init processing?
Locked