Apr 2, 2012 at 1:41pm UTC
Hi i am using multimap for inserting the values, the code which i have written seems to be working fine in AIX, but when i tried to run the same code i am getting SIGSEGV error in runtime.
The declartion in .h file
typedef multimap<string, CASEvent> EVENTSMAP;
typedef multimap<string, CASEvent>::iterator mapIterator;
typedef pair<multimap<string, CASEvent>::iterator, multimap<string, CASEvent*>::iterator> retMap;
EVENTSMAP m_mmapEvents; // Events mapped by type
EVENTSMAP m_mmapPendingEvents; // Pending events mapped by type
and This is how i am inserting values into the multimap
bool status = true;
CASEvent* startEvent; // everyone gets a default start
status = startEvent->Initialize(pXMLObject, (CASXMLNode *)NULL, pNameValueMap, pszMapPrefix);
if (status)
{
char* strTemp = startEvent.Type();
ASGetLogWriter()->WriteDebugLog((char *)"Mandatory %s event initialized", (char *)startEvent.Type());
m_mmapEvents.insert(make_pair(startEvent.Type(), startEvent) );
I am struck here please help me out here