Re: [Interest] Qt5 headers not found and autocomplete doesn't work

2012-08-20 Thread Ramakanthreddy_Kesireddy
Could you please let me know how can we configure Qt 2.5.2 for the beta snapshots http://releases.qt-project.org/qt5.0/beta-snapshots/latest/ Your help in this is greatly appreciated. Thanks and Regards, Ramakanth From: interest-bounces+ramakanthreddy_kesireddy=mahindrasatyam@qt-project.or

Re: [Interest] memory fragmentation?

2012-08-20 Thread Tony Rietwyk
Hi Everybody, I come from a Delphi background. A while ago the FastMM memory allocator was adopted by the compiler team because it gave very good results for small allocations. It's not quite SLAB - it only looks at the size, not the type of object, since all Delphi objects are initialised t

Re: [Interest] memory fragmentation?

2012-08-20 Thread Alex Malyushytskyy
> That happens quite often. For example, Intel's compiler for 32-bit is a 32-bit > application. When linking a moderately-sized library (like QtGui) with link- > time optimisation, it requires more than 3 GB of working set. That means the > process never finishes. Yes, but it still work if you rem

Re: [Interest] memory fragmentation?

2012-08-20 Thread John Weeks
On 20-Aug-2012, at 4:20 PM, Thiago Macieira wrote: > In any case, if the application needs memory and can't get it, what do you > suggest it do? You put up an alert telling the user that the operation can't be completed due to insufficient memory, and then field the tech support call that resu

Re: [Interest] Symbian Qt5

2012-08-20 Thread Thiago Macieira
On terça-feira, 21 de agosto de 2012 00.57.01, Pau Garcia i Quiles wrote: > Hi, > > In the past months we've seen the Symbian code be removed from Qt5 due > to Nokia's lack of interest in Qt and Symbian for the future. And because the people working on the Qt Project did not want to maintain it an

Re: [Interest] memory fragmentation?

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 15.27.53, Alex Malyushytskyy wrote: > Crashing or even exiting due to insufficient memory in the middle of > long term task is not a choice. That happens quite often. For example, Intel's compiler for 32-bit is a 32-bit application. When linking a moderately-

[Interest] Symbian Qt5

2012-08-20 Thread Pau Garcia i Quiles
Hi, In the past months we've seen the Symbian code be removed from Qt5 due to Nokia's lack of interest in Qt and Symbian for the future. Now that Digia has acquired Qt and they seem to be interested in returning Qt to the crown of "best crossplatform toolkit", including iOS and Android support, i

Re: [Interest] memory fragmentation?

2012-08-20 Thread Alex Malyushytskyy
>>On segunda-feira, 20 de agosto de 2012 14.39.08, Scott Aron Bloom wrote: Ok.. Call me taught.. but I can tell you, last time I tried, it didn't compile in 64 bit mode. >>Last time I tried, it did. I have not tried VS2008 (we skipped it), but we regularly produce 64 bit versions (toget

Re: [Interest] memory fragmentation?

2012-08-20 Thread Alex Malyushytskyy
>>Nonsense. Any application using a gigabyte or more of memory should HAVE SWITCHED to 64-bit a couple of years ago. It is not nonsense. You provide to users version which works on their system (whatever they have). And even though application may need close to 2GB of data (or more) to work effic

Re: [Interest] memory fragmentation?

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 14.39.08, Scott Aron Bloom wrote: > Ok.. Call me taught.. but I can tell you, last time I tried, it didn't > compile in 64 bit mode. Last time I tried, it did. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Techn

Re: [Interest] memory fragmentation?

2012-08-20 Thread Yuvraaj Kelkar
Can you post the error you hit? I've been compiling Qt on x86 and x86_64 for Windows and Ubuntu, static and dynamic since 4.6.x, through to 4.8.1 My steps: 1. Get the latest Qt tarball/zip from the ftp site. Get the latest openssl tarball. Extract both. 2. Compile openssl with nasm, point its outp

Re: [Interest] memory fragmentation?

2012-08-20 Thread Scott Aron Bloom
Ok.. Call me taught.. but I can tell you, last time I tried, it didn't compile in 64 bit mode. Scott -Original Message- From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Thiago Macieira Sent:

Re: [Interest] memory fragmentation?

2012-08-20 Thread d3fault
Interesting thread. I like the bit about allocating everything you could possibly need at application startup. I tend to do the same thing when dealing with multiple buffers (never crossed my mind to do it with widgets), but always wonder if I'm prematurely eja optimizing. Onto my question: Qt clas

Re: [Interest] memory fragmentation?

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 10.07.20, Scott Aron Bloom wrote: > Really? Sorry but where can I find a win64-msvc2008 mkspecs file?? > > If it exists, Im stumped... It's called win32-msvc2008. "win32" doesn't stand for the number of bits, it stands for the Win32 API. That is not changed

Re: [Interest] Qt5 alpha on windows

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 17.28.50, Ramakanthreddy_Kesireddy wrote: > Could you please let me know how can I configure Qt creator 2.5.2 for Qt5 > version from git. so that I can run the Qt5 application using Qtcreator. Create a Qt target in the settings by pointing Creator to the qmak

Re: [Interest] memory fragmentation?

2012-08-20 Thread Ben Swerts
Hi Scott, For Windows you don't need separate mkspecs for 32 and 64 bit. When building Qt from source your choice between a 32 and a 64 bit build is determined by the type of Visual Studio command prompt you open. For VS2010 it works exactly the same. Greets, Ben > -Original Messa

Re: [Interest] QTSPCosket signal disconnected()

2012-08-20 Thread Igor Mironchik
Hello again. I forgot to add that I use Qt 4.7.4 and MSVC 10.0 > Hello. > > In the attachement you can find test applications. All applications > (server and client) are one-thread apps. > > But something going stange in the server. I specially added QMutex to > ServerSocket and when > client d

Re: [Interest] Qt5 alpha on windows

2012-08-20 Thread Ramakanthreddy_Kesireddy
ok thanks..let me check again.. Could you please let me know how can I configure Qt creator 2.5.2 for Qt5 version from git. so that I can run the Qt5 application using Qtcreator. Br, Ramakanth From: interest-bounces+ramakanthreddy_kesireddy=mahindrasatyam@qt

Re: [Interest] memory fragmentation?

2012-08-20 Thread Scott Aron Bloom
Really? Sorry but where can I find a win64-msvc2008 mkspecs file?? If it exists, Im stumped... Scott -Original Message- From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Thiago Macieira Sent:

Re: [Interest] memory fragmentation?

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 09.51.17, Scott Aron Bloom wrote: > > Nonsense. Any application using a gigabyte or more of memory should > > HAVE SWITCHED to 64-bit a couple of years ago. > > If that's the case, why doesn't Qt support 64 bit natively for VS 2008? It does. -- Thiago Macieir

Re: [Interest] memory fragmentation?

2012-08-20 Thread Scott Aron Bloom
> Nonsense. Any application using a gigabyte or more of memory should HAVE SWITCHED to 64-bit a couple of years ago. If that's the case, why doesn't Qt support 64 bit natively for VS 2008? ___ Interest mailing list Interest@qt-project.org http://lists.qt

Re: [Interest] memory fragmentation?

2012-08-20 Thread Jason H
Well let me explain, on this particular product, it is a 32-bit CPU and application on smart-phone similar hardware (256ram/512flash). The existing application is very table-based (fixed allocation, as rule 3  in the JPL PDF goes), minus a few file handling routines. The files are a few MB in si

Re: [Interest] memory fragmentation?

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 08.51.02, Jason H wrote: > What can be done to combat this in C++/Qt? In Qt, very little. We're not going to change the programming paradigm. In C++, a bit more. You can write code with special allocators. You can also change the implementation of malloc(),

Re: [Interest] memory fragmentation?

2012-08-20 Thread Atlant Schmidt
Jason: > I've got a very long process that I want to protect against this. > Switching to 64bit is not an option for at least another 10 years. The classical answer from the realtime world is: Don't deallocate and reallocate. In our application, we instantiate at image startup time every Q

Re: [Interest] Qt5 - my hopes for when the dust settles...

2012-08-20 Thread Jason H
+infinity this. From: Alan Ezust To: Mark Summerfield Cc: interest@qt-project.org Sent: Saturday, August 18, 2012 11:32 AM Subject: Re: [Interest] Qt5 - my hopes for when the dust settles... On Thu, Aug 16, 2012 at 2:54 AM, Mark Summerfield wrote: > - An

Re: [Interest] memory fragmentation?

2012-08-20 Thread Jason H
What can be done to combat this in C++/Qt? Initially I thought there might be some kind of QObject d-ptr magic where the large allocations can be in the private class and re-allocate and copy the private class, without affecting the pointers that the application uses. Then have a function that

Re: [Interest] memory fragmentation?

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 07.56.36, Jason H wrote: > In comparing technologies (Qt vs .NET) one of the biggest architectural > differences is the garbage collection model. > > > Qt uses the standard C++ new/free, where .NET uses a garbage collector. > Interestingly the GC not only mana

[Interest] memory fragmentation?

2012-08-20 Thread Jason H
In comparing technologies (Qt vs .NET) one of the biggest architectural differences is the garbage collection model. Qt uses the standard C++ new/free, where .NET uses a garbage collector. Interestingly the GC not only manages overall usage, but can move objects around in memory. This is the

Re: [Interest] Transfering ownership of QByteArray to char*

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 10.14.07, Thiago Macieira wrote: > On segunda-feira, 20 de agosto de 2012 12.01.59, Konstantin Tokarev wrote: > > Hi all, > > > > Is there a safe way to get char * from QByteArray which is not destroyed > > when original QByteArray is destroyed? > > > > I'm th

Re: [Interest] Transfering ownership of QByteArray to char*

2012-08-20 Thread lars.knoll
On Aug 20, 2012, at 10:01 AM, ext Konstantin Tokarev wrote: > Hi all, > > Is there a safe way to get char * from QByteArray which is not destroyed when > original QByteArray is destroyed? Only one: Create a copy ;-) Cheers, Lars > > I'm thinking about something like > > QByteArray ba = ..

Re: [Interest] Transfering ownership of QByteArray to char*

2012-08-20 Thread Thiago Macieira
On segunda-feira, 20 de agosto de 2012 12.01.59, Konstantin Tokarev wrote: > Hi all, > > Is there a safe way to get char * from QByteArray which is not destroyed > when original QByteArray is destroyed? > > I'm thinking about something like > > QByteArray ba = ...; > char *data = ba.data(); > ba.da

[Interest] Transfering ownership of QByteArray to char*

2012-08-20 Thread Konstantin Tokarev
Hi all, Is there a safe way to get char * from QByteArray which is not destroyed when original QByteArray is destroyed? I'm thinking about something like QByteArray ba = ...; char *data = ba.data(); ba.data() = '\0'; -- Regards, Konstantin ___ Inte

Re: [Interest] Qt5 alpha on windows

2012-08-20 Thread Stéphane Fabry
Please follow these instructions http://qt-project.org/wiki/Building-Qt-5-from-Git I think you get this message because you need good version of Git (>= 1.6.x) and perl, but the perl that is inside msysgit console is not sufficient. You should use windows console with git in PATH and perl (from