--- In [email protected], "markflex2007" <markflex2...@...>
wrote:
>
> Hi,
> 
> I build a Flex Module with cairngorm ,I load the module in main
> application and I need to load it many times.
> 
> it works fine when I load the module at first time but I get error
> when I load it again.
> 
> The error message is : "Only one ServiceLocator instance can be
> instantiated"
> 
> Do you have a idea to fix this.Thanks for help.
> 
> 
> Mark
>

The ServiceLocator is a singleton as you probably already know, and if
by any chance you have an instance in the shell app and another one in
the module you'll get that error. You can put your service instance in
the shell ServiceLocator and inject it into module when when the Ready
event fires. 

If what i said is not the case with your app, then post some code and
I'll have a look...

Cheers,
Claudiu

Reply via email to