help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] gsl_histogram_get_range


From: Thomas Weber
Subject: Re: [Help-gsl] gsl_histogram_get_range
Date: Fri, 16 Jun 2006 16:23:14 +0200

Hi, 

Am Donnerstag, den 15.06.2006, 12:10 +0200 schrieb Emiliano Olivieri:
> double lower,upper;
> gsl_histogram_get_range (h,gsl_histogram_max_bin (h),&lower,&upper);
> 
> 
> In this other case, my programs stop with the message: "Bus error"
> 
> double *lower,*upper;
> gsl_histogram_get_range (h,gsl_histogram_max_bin (h),lower,upper);

You have a pointer to a double variable; but no space for it is
allocated.

So, reserving some space for your doubles (malloc()) would be good.

Regards
        Thomas







reply via email to

[Prev in Thread] Current Thread [Next in Thread]