help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Oct file unload?


From: marcimatz
Subject: Oct file unload?
Date: Sun, 8 Dec 2013 12:16:42 -0800 (PST)

Hello,

I prepared an oct file that allows to exchange data with another application
"behind the scene". Simplified, there are 3 functions:

1. startCommunicationThread(...)
2. sendAndReceiveData(...)
3. endCommunicationThread()

Those 3 functions work fine. They are autoloaded in following ways:

octfile = strcat(pwd,"\\communication.oct");
autoload("startCommunicationThread",octfile);
autoload("sendAndReceiveData",octfile);
autoload("endCommunicationThread",octfile);

When I call them from an M-file, this works fine too. However, if the
program flow breaks (because of some error) and endCommunicationThread is
not called, my thread continues to "do its thing". This becomes even more
problematic if I try to call startCommunicationThread again.

Is there a way to unload the oct file? By that I mean remove it from memory?
I tried "clear" the oct file, "clear" the 3 function names, etc. Nothing
helped. The communication thread continues to live. The only option I have
is to quit octave and restart it again. Which is very troublesome.

Thanks for any insight.

Cheers,
Marc




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Oct-file-unload-tp4659927.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]