-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/26/2012 7:40 PM, andy pugh wrote:
> This is a strange question, but please bear with me. I want to
> write a hal realtime component that only runs init code. (I have an
> application where being in kernel space with an active rtapi and
> the hm2 drivers loaded makes the task in hand much easier than
> otherwise)
> 
> However, after running the rtapi_app_main loop I want to quit, 
> cleanly, with no errors, and in such a away that I can loadrt the
> same module again without an error.

I'm not (yet) a HAL expert, but I don't think the module can unload
itself from what I've seen, so something _else_ will likely have to
explicitly unload it.

Perhaps you could write your code to run once then set an "I'm Done"
output pin/parameter that is monitored for existence & state by a
user-mode HAL component to dynamically unload the real-time module
once it's finished?

- -- 
Charles Steinkuehler
char...@steinkuehler.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlCLMdUACgkQLywbqEHdNFxm8wCglXzqOw645Y+AodaGzFsJs1+R
Wq8An20ghg3B3g67roeFyaSVdEJgoHH/
=Cns6
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to