qs

View: New views
2 Messages — Rating Filter:   Alert me  

qs

by Konstantin Kauz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

if  i use in my c++ programm:

 myeval("as = [1 2 3 4 5];");
       
symbol_record *bs =  curr_sym_tab->lookup("as",false,true);

octave_value octResult = bs->variable_value();

Matrix df = octResult.matrix_value();

i get "Speicherzugriffsfehler" / Memory Acces Erro

if i use the above listed code common with:
 
Matrix df2 = octResult.char_matrix_value();;

it does work, it is a bug?

Best Regards,
Konstantin Kauz


_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave

Re: qs

by Jaroslav Hajek-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Jun 30, 2008 at 3:38 PM, Konstantin Kauz
<konstantin.kauz@...> wrote:

> Hello,
>
> if  i use in my c++ programm:
>
>  myeval("as = [1 2 3 4 5];");
>
> symbol_record *bs =  curr_sym_tab->lookup("as",false,true);
>
> octave_value octResult = bs->variable_value();
>
> Matrix df = octResult.matrix_value();
>
> i get "Speicherzugriffsfehler" / Memory Acces Erro
>
> if i use the above listed code common with:
>
> Matrix df2 = octResult.char_matrix_value();;
>
> it does work, it is a bug?


When reporting a bug (or problem you think may be a bug), please try
to provide smallest *complete* code that can be used to reproduce the
bug, so that people can readily confirm your problem and then
investigate, instead of doing wild guesses.

cheers

>
> Best Regards,
> Konstantin Kauz
>
>
> _______________________________________________
> Bug-octave mailing list
> Bug-octave@...
> https://www.cae.wisc.edu/mailman/listinfo/bug-octave
>



--
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave