C++ error when trying to delete TypeList*

1 view
Skip to first unread message

Li yang Ku

unread,
Jul 26, 2013, 12:41:55 PM7/26/13
to dex...@googlegroups.com
Hi group,

When I try to test the C++ example on page 27 in the DexUserManual I got some errors when I keep delete TypeList and delete TypeListIterator.

I got a compile error if I keep delete tlistIt:

Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall dex::gdb::TypeListIterator::~TypeListIterator(void)" (__imp_??1TypeListIterator@gdb@dex@@QAE@XZ) referenced in function "public: void * __thiscall dex::gdb::TypeListIterator::`scalar deleting destructor'(unsigned int)"

And a run time error if I keep delete tlist:

Debug Assertion Failed! Expression: _BLOCK_TYPE_IS_VALID


If I remove all the delete on TypeListIterator and TypeList it runs correctly.
I am using Microsoft Visual Studio 2012 express and dexcpp-4.8.1. 
I guess that the destructor might not be implemented correctly. Does anyone have the same problem?
Thanks,

Leon



dex...@gmail.com

unread,
Jul 31, 2013, 7:43:19 AM7/31/13
to dex...@googlegroups.com
Hello Leon,

We have been looking through your problem, and it seems it may be a version incompatibility. Please could you send to damaris(at)sparsity-tehcnologies.com your compiler (well, that is MSVisual Studio 2012, isn't it?) and Windows version? We will give you the c++ API compiled for your environment. 

Thanks and sorry for the incovenience!

DEX team

Li yang Ku

unread,
Aug 6, 2013, 1:00:04 PM8/6/13
to dex...@googlegroups.com
Yes, I am using MSVisual Studio 2012 with windows 7. Thanks a lot for helping.

Best,
Leon
Reply all
Reply to author
Forward
0 new messages