[Qt-creator] Problem with debug

NOVAimages tg at novaimages.de
Tue Jun 9 12:25:39 CEST 2009


Well sorry but
that IS wrong.
You cannot call a function from a class that is not existing.
You have no instance of the class so the debuger NEEDS to stop here.
There is only a pointer to QHostadress but not an instance.
But you try to call a function from it.
Cannot work

Patric schrieb:
> Yes ofcourse, I'm sorry, I was just too excited. I removed 90% of my code to 
> understand that this is the reason.
>
> I'm using Windows XP.
>
> Here is the minimal code :
>
> #include <QtGui/QApplication>
> #include "maintestwindow.h"
>
> #include <QHostAddress>
>
>
>
>
> int main(int argc, char *argv[])
>
> {
>
>     QApplication a(argc, argv);
>
>     MainTestWindow w;
>
>     w.show();
>
>     QHostAddress *address = 0;
>
>     QString testString = address->toString();
>
> }
>
>
>
> Just try to debug it.
>
>
>
> Best regards,
>
> Patric
>
>
> ----- Original Message ----- 
> From: "Andre Poenitz" <andre.poenitz at mathematik.tu-chemnitz.de>
> To: <qt-creator at trolltech.com>
> Sent: Tuesday, June 09, 2009 1:47 AM
> Subject: Re: [Qt-creator] Problem with debug
>
>
>   
>> On Tue, Jun 09, 2009 at 12:32:08AM +0300, Patric wrote:
>>     
>>> Guys.... you should know, that if you are debugging code and reach NULL
>>> POINTER !!!, (now read carefully)....
>>>
>>> THE DEBUGGER WILL STOP !
>>>       
>> Stop shouting.
>>
>> You still did not post complete compilable minimal code. At a very
>> minimum this would have a 'main' function somewhere. You did not
>> even bother to tell us what kind of platform you are running.
>>
>>     
>>> BTW: That is bug. The thing with the null pointer and the debugger.
>>>       
>> Works here. I just checked.
>>
>> Andre'
>> _______________________________________________
>> Qt-creator mailing list
>> Qt-creator at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>>
>> __________ Information from ESET NOD32 Antivirus, version of virus 
>> signature database 4098 (20090522) __________
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>>
>>     
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4098 (20090522) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>   


-- 
-------------------
Dipl. Inf.(FH) Thomas Ganshorn
NOVAimages
software media&more




More information about the Qt-creator-old mailing list