On Wed, Jan 7, 2009 at 8:19 PM, David <dfket...@gmail.com> wrote:
> Thanks, that's exactly the behaviour I wanted! For example, I had a global
> variable for the default sample rate (44100 samples/sec.), but I wanted the
> user to be able to override it if desired.
>
> By the way, I'm using the pre-compiled binary version for Windows from
> Sourceforge (v3.0.3) under Windows XP sp 2, and when I type in 'clear all',
> Octave crashes with a message about an invalid memory reference or something
> (the dialogue box disappears before I can copy down the message). Has anyone
> else noticed this?

This is a known problem. This problem is usually due to internal octave
types defined in oct-file: when the oct-file gets unloaded (due to "clear"
call), some C++ objects might get their virtual table pointing to garbage
memory. This typically happen when there exist some global variables
of that internal octave type. Examples of such usage are the package that
are based on SWIG: database, ftp and ann. Check if those packages are
loaded using "pkg list".

To confirm this explanation, try to do a "clear global" first.

Michael.

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to