Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  PureMVC Manifold / MultiCore Version / Re: Issue with removeCore on: March 22, 2010, 05:45:47
Thx Cliff  :) . I think i know what to fix now.
Definitely thats the issue which i was trying to avoid since that core itself got few child core directly linked to it so now i need to send a destroy message to all the child cores as well i suppose .
I need to do it anyways for gc to work properly and i to regain the memory.
2  PureMVC Manifold / MultiCore Version / Issue with removeCore on: March 22, 2010, 07:27:31
Hello ,

I am having a problem with removing a core completely , to do so i am using Facade.removeCore(key) ;
then i check Facade.hasCore(key) and it says false . all good till now .

When i recreate the same core at a later point and try instantiating it with the same key .
the instanceMap[key] seems to still contain a Facade object and thus my problem .
I checked the Facade.as and the removeCore should delete the instanceMap[key] so now i can reuse same key but something seems to be wrong ...

Any Help would be great.

Thx.
3  PureMVC Manifold / MultiCore Version / Re: Using Pipes with a different approach - Clarification on: July 06, 2009, 05:52:12
I solved the latter problem i had .. the connections are correct , my problem was in sending the messages .

when i send a message from :  module[Z] To Shell - No message is received.
problem here i was using the wrong pipe to send the messages ..  was using the MODULE_TO_SHELL_PIPE whereas i should have used : CORE_TO_MODULE_PIPE ...

when the children try to send to module[Z] no message received ...
i tried sending onRegister and that didnt work apparently since no accept inputs and outputs was made yet.

4  PureMVC Manifold / MultiCore Version / Re: Using Pipes with a different approach - Clarification on: July 04, 2009, 08:51:34
thx for the reply cliff and trek ..
i am looking into your example trek .. thx...

in case i have a shell where i registered a teeMerge and teeSplit for 2 pipes and in and out pipe as such :
:
junction.registerPipe( PipeAwareModuleConstants.SHELL_TO_MODULE_PIPE,Junction.OUTPUT, new TeeSplit() );
junction.registerPipe( PipeAwareModuleConstants.MODULE_TO_SHELL_PIPE,Junction.INPUT,new TeeMerge() );

and i do the relative connection to modules and thats working well.

But i have  a module[Z] which have its own teeMerge and teeSplit .. :
:
junction.registerPipe( PipeAwareModuleConstants.CORE_TO_MODULE_PIPE,Junction.OUTPUT,new TeeSplit() );
junction.registerPipe( PipeAwareModuleConstants.MODULE_TO_CORE_PIPE,Junction.INPUT,new TeeMerge() );

To connect this module[Z] to the shell i am overriding its ACCEPT_INPUT_PIPE and ACCEPT_OUTPUT_PIPE  :
:
case JunctionMediator.ACCEPT_INPUT_PIPE:
var inputPipe:IPipeFitting = note.getBody() as IPipeFitting;
var coreInFitting: TeeMerge = junction.retrievePipe( PipeAwareModuleConstants.MODULE_TO_CORE_PIPE ) as TeeMerge;
coreInFitting.connectInput( inputPipe );
break;
case JunctionMediator.ACCEPT_OUTPUT_PIPE:
var outputPipe:IPipeFitting = note.getBody() as IPipeFitting;
var coreOutFitting: TeeSplit = junction.retrievePipe( PipeAwareModuleConstants.CORE_TO_MODULE_PIPE ) as TeeSplit;
coreOutFitting.connect( outputPipe );


So far is the latter correct ? ...
when i am sending a message from : shell To module[Z] - message is received.
nevertheless when i send a message from :  module[Z] To Shell - No message is received.

same if this module[Z] send a message to its children modules the children receives the message
( module[Z] To a module connected to module[Z] only - message received )
but when the children try to send to module[Z] no message received ...

No errors popup when i debug ..
5  PureMVC Manifold / MultiCore Version / Using Pipes with a different approach - Clarification on: July 03, 2009, 06:09:20
Hello ,
I have been currently working on an application using the multicore where  pipes is used to handle data transactions between my modules. the simple examples mainly use a shell and module and communication is usually from shell to module and back module to shell...

Trying to do something more .. i have a module which by itself is a shell to other modules that it loads and handle separately  ... and at the same time i want to give some modules to talk to each other apart from the shell..

To do so i created a new junctionmediator  at the module [which is a shell for other modules now] and gave it all handling of communiction with its children modules..  well now i have 2 junctionmediator registered for a module .. and in case i need to add communication between modules i should add a 3rd junctionmediator .. i think i m doing something wrong or understood something not quite well any clarification would be helpful  ..
is the latter correct or it will cause problems ??
i m still working on this so probably it works...  :-\

- And does anyone have an example of using pipe using a different approach other than shellToModule , moduleToshell ... in slideshow for multicore and pipes on puremvc tv a diagrams was shown with different pipe connections .. is there an example on those ..

Thanks in advance  for any  help you can provide ..  :)
Pages: [1]