diff options
author | Franz Zotter <fzotter@users.sourceforge.net> | 2006-03-25 10:53:13 +0000 |
---|---|---|
committer | Franz Zotter <fzotter@users.sourceforge.net> | 2006-03-25 10:53:13 +0000 |
commit | 47979e4af5ff135984a22d5ecb6ef7acb69f6f0f (patch) | |
tree | 5f257186a91ef7fe04622a7bac090c56b68cadc5 /pdoctave_send.c | |
parent | 01dc32c7fb1c4d5ce0022b3b77ceba4cc1341e58 (diff) |
objects cannot be created when pdoctave is not present
svn path=/trunk/externals/iem/pdoctave/; revision=4765
Diffstat (limited to 'pdoctave_send.c')
-rw-r--r-- | pdoctave_send.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pdoctave_send.c b/pdoctave_send.c index b6a38d4..8492120 100644 --- a/pdoctave_send.c +++ b/pdoctave_send.c @@ -24,14 +24,18 @@ static void *newPDOctaveSend (t_symbol *s, int argc, t_atom *argv) t_symbol *name; if (getPDOctaveInstances()<1) { - post("Octave not running, insert a 'pdoctave' object!!"); + error("Octave not running, insert a 'pdoctave' object!!"); + return 0; } if (argc>0) name = atom_getsymbol(argv); else name = gensym ("pdm1"); - pdoctsnd_obj->sdf = newSharedDataFrame (); + if ((pdoctsnd_obj->sdf = newSharedDataFrame ())==0) { + error("pdoctave_send: failed to get shared memory"); + return 0; + } pdoctsnd_obj->data = 0; pdoctsnd_obj->oct_name = name->s_name; |