Re: Potential memory leak?

2009-11-29 Thread Eldar Insafutdinov
Qian Xu Wrote: > Hi All, > > I am using QtD to do some gui stuff. As the QtD documentation described, Qt- > data types should be declared with keyword "scope", so that all variables > can be deallocated in a right order. > > I found a memory leak problem accidentally, when I executed the follow

Re: Linking problem with QtD

2009-10-30 Thread Eldar Insafutdinov
Qian Xu Wrote: > Eldar Insafutdinov wrote: > > > > All Qt versions keep forward binary compatibility and a full compatibility > > within a major version, 4.5.3 contains only bug fixes compared to 4.5.2. > > Version from code.google.com is a way to old, so I wou

Re: Linking problem with QtD

2009-10-30 Thread Eldar Insafutdinov
Qian Xu Wrote: > Eldar Insafutdinov wrote: > > > > I saw you made the reference to this link > > (http://www.dsource.org/projects/qtd/wiki/MacCaseStudy which contains this > > command line option, but still I don't understand why you get undefined > > symb

Re: Linking problem with QtD

2009-10-29 Thread Eldar Insafutdinov
Qian Xu Wrote: > albatroz Wrote: > > > Eldar Insafutdinov wrote: > > > > > Qian Xu Wrote: > > > > > >> Hi All, > > >> > > >> I have almost built the first demo, but ... > > >> The components I have are as fol

Re: Linking problem with QtD

2009-10-29 Thread Eldar Insafutdinov
Qian Xu Wrote: > Hi All, > > I have almost built the first demo, but ... > The components I have are as follows: > 1. QtK SDK (LGPL edition) 4.5.3 > 2. the latest svn version of QtD (trunk-r309.zip) > 3. DMD 1.050 > 4. Tango (current from trunk) > 5. Platform: openSUSE 11.1. > 6. cmake 2.6 > >

How to search for an element in the array. D2 phobos.

2009-07-12 Thread Eldar Insafutdinov
I am a little bit confused with a simple operation of searching in the array with D2-phobos. With tango I used to use: size_t find( Elem[] buf, Elem pat, Pred2E pred = Pred2E.init ); Performs a linear scan of buf from [0 .. buf.length), returning the index of the first element matching p