Here is another problem i have.
I tried to use the getBuddyId() method below, and get a crash.
"... Access violation reading location 0xfeeefef2. "
Why ?
Code: Select all
#pragma once
#include <cegui/CEGUI.h>
namespace CEGUI {
class ImageListboxItem : public CEGUI::ItemEntry
{
protected:
String buddyId;
public:
static const String WidgetTypeName;
ImageListboxItem(const String &type, const String &name);
~ImageListboxItem();
String getBuddyId(){ return buddyId; };
void setBuddyId(const CEGUI::String& newBuddyId){
buddyId = newBuddyId;
}
};
CEGUI_DECLARE_WINDOW_FACTORY(ImageListboxItem)
};