Application is fully functional only on my laptop, and on other computers it fails with part of its functionality.
It starts on every computer (windows 64- and 32- bit), and some parts of it can be executed, but problem is the main part.
I suspect problem is here, within sorting elements of QList.
for(events_it = eventi.begin(); events_it!=eventi.end(); events_it++) {
temp_event = *events_it;
//if type==0, we access size of the event above, and set it to this event
if(temp_event->getType() == 0) {
Event *temp_event2;
events_it2 = events_it;
events_it2--;
temp_event2 = *events_it2;
long s = temp_event2->getSize();
temp_event->setSize(s);
}
}
for(events_it = eventi.begin(); events_it!=eventi.end(); events_it++) {
temp_event = *events_it;
//if type==0, we access size of the event above, and set it to this event
if(temp_event->getType() == 0) {
Event *temp_event2;
events_it2 = events_it;
events_it2--;
temp_event2 = *events_it2;
long s = temp_event2->getSize();
temp_event->setSize(s);
}
}
To copy to clipboard, switch view to plain text mode
These are iterators i use:
QList<Event*>::iterator events_it;
QList<Event*>::iterator events_it2;
QList<Event*>::iterator events_it;
QList<Event*>::iterator events_it2;
To copy to clipboard, switch view to plain text mode
This is list i use:
QList<Event*> eventi;
QList<Event*> eventi;
To copy to clipboard, switch view to plain text mode
Object Event, which is inside QList:
class Event
{
public:
// Constructors
Event(long a, long s, long t,short tip);
Event(long a, long t, short tip);
private:
long address;
long size;
long time;
short type;
};
class Event
{
public:
// Constructors
Event(long a, long s, long t,short tip);
Event(long a, long t, short tip);
private:
long address;
long size;
long time;
short type;
};
To copy to clipboard, switch view to plain text mode
Application is written under Windows 7 Professional (64-bit).
Build settings:
buildsettings.jpg
Bookmarks