Hi Veeru,

I have also observed Modules and Cairngorm seems to have some tricky issues.
Some of the points you need to check are:


   - you have used weakReference as true in addCommand function of
   Controller.
   - you are properly unloading the module and removing all the event
   listeners attached to this module.
   - use only 1 .swc for cairngorm in the main application and set it as
   reference in other modules.
   - Or alternately before instantiating the Delegate you can check if it
   already exists.




On Sun, Jan 17, 2010 at 3:30 AM, veeru rahul <[email protected]> wrote:

> Hi Guys,
>
> I am using cairngorm in my project.
>
> I am compliling my project as a swf and loads the same in another
> application.
>
> In my module load i will displatach some AMF calls for data fetch (via
> caringorm - event,command and delegate).
>
> For the first time when I open my loaded swf it gets opened properly but
> for the second time, when i try to open the same swf in the parent
> application from a different location its thrrowing a runtim saying
>
> "only one service locator can be instantiated."
>
> I understand the issue is with cairngorm's IResponder interface and the
> service locator is getting persisted in the application so when i try to
> load the swf again its saying that servicelocator cannot be instantiated for
> the second time or the error like above.
>
> One of the solution is to switch from cairngorm to normal AMF hit.
>
> I dont want to go for the above solution.
>
> Can any one please give some work around or fix for this issue with out
> switching form cairngorm.
>
> Very urgent.. Thanks in advance.
>
>
> Thanks,
> Veeru
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
Thanks,
Vaibhav Seth.
--
You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

Reply via email to