Hi, i change it for qStrings and it works in PC but when i compile in the mobile it crash:

Qt Code:
  1. int comparator(const void *a, const void *b)
  2. {
  3.  
  4. qDebug()<<"1";
  5. QString aaa(const_cast<char*>(reinterpret_cast<const char*>(a)));
  6. QString bbb(const_cast<char*>(reinterpret_cast<const char*>(b)));
  7. qDebug()<<"2";
  8.  
  9. for (int i = 0; i < 6; ++i) {
  10. if (aaa.at(i).toAscii() != bbb.at(i).toAscii()) {
  11. // qDebug()<<"diference1:"<<aaa.at(i).toAscii() - bbb.at(i).toAscii();
  12. return aaa.at(i).toAscii() - bbb.at(i).toAscii();
  13. //return aa[i] - bb[i];
  14. }
  15. }
  16.  
  17. return 0;
  18. }
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?!