[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Segmentation fault running .oct file
From: |
Olaf Till |
Subject: |
Re: Segmentation fault running .oct file |
Date: |
Mon, 14 Mar 2016 16:23:32 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Mar 14, 2016 at 02:30:57PM +0100, Andreas Weber wrote:
> Am 14.03.2016 um 13:19 schrieb Vision:
> > I'm using following C++ code in my .oct file, I receive the correct value
> > via cout, but I get segmentation error after. my C++ code has no input or
> > output args (just for testing).
> >
> > //code
> > #include "snap7.h"
> > #include <iostream>
> > #include <octave/oct.h>
> >
> > DEFUN_DLD(testread, , ,
> > "test reading PLC")
> >
> > {
> > -- code to read data
> > cout << "value is " << value << '\n';
> > }
> > //end code
> >
> > What do I need to correct?
> > Thank you!
>
> Do you really think this could help anyone to find the bug in your code?
> You should really create a little example and how you build and call it.
Principally right, but in this case I think this could be a sign of a
forgotten 'return octave_value ();' or similar at the end.
Olaf
--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net
signature.asc
Description: Digital signature