It is currently Wed Feb 08, 2012 11:33 pm

All times are UTC



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.





 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: OMReactive in a DLL
PostPosted: 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?


Offline
 Profile  
 
 Post subject: Re: OMReactive in a DLL
PostPosted: 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


Offline
 Profile  
 
 Post subject: Re: OMReactive in a DLL
PostPosted: 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?


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:


suspicion-preferred