[Qt-interest] Qt with x64 computer

P B chose29 at hotmail.com
Thu Jan 8 15:01:06 CET 2009



Hi Ian,
 
I'm confused as to where the error stands in my code, I traced it up to this. The application crashes at loadParameters(...) in the following code
 
______________________________________________________
   loadParamFile(const char *filename)
   {
     QString loadfile = QString(filename);
     if(!loadfile.isEmpty())
     {
          QDir::setCurrent(QFileInfo(loadfile).absolutePath());
          reg->loadParameters(loadfile.toStdString().c_str());
______________________________________________________
 
 
 
 
The function loadParameters executes OK, the file is read and my parameters take on the values in the file. then after when doing F11 it seems to go into: 
 ______________________________________________________
__CLR_OR_THIS_CALL ~basic_string()
{ // destroy the string
_Tidy(true);
}
______________________________________________________
 
 
and crash at _Tidy(true). It brings up a failure and stops at qhash.h in function :
 
Q_OUTOFLINE_TEMPLATE typename QHash<Key, T>::Node **QHash<Key, T>::findNode(const Key &akey,
uint *ahp) const
 
 
at line: 
 
while (*node != e && !(*node)->same_key(h, akey))
 
 
Since the file is read I conclude the string is ok, I wonder what could cause this. It is obviously due to my code, I wonder if it is related to Qt now or is it a string problem?!? Why would the crash end up in Qhash?
 
Thanks again for helping, it's very appreciated,
 
Regards,
Pascale
 
> Date: Thu, 8 Jan 2009 12:29:02 +0000> From: Ian.Thomson at iongeo.com> To: qt-interest at trolltech.com> Subject: Re: [Qt-interest] Qt with x64 computer> > Hi,> > This is probably caused by a problem in your code. Without seeing your > code or, even better, a small example which demonstrates your problem, I > doubt anyone will be able to help.> > Is it intentional that your hash type is a pointer to a pointer to a > QObject?> > Cheers,> Ian.> > P B wrote:> > Hi André,> > > > I am completely new to compiling and using Qt. So since there's no > > problem with x64, I'm obviously doing something wrong. Do you have an > > idea what an error in Qhash could indicate? The stack indicates this > > when stopping in debug mode: QtCored4.dll!QHash<QObject *,QObject * > > *>::findNode(QObject * const & akey=, unsigned int * ahp=0x0240a058).> > > > > > Thanks again for helping!> > > > Regards,> > Pascale> > > > > Date: Thu, 8 Jan 2009 13:04:18 +0100> > > From: apoenitz at trolltech.com> > > To: chose29 at hotmail.com> > > Subject: Re: [Qt-interest] Qt with x64 computer> > >> > > P B wrote:> > > > Hi,> > > >> > > > I am new to Qt, using an open source version. [...]> > > > Is there still a problem with Qt and x64? The debugger stops at :> > >> > > [Not sure what the "still" in the sentence means, anyway:]> > >> > > A fairly large portion of both Qt users and Qt developers use> > > Qt on 64bit machines on Windows and Unix, so there does not> > > seem to be a general "problem with Qt and x64".> > >> > > Regards,> > > Andre'> > > > > > ------------------------------------------------------------------------> > > > > > ------------------------------------------------------------------------> > > > _______________________________________________> > Qt-interest mailing list> > Qt-interest at trolltech.com> > http://lists.trolltech.com/mailman/listinfo/qt-interest> > This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately notify the sender and delete the original.> > > > _______________________________________________> Qt-interest mailing list> Qt-interest at trolltech.com> http://lists.trolltech.com/mailman/listinfo/qt-interest
_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090108/570c493f/attachment.html 


More information about the Qt-interest-old mailing list