service is null in command
I'm having a weird problem. I've got 2 commands: 1/ LoadResourcesCommand and 2/ ParseConfigDataCommand
the first one initializes and sets up the use of the loadupmonitor and the 2nd one parses all config data loaded through the loadupmonitor. In both commands I use
[Inject] public var assetsService : AssetLoaderService;
And funnily it does get injected into the first command, but not in the 2nd...? And the AssetLoaderService (singleton) instance certainly doesn't get GC'd, because I refer to it later on. Somehow it isn't injected into ParseConfigDataCommand, but I really haven't got a clue why.
Anybody got any bright ideas what could be going wrong?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Till Schneidere... on 09 Feb, 2010 12:02 PM
That certainly sounds weird.
Can you give us some more information about how you're instantiating
the commands? Are they both bound to events, or are you creating one
of them manually?
Also, can you test if other injections into ParseConfigDataCommand work?
If everything else fails, maybe you could create a reduced test-case
with your proprietary code stripped and attach it to the ticket?
creynders closed this discussion on 24 Oct, 2010 12:56 PM.