[Qt-interest] C++ + QT vs C#

Pascal Patry iscy at invalidip.com
Fri Mar 20 18:25:17 CET 2009


On March 20, 2009 12:31:23 pm Sebastien Fricker wrote:
> Le 20-03-2009, Philippe Fremy <phil at freehackers.org> a écrit :
> > Ok I missed the point indeed, your post sounded like he did not care
> > about memory consumption at all.
> >
> > Still, I would be surprise if there is no way to trigger garbage
> > collection, or use an optimised structure for this, that does not
> > involve keeping all the lines in memory.
>
> My experience concerning the garbage collection is that you can call
> GC.Collect() but it has not real effect as long as you CPU is
> intensitively used. The garbage collection is running in a thread in
> background, and you cannot force the collection. This was my experience
> on .NET CF, and the solution was to put the priority of the main thread
> lower than normal and call GC.Collect()...
> Well, you can image what I'm thinking about the M$ garbage collection
> API... You can put it into a bin.
> As comparaison: ADA -> it was possible to free pointer manually or
> letting the garbage collection performing the job. ADA is 20 year old,
> C# about 5, what a regression!

Garbage collection... it has been created to give a hand to developers... but the result 
is clean code becoming a real mess.







More information about the Qt-interest-old mailing list