weimingtom / agui

Automatically exported from code.google.com/p/agui
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Problem with Example #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?

Using latest source, windows 7, using Visual Studio 2010

Please provide any additional information below.

I am trying to run your example and I am running into a problem on line 157. I 
get "Expression: vector iterator + offset out of range" Below is the part of 
the code that is glitching. I have not even modified the code I just wanted to 
run the example and try and understand it before I begin to use it. 

for(int i = 0; i < 3; ++i)
    {
        ss.str("");
        ss.clear();
        ss << "Sample Radio Button ";
        ss << i;

        rGroup.add(&rButton[i]);
        rButton[i].setAutosizing(true);
        rButton[i].setText(ss.str());
        frame.add(&rButton[i]);
        rButton[i].setLocation(0,30 * i);
        rButton[i].addActionListener(&simpleAL);
    }

Thanks in advance

Original issue reported on code.google.com by drazesw...@gmail.com on 8 Aug 2013 at 7:29

GoogleCodeExporter commented 8 years ago
This is probably due to the font ttf file missing. This can cause errors in 
places with no real error. One of the tricky parts of C++.

Original comment by josh.lar...@gmail.com on 10 Aug 2013 at 2:14