There is a race condition during startup of EMC. Assume an Axis setup:

- there is an OPEN_FILE=foo.ngc statement
- foo.ngc refers to motion.xxx-in pin and its value impacts control flow or 
position
- the motion.xxx-in pin is linked to a gladevcp pin through a 
POSTGUI_HALFILE=foo.hal

The race happens as follows:
- HAL starts up without POSTGUI_HALFILE executed yet because that is handled in 
Axis late in the game
- milltask starts up, starts interpreter which executes the OPEN_FILE while 
motion.xxx-in isnt linked yet to a signal
- eventually Axis starts and executes POSTGUI_HALFILE, linking motion.xxx-in 
and giving it is actual value

This is benign insofar as only preview is affected afaict; a reload or actual 
execution will see the proper value of motion.xxx-in and do the right thing.

My approach to fixing this would be to delay parsing of the OPEN_FILE in 
milltask until the gladevcp component has been set up. What I dont like about 
it is that it likely needs an inifile option to prevent this.

Any other ideas? 

barring those, I'll implement the delay option for milltask

-Michael




------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to