Welcome to the KDE Community Forums, the official forum board for KDE.
You are currently viewing the forums as an unregistered user. Registration allows you to post and discuss topics, receive private messages, vote on ideas, subscribe to topics and many such great features. Registration is a simple process and completely free. So register now and be a part of the community!
You are currently viewing the forums as an unregistered user. Registration allows you to post and discuss topics, receive private messages, vote on ideas, subscribe to topics and many such great features. Registration is a simple process and completely free. So register now and be a part of the community!
Eigen + VS2008 + DebugModus
3 posts • Page 1 of 1
Eigen + VS2008 + DebugModus
Hi,
What I'm trying to do:
Making my code run in Visual Studio 2008 with the compiler options from the "release"-modus and the "debug"-modus.
The "release"-modus works fine.
The "debug"-modus produces the runtime error: UnalignedArrayAssert
(details:
http://eigen.tuxfamily.org/dox/Unaligne ... ssert.html
http://eigen.tuxfamily.org/dox/StructHa ... mbers.html )
But just adding EIGEN_MAKE_ALIGNED_OPERATOR_NEW to the public part of the class does not work.
Which kinda makes sense, because as far as I know, the debugger initialises classes in it's own weird way, maybe overlooking the macro.
Any hints on how to solve this problem? (or which feature to turn of in the debug-modus?)
What I'm trying to do:
Making my code run in Visual Studio 2008 with the compiler options from the "release"-modus and the "debug"-modus.
The "release"-modus works fine.
The "debug"-modus produces the runtime error: UnalignedArrayAssert
(details:
http://eigen.tuxfamily.org/dox/Unaligne ... ssert.html
http://eigen.tuxfamily.org/dox/StructHa ... mbers.html )
But just adding EIGEN_MAKE_ALIGNED_OPERATOR_NEW to the public part of the class does not work.
Which kinda makes sense, because as far as I know, the debugger initialises classes in it's own weird way, maybe overlooking the macro.
Any hints on how to solve this problem? (or which feature to turn of in the debug-modus?)
Re: Eigen + VS2008 + DebugModus
There's no particular feature to turn off in the debug-mode as opposed to the release-mode. The debug-mode uses assertions and just working around them is not good enough, you need to understand them and fix them, otherwise you'll get uncontrolled crashes in release-mode.
If EIGEN_MAKE_ALIGNED_OPERATOR_NEW doesn't do the trick for you, it might be either because the cause of the problem is different (there are 3 other causes for this assertion) or because you're not using this macro at the right place.
If you need more help, paste here
- a complete backtrace of your crash
- the relevant sections of your code, including where you put EIGEN_MAKE_ALIGNED_OPERATOR_NEW.
If EIGEN_MAKE_ALIGNED_OPERATOR_NEW doesn't do the trick for you, it might be either because the cause of the problem is different (there are 3 other causes for this assertion) or because you're not using this macro at the right place.
If you need more help, paste here
- a complete backtrace of your crash
- the relevant sections of your code, including where you put EIGEN_MAKE_ALIGNED_OPERATOR_NEW.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
Have a serious interest in Eigen? Then join the mailing list!
Re: Eigen + VS2008 + DebugModus
Hi,
It works now and it worked fine the first time. (for the ONE class I've implemented it)
The crashes occurred from other classes, that also needed the macro.
But thanks for encouragement to take a second look at the crash site!
It works now and it worked fine the first time. (for the ONE class I've implemented it)
The crashes occurred from other classes, that also needed the macro.

But thanks for encouragement to take a second look at the crash site!
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests

Search
FAQ
Policy
KDE.org
KDE.news
Planet KDE
More 