|
It is currently Wed Feb 08, 2012 11:33 pm
|
View unanswered posts | View active topics
| Welcome |
|
Welcome to RHAPSODY4YOU
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today. |
 |
|
 |
|
| Author |
Message |
|
bitblit
|
Post subject: OMReactive in a DLL Posted: Mon Nov 09, 2009 8:11 pm |
Joined: Wed Dec 10, 2008 10:51 pm Posts: 138
|
|
I have a model that works as expected when I compile everything as a monolithic build. But when I pull a piece of the model out as a library, it does not function correctly. When I make it a static library, it works, though I get name collisions when I try to use it with a different framework. When I make it a dll, it works, but the state machine doesn't actually process events. Or at least, it doesn't seem to process the first null transition. I call startBehavior manually. That executes the initial root state, but it does not follow the null transition. I suspect that a thread that is normally supposed to process the event queue is not started. No errors (compile, link, or runtime) occur. It just doesn't do any of my state transitions. Any ideas?
|
|
|
|
 |
|
Christian
|
Post subject: Re: OMReactive in a DLL Posted: Fri Nov 13, 2009 8:15 am |
Joined: Tue Jul 14, 2009 9:21 am Posts: 22 Location: Germany
|
|
Hi bitblit,
I don't get what you're actually trying to do... And what do you mean by "different framework"?
Regarding your statechart problem: statecharts only work when the OXF is running. So you have to start the oxf somehow by calling first OXF::initialize() and then OXF::start(). This will start (as far as I know) two threads: one for the main event processing (necessary for all non-active statecharts) and a timer thread (for generating timer events).
Regards, Christian
|
|
|
|
 |
|
shanz
|
Post subject: Re: OMReactive in a DLL Posted: Tue Feb 23, 2010 3:57 pm |
Joined: Wed May 07, 2008 3:50 pm Posts: 148 Location: Horsham, W Sussex, England
|
|
Can the second thread (the Timer thread) be turned off/prevented from starting? If you use statecharts but never use timeouts (tm()'s), is this possible?
|
|
|
|
 |
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|