[Qt-interest] QString from char* [] ?

Aaron Lewis the.warl0ck.1989 at gmail.com
Sat Oct 2 13:00:08 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, Thiago
>
> Can you post the backtrace of the crash and the valgrind log of it?
QString is
> crashing because some pointer is invalid, but we don't know which.

0    QString::fromLatin1_helper(char const*, int) 
/usr/lib/qt4/libQtCore.so.4    0    0xb72784a0 
1    QString::fromAscii_helper(char const*, int) 
/usr/lib/qt4/libQtCore.so.4    0    0xb727e754 
2    QString::QString(char const*)        0    0x0804b813 
3    Astrolog32ToolHelper::initPlanets()        0    0x0804b466 
4    Astrolog32ToolHelper::AsToolHelper(QWidget*)        0 
0x0804b3e1 
5    main        0    0x0804b1d5 

I tried to use loops dumping arrays , no problem with `cout' at all.

What do you think this problem could be ? should i post all of code of
that function ( initPlanets ) ?

>
> PS: neither the sun nor the moon are planets...
Oops , i was supposed to use a array called star instead , oh , thanks
for it ;-)

- -- 
Best Regards,
Aaron Lewis - PGP: 0xDFE6C29E
Key Server: http://keyserver.veridis.com
Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMpxC4AAoJECSSp9Df5sKechMP/jesLZreAB+VsjP7vrWVqrJy
8DOMZ0ecbrJkUiOMyl3a38McX51DIi0UK6odp7omIwaZYUnKBlrXef3nsJ2voxbD
ckp89Omw+ORLm0JIylnD7QrX88F8lXvSTfQcF/DltJbX5CRaVa/BO2EQLfGd0cLT
veVXpPc8Z1+AfdWhLVqD/fM/iiHGM396T1NzSG+fho9ddkuy/Qr4SyLGr/oO1+qL
bBC/hfRAXCeH9meFG4Qc5DzAwC26lQILPiimqk+A0dy+XiCYqmwJWI4mfXSgCuEN
FasLOruKWEI98GabIUxfkE1585HzMGzkKAchi46OJUcTs37tvhdxe8NiHR137TKk
uSvVcTW9xd6tL6LvqUbq8xO+/O6Nusv7MgXXfXanGErSqok/vsfMJsR1hfzzmkLW
2H41EqqEdALA6OuUu/FoJHpeE8W+ccGyiagWebYwGY6P9W3QFcsOLIlupIyetW1J
b5HCelU/lTwVMSvKQgf7UuzPuvGBTDWXhhDCa1evUVOvKUoeuNjWHGLmtrGuc+EE
FPtkU95a11szFUai5Z8Fm4Y5eNN8JM2DnwOjOZ7KISzmo0dGV4xYD19kx0X06yZ0
CULbzOONxp4mFmorxVpHO7NnZsgS63byTYzRzQfCwDahyEkZurLZYNCkHgc32gZf
MihT50Mnb0O2JajvLSNB
=JZya
-----END PGP SIGNATURE-----




More information about the Qt-interest-old mailing list