Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » VectorMap<String,String> = Seg Fault  () 1 Vote
VectorMap<String,String> = Seg Fault [message #28108] Tue, 17 August 2010 07:32 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
I have the following program which I believe should work:


#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	VectorMap<String,String> map;
	map.Put("A", "B");
	map.Put("C", "D");
	map.Put("E", "F");
	
	Vector<String> keys = map.GetKeys();
	for (int i = 0; i < keys.GetCount(); i++)
		Cout() << map.Get(keys[i]) << "\n";
}


however, it fails with the exception:

Assertion failed in /home/jeremy/upp/svn/uppsrc/Core/Vcont.h, line 33
i >= 0 && i < items

Segmentation fault


Any thoughts?

Jeremy
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem. How to convert AttrText to String?
Next Topic: Problem and fix in HexString
Goto Forum:
  


Current Time: Sun Jul 20 15:12:15 CEST 2025

Total time taken to generate the page: 0.07172 seconds