help-octave
[Top][All Lists]
Advanced

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

Re: Oct file unload?


From: Juan Pablo Carbajal
Subject: Re: Oct file unload?
Date: Sun, 8 Dec 2013 21:55:28 +0100

On Sun, Dec 8, 2013 at 9:16 PM, marcimatz <address@hidden> wrote:
> 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.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

Some time ago I prepared this patch
https://savannah.gnu.org/patch/?func=detailitem&item_id=7888

I do not know if it was applied to the default branch already. I any
case you can try it and see if it works for you.


reply via email to

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