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  |
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
|
|
|
 |
|
VectorMap<String,String> = Seg Fault
By: jeremy_c on Tue, 17 August 2010 07:32
|
 |
|
Re: VectorMap<String,String> = Seg Fault
By: koldo on Tue, 17 August 2010 08:31
|
 |
|
Re: VectorMap<String,String> = Seg Fault
By: jeremy_c on Tue, 17 August 2010 16:25
|
 |
|
Re: VectorMap<String,String> = Seg Fault
|
 |
|
Re: VectorMap<String,String> = Seg Fault
By: koldo on Tue, 17 August 2010 21:01
|
 |
|
Re: VectorMap<String,String> = Seg Fault
By: mirek on Wed, 01 September 2010 08:28
|
Goto Forum:
Current Time: Sun Jul 20 15:15:46 CEST 2025
Total time taken to generate the page: 0.03641 seconds
|