clearing oct files

David L <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <CANyeoMtCZU8OYjfCQLZXfoOL4-s3v3Hab9P4OzYHz5EaANT8fQ@mail.gmail.com>
Hi,

I've just started playing with integrating some C/C++ tools with octave
using oct files. I was wondering if it's possible to have octave pick up a
recompiled .oct file without restarting octave. I've seen different
behavior when trying to do this including a crash like the one in the
closed bug report here:

http://savannah.gnu.org/bugs/?34861

Eg:
warning: library /tmp/foo.oct not reloaded due to existing references
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)

If I remove the .oct file and call it, it says it's undefined and doesn't
crash. If I then copy the new one, it doesn't crash, but it also doesn't
pick up the changes until I exit octave and restart. Is that old bug really
fixed? I'm using 6.2.0.

Thanks,

        David

On a related topic, if the .oct file is a symbolic link and you clear the
function, it behaves just as if the .oct file didn't change when the
destination of the symlink changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.