Fityk lib runtime error help...

27 views
Skip to first unread message

Pascal

unread,
Jun 10, 2010, 1:15:11 PM6/10/10
to fityk-dev
I am using this incredible library under Linux with zero problems. I'm
using it minimally like this:

Fityk *f = new Fityk();
// for loop over w
f->add_point(wavelengths[w], curve[w], sqrt(curve[w]));
f->execute("%gauss = guess Gaussian");
f->execute("fit");

Works great! But under Windows I compile the same source fine, but get
a system crash at f->execute(). The problem occurs within:

parse(str.c_str(), cmdG, space_p);

within parse_and_execute_e in cmd.cpp

I've tried five different versions of the Boost libraries (out of
ignorance) going back in time with each one. Just wondering whether
there was something obvious to look into to try to resolve this before
I prepare a minimal example? My fault finding skills end here :-(

Thanks very much,

Pascal.

Marcin Wojdyr

unread,
Jun 12, 2010, 2:54:32 PM6/12/10
to fity...@googlegroups.com
I can't reproduce it.
I added f->execute() to samples/test_lib.cc (r746), but it seems to work.
Could you try to compile the new samples/test_lib.cc, and if it also crashes,
let me know what compiler do you use.
Marcin

> --
> [fityk-dev mailing list http://groups.google.com/group/fityk-dev?hl=en]

--
Marcin Wojdyr | http://www.unipress.waw.pl/~wojdyr/

Pascal

unread,
Jun 15, 2010, 4:53:58 PM6/15/10
to fityk-dev
Hi Marcin,

I'm using VS2008...I'll try the example, thanks! I'm just rebuilding
the development PC so I'll let you know how I get on...

Pascal.
> > [fityk-dev mailing listhttp://groups.google.com/group/fityk-dev?hl=en]

Pascal

unread,
Jun 21, 2010, 12:17:40 PM6/21/10
to fityk-dev
OK I rebuilt the VS2008 environment - same crash. Switched to mingw
and it works perfectly.

Thanks for the support and a great library, Marcin.

Pascal.

On Jun 12, 11:54 am, Marcin Wojdyr <woj...@gmail.com> wrote:
> > [fityk-dev mailing listhttp://groups.google.com/group/fityk-dev?hl=en]
Reply all
Reply to author
Forward
0 new messages