[Qt-creator] Crash while indexing project...
Roberto Raggi
roberto.raggi at trolltech.com
Mon Nov 10 09:26:22 CET 2008
Hi,
Yep, Qt Creator alpha can crash when trying to recover from an error
in a function body. The bug was already reported (e-mail subject:
parser crash(maybe)) and fixed. By the way I'm not sure your code is
correct. I mean the pasting token should not be used at the beginning
of a macro or a after a `.', but just to be sure I will do a double
check later today.
[roberto at macbook ~]$ g++ -E -ansi -xc++ -
#define A(FName,CName,PName) ##CName##Check->setChecked(true);
A(ciao,come,stai)
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
<stdin>:1:30: error: '##' cannot appear at either end of a macro
expansion
Thanks for reporting
ciao robe
On Nov 9, 2008, at 6:34 PM, Schoenberger wrote:
>
> Hi
>
> It seems to be a problem with the macro.
> There are some ## on some places where they should have been removed
> after changing some source.
> But still, no matter if I type something wrong or not, the creator
> should not crash.
>
> As I said, just open the 40 lines of code of the last mail and you
> get the crash.
> It is not the ammount of source lines that crashed it, it was the
> macro.
>
>
> Holger Schönberger
> technical director
> The day has 24 hours, if that does not suffice, I will take the night
>
>
>
> |> -----Original Message-----
> |> From: GreyGeek [mailto:GreyGeek at earthlink.net]
> |> Sent: Saturday, November 08, 2008 6:08 PM
> |> To: Schoenberger; Qt-Creator
> |> Subject: Re: [Qt-creator] Crash while indexing project...
> |>
> |> I opened an app with about 5,000 lines with no problems at all.
> |> It has one major form that uses four tabs with about 25 controls on
> |> each, and three minor forms with a few controls each.
> |> So perhaps the problem lies between 5K and 10K lines?
> |> I am running Linux (Mandriva 2009 PWP with KDE4.1.2) on a Sony
> |> VGN-FW140E/H laptop, 3GB RAM, Dual Core 2.26Ghz CPUs.
> |> GG
> |>
> |> Schoenberger wrote:
> |> > Hi
> |> >
> |> > I have a bug report.
> |> >
> |> > I just installed the creator on Fedora 8 and tested to
> |> compile and run
> |> > a small QT app, which I already had.
> |> >
> |> > Next step was a bigger application (around 10.000 lines).
> |> > The Creator opened the .pro file, then it starts
> |> indexing, uses all
> |> > system reseources (1GB RAM and 512 MB Swap) and crashes then.
> |> >
> |> >
> |> > Holger Schönberger
> |> >
> |> >
> |> >
> |> > _______________________________________________
> |> > Qt-creator mailing list
> |> > Qt-creator at trolltech.com
> |> > http://lists.trolltech.com/mailman/listinfo/qt-creator
> |> >
> |> >
> |>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
More information about the Qt-creator-old
mailing list