Debug Error!
File
c:\projects\boost\libs\numeric\ublas\placement_new.cpp
Line: 63
Run-Time Check Failure #2 - Stack around the variable 'a' was
corrupted.
On 5/16/2009 7:59 AM, Mike Jackson wrote:
So I am going to assume that there is an actual bug in the code. Is it
possible to debug the program with a debugger and get the line of code
that VS is bombing on?
It's definitely the creation of the 1-element UDT array at the same
address as the scalar instance that's causing the runtime check to
trigger:
udt a;
udt* ap = &a;
// Capture placement new offsets for a udt
new (ap) udt;
int new_offset = int (udt::base_pointer - ap);
new (ap) udt [1];
int array_new_offset = int (udt::base_pointer - ap);
If I comment out the line that reads 'new (ap) udt[1]', the assertion
doesn't trigger.
_______________________________________________
Boost-cmake mailing list
Boost-cmake@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-cmake