Hi, i change it for qStrings and it works in PC but when i compile in the mobile it crash:
int comparator(const void *a, const void *b)
{
qDebug()<<"1";
QString aaa
(const_cast<char
*>
(reinterpret_cast<const
char*>
(a
)));
QString bbb
(const_cast<char
*>
(reinterpret_cast<const
char*>
(b
)));
qDebug()<<"2";
for (int i = 0; i < 6; ++i) {
if (aaa.at(i).toAscii() != bbb.at(i).toAscii()) {
// qDebug()<<"diference1:"<<aaa.at(i).toAscii() - bbb.at(i).toAscii();
return aaa.at(i).toAscii() - bbb.at(i).toAscii();
//return aa[i] - bb[i];
}
}
return 0;
}
int comparator(const void *a, const void *b)
{
qDebug()<<"1";
QString aaa(const_cast<char*>(reinterpret_cast<const char*>(a)));
QString bbb(const_cast<char*>(reinterpret_cast<const char*>(b)));
qDebug()<<"2";
for (int i = 0; i < 6; ++i) {
if (aaa.at(i).toAscii() != bbb.at(i).toAscii()) {
// qDebug()<<"diference1:"<<aaa.at(i).toAscii() - bbb.at(i).toAscii();
return aaa.at(i).toAscii() - bbb.at(i).toAscii();
//return aa[i] - bb[i];
}
}
return 0;
}
To copy to clipboard, switch view to plain text mode
Executable file: 9064 2010-10-25T11:55:40 C:\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb \meoKeyMap.exe
Package: 9332 2010-10-25T11:55:42 C:\Users\Ze\Documents\Qt\meoKeyMap\meoKeyMap.sis
Deploying application to 'Nokia E51 USB (COM6)'...
Copying installation file...
Installing application...
Starting application...
Application running with pid 1103.
[Qt Message] 1
Process 1103, thread 1104 stopped at 0x7b9e1644: A data abort exception has occurred.
Finished.
A lot of people ask me for a backtrace, do you know how can i get it using qt and the debugger?!
Bookmarks