Discussion:
Program abort at canonical()
(too old to reply)
Andy
2017-01-19 06:16:58 UTC
Permalink
I have:
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>


boostPath = canonical(boostPath);

While I debug it is OK, but when I run debug or release x64 program
standalone from cmd - it abort at canonical without any info.
PB
2017-01-19 10:15:52 UTC
Permalink
Post by Andy
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
boostPath = canonical(boostPath);
While I debug it is OK, but when I run debug or release x64 program
standalone from cmd - it abort at canonical without any info.
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
http://sscce.org/

Is canonical() throwing?
Andy
2017-01-19 10:50:25 UTC
Permalink
Is abort without any information to console
Boost not need DLL's?
Daniel Anderson
2017-01-19 13:52:05 UTC
Permalink
I tried compiling the sample you posted.

compiler complain that boostPath is not defined!

maybe you should declare boostPath in your sample code ?
Post by Andy
Is abort without any information to console
Boost not need DLL's?
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
--
Daniel
*L'action accÚde à la perfection quand, bien que vivant, vous êtes déjà
mort*
*Bunan*
Andy
2017-01-19 17:55:37 UTC
Permalink
I send only small piece of code. This program is compiled but is runtime
error.
Gavin Lambert
2017-01-19 22:51:43 UTC
Permalink
Post by Andy
I send only small piece of code. This program is compiled but is runtime
error.
1. What is the value of the parameter you are passing to it?

2. Try wrapping it in a try/catch and see if it is throwing an
exception. The type and message of that exception may give you a hint.
Daniel Anderson
2017-01-20 01:19:56 UTC
Permalink
Hi Andy,

the 3 lines you posted are not a program.

without a program, and also without parameters it is very hard to provide
help.

I can try to guess what you are trying to do, but I'm very bad at guessing.

what is the type of boostPath ?
what is the value of boostPath ?

are the first questions that pop to mind!
Post by Andy
I send only small piece of code. This program is compiled but is runtime
error.
_______________________________________________
Boost-users mailing list
http://lists.boost.org/mailman/listinfo.cgi/boost-users
--
Daniel
*L'action accÚde à la perfection quand, bien que vivant, vous êtes déjà
mort*
*Bunan*
Loading...