[C++-sig] boost.python coredump in debug mode..?

Bjorn Pettersen BPettersen at NAREX.com
Tue Oct 29 18:56:17 CET 2002


I'm working through the tutorial introduction, and I'm getting a strange
coredump in a debug build. I'm at the struct World example with a
constructor:

>>> import hello
>>> x = hello.World('hi')
>>> x.greet()
'hi'
>>> hello.World('hi') # if I remove this I don't get a coredump
<hello.World object at 0x0089E748>
>>> x.greet()
[coredump]

The exact message is "Debug Assertion Failed! File: dbgheap.c Line 1044
Expression _CrtIsValidHeapPointer(pUserData)". I'm using msvc6 on winxp
and the release version works fine. Am I doing something wrong?

-- bjorn

Bjorn Pettersen
NAREX Inc.
303.526.4000 ext. 312
303.526.5130 fax
www.narex.com




More information about the Cplusplus-sig mailing list