Michael Ramati wrote:
> gsl_function f;
> f.params = params;
> typedef double (*function_t)(double, void *);
> f.function = (function_t)GetProcAddress(library, name);
> s = gsl_root_fsolver_alloc(gsl_root_fsolver_brent);
>
> // SO FAR SO GOOD :-) that is, memory is OK!
>
> gsl_root_fsolver_set (s, f, 0, 1000);
This *isn't a viable test case -- I can't compile and verify it,
because you give me no clue as to what `library' and `name' are.
Nonetheless, the example given in my GSL Reference Manual suggests
that this final statement should be
gsl_root_fsolver_set (s, &f, 0, 1000);
^
> // AccessViolationException :-( please HELP!
Probably because you passed the `f' parameter by value, when you
should have passed it by reference, causing `gsl_root_fsolver_set'
to attempt to access memory outside its valid address bounds.
HTH,
Keith.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users