ERROR: list iterator not derefencable
From: Andreas Petermann <andreas.petermann@xxxxxxx>
Date: Mon, 14 Dec 2009 13:03:15 +0100 (CET)
Hi list,

I am very new to gloox and possibly I have something forgotten in my code. I have two threads for my gloox app. [1] One calls the blocking connect() function and the other [1] is sending stanzas... When [1] closes the connection (calls disconnect()) I get sometimes the following error* list iterator not derefencable* in StanzaExtensionFactory::removeExtension(...). What is the Problem here?

The call stack is as follows:
gloox 1.0.dll!std::list<gloox::StanzaExtension *,std::allocator<gloox::StanzaExtension *> >::_Const_iterator<1>::operator*() Zeile 218 + 0x17 Bytes C++ gloox 1.0.dll!std::list<gloox::StanzaExtension *,std::allocator<gloox::StanzaExtension *> >::_Iterator<1>::operator*() Zeile 395 C++ gloox 1.0.dll!gloox::StanzaExtensionFactory::removeExtension(int ext=0x00000016) Zeile 58 + 0x8 Bytes C++ gloox 1.0.dll!gloox::ClientBase::removeStanzaExtension(int ext=0x00000016) Zeile 834 C++ gloox 1.0.dll!gloox::RosterManager::~RosterManager() Zeile 133 C++ > gloox 1.0.dll!gloox::RosterManager::`vector deleting destructor'() + 0x69 Bytes C++
gloox 1.0.dll!gloox::Client::~Client()  Zeile 130 + 0x3a Bytes    C++
xmpp-gloox.exe!gloox::Client::`scalar deleting destructor'() + 0x2e Bytes C++
xmpp-gloox.exe!SFBAdapter::start()  Zeile 88 + 0x37 Bytes    C++
xmpp-gloox.exe!XMPPThread(void * sfbAdapter=0x004f6db8)  Zeile 135    C++
pthreadVC2.dll!10001e05() msvcrt.dll!75d01287() msvcrt.dll!75d01328() kernel32.dll!75353677() ntdll.dll!77289d72() ntdll.dll!77289d45()
I am developing under Windows 7 64bit and Visual C++ 2008 Express.

Thanks for help and with best regards
Andreas

--
Dipl.-Ing.
Andreas Petermann

Otto-von-Guericke-Universität Magdeburg
SFB/Transregio 62
G02-319
Universitätsplatz 2
39106 Magdeburg

Telefon: 0391 67-12415
www.ovgu.de