|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-09-30 11:20:34
Assuming you're using the IDE, check to see that runtime typing is enabled
on the properties/C++ page of the project.
Robert Ramey
Paul Giaccone wrote:
> Does the demo program demo.cpp
> <http://boost.org/libs/serialization/example/demo.cpp> have a bug in
> it?
>
> When I run it, it crashes at the line that does the actual
> serialisation:
>
> oa << s;
>
> in save_schedule(), reporting the error:
>
> Unhandled exception at 0x7c59bbf3 in SerializationDemo.exe:
> Microsoft C++ exception: __non_rtti_object @ 0x0012ee98
>
> at line 260 of dbgheap.c:
>
> pvBlk = _heap_alloc_dbg(nSize, nBlockUse, szFileName, nLine);
>
> The call stack is
>
>> SerializationDemo.exe!_nh_malloc_dbg(unsigned int nSize=33, int
> nhFlag=1240696, int nBlockUse=5007849, const char *
> szFileName=0xe06d7363, int nLine=1) Line 260 + 0x15 C
> SerializationDemo.exe!malloc(unsigned int nSize=0) Line 139 +
> 0x15 C
>
> I'm compiling in Windows 2000 using Visual .NET, if this helps.
>
> Paul Giaccone
>
> PS: I modified the filename so it is correct for Windows (using
> backslashes) - it might be a good idea to use a boost::path here to
> make the code portable.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net