Re: [Lazarus] RE : Console App Development

2011-08-16 Thread Luca Olivetti
Al 13/08/2011 10:35, En/na Ludo Brands ha escrit: So, 50+% is program, resources and libraries. Codetools, which has been pointed to frequently, is peanuts. 20M in PixmapCache is enormuous. 17M unknown is a mistery. Unfortunately I know nothing about gtk-2 or qt internals (either alone or wrt

[Lazarus] RE : RE : RE : RE : RE : RE : RE : RE : RE : Console App Development

2011-08-16 Thread Ludo Brands
> > > With the > > GTK2 widgedset I see an increase in memory allocated by TCodeBuffer > > when opening/closing/reopening the same files. > > How much increase? > The test I did is the following: 1 Open lazarus with --skip-last-projet 2 File Open, select * files in fpc/packages/univint/.src (45

Re: [Lazarus] RE : RE : RE : RE : Console App Development

2011-08-16 Thread Luca Olivetti
Al 14/08/2011 16:04, En/na Martin ha escrit: I tried the process about 20 times (on windows). IME (with user program, but that should translate to lazarus itself), there's a big difference between windows and linux/gtk-2 (and also linux/qt, but I don't use that, only to do some tests). Windo

Re: [Lazarus] New widgetset

2011-08-16 Thread Mark Morgan Lloyd
Vincent Snijders wrote: :> I've ported the nvidia-widgetset to FPC. This widgetset is very light-weight and has an OpenGL backend (easily extendible). If based on OpenGL, does this imply that apps compiled using it won't map across a network connection using VNC, X etc.? -- Mark Morgan Lloyd

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Mon, 15 Aug 2011 18:47:25 +0200, wrote: Hi Graeme, I've tested it on 32bit Linux, Windows and Mac so it should work. Unfortunately you're not very helpfull by stating it just does not work, talking about sounding familiar! Be more specific if you can. Provide a backtrace or similar. Does gl

Re: [Lazarus] New widgetset

2011-08-16 Thread Graeme Geldenhuys
On 08/16/2011 10:28 AM, dhkblas...@zeelandnet.nl wrote: > you're not very helpfull by stating it just does not work, talking about > sounding familiar! In no way did I mean that rude. I was referring to the relation with fpGUI: Custom drawn, light on dependencies, looking the same on all platforms

Re: [Lazarus] RE : RE : RE : Console App Development

2011-08-16 Thread Florian Klämpfl
Am 15.08.2011 20:50, schrieb Mattias Gaertner: > On Mon, 15 Aug 2011 11:29:27 +0100 > Martin wrote: > >> [...] >> It's a dream of mine to optimize that. eg. to have synedit allocate a >> bigger chunk, and have synedit use it knowlege about lifetime of data, >> to organize it better. But there

[Lazarus] RE : RE : RE : RE : RE : RE : RE : RE : RE : RE : Console AppDevelopment

2011-08-16 Thread Ludo Brands
> > > With the > > > GTK2 widgedset I see an increase in memory allocated by > TCodeBuffer > > > when opening/closing/reopening the same files. > > > > How much increase? > > > The test I did is the following: > 1 Open lazarus with --skip-last-projet > 2 File Open, select * files in fpc/packages

Re: [Lazarus] Converting pchar to pcchar

2011-08-16 Thread Marco van de Voort
On Mon, Aug 15, 2011 at 06:22:43PM +0200, Hans-Peter Diettrich wrote: > Marco van de Voort schrieb: > > On Sun, Aug 14, 2011 at 08:30:20PM +0200, Sven Barth wrote: > >> If you look into the unit "ctypes" (located in $fpcdir/rtl/inc) > >> you'll see that "ppchar" is defined as "^cchar" and "cchar" i

Re: [Lazarus] New widgetset

2011-08-16 Thread Graeme Geldenhuys
On 08/16/2011 10:28 AM, dhkblas...@zeelandnet.nl wrote: > Does glut itself work properly, have you tested that? All the example projects in FPC's 'packages/opengl/examples/' directory compiles and runs fine on my system. Again, using FPC 2.4.5 (64-bit). Regards, - Graeme - -- fpGUI Toolkit

Re: [Lazarus] RE : Forms in DLL

2011-08-16 Thread Juan Sánchez
Hello, this is the first very basic test: Objects: - main app: basic win32 app. - dll with a form and a button to display a message box. For this test, libdllform.dll is copied to libdllform1.dll to let in a test be loaded and executed twice (with two dlls). Result: Main App disk size (s

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Tue, 16 Aug 2011 10:28:55 +0200, wrote: GLut is a platform independent context handling toolkit for OpenGL. It's not very good, nor fast but it's widely used and available on all sorts of platforms (see also freeGlut). The widgets make use of the GSLS shader to render. So perhaps someth

Re: [Lazarus] New widgetset

2011-08-16 Thread Graeme Geldenhuys
On 08/16/2011 11:53 AM, dhkblas...@zeelandnet.nl wrote: > To get to the bottom of it,could you please check > if: It gets all the way to the 'glutMainLoop;' call. Once it calls that, then the app is screwed. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pasc

Re: [Lazarus] RE : RE : RE : Console App Development

2011-08-16 Thread Martin
On 16/08/2011 09:43, Florian Klämpfl wrote: Am 15.08.2011 20:50, schrieb Mattias Gaertner: On Mon, 15 Aug 2011 11:29:27 +0100 Martin wrote: [...] It's a dream of mine to optimize that. eg. to have synedit allocate a bigger chunk, and have synedit use it knowlege about lifetime of data, to orga

Re: [Lazarus] New widgetset

2011-08-16 Thread Graeme Geldenhuys
On 08/16/2011 11:53 AM, dhkblas...@zeelandnet.nl wrote: > > To get to the bottom of it,could you please check OK, comparing your example app to one of the OpenGL examples included with FPC. I tried to see if the API calls are similar. If I comment the 'doUI' call inside the display() method, the

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Tue, 16 Aug 2011 11:53:07 +0200, wrote: Ok, so it's not in the initialization. Could you then put a breakpoint in procedure display, and loop through it, just to see where it fails? If it doesn't reach reach this callback function at all you could try to set breakpoint in other callback f

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Tue, 16 Aug 2011 12:34:53 +0200, wrote: The error you recieved indicates that you have a problem with the shader (GLSL). Difficult to tell where this comes from, but it's either the OpenGL library or your graphics card. For more verbose information you can enable {$define NV_REPORT_COMPIL

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Tue, 16 Aug 2011 12:53:27 +0200, wrote: I just checked and the fragent shader code I use is version 1.2. If I'm not mistaking (http://en.wikipedia.org/wiki/GLSL#Versions [1]) this means that you need OpenGL 2.1 or newer to work. Can you check this and possibly update if needed? Regards, D

[Lazarus] Files with .rst, .compiled files and .lrs extensions

2011-08-16 Thread Frank Church
Is it necessary to save .compiled files to VCS, especially in a crossplatform application? Are they more applicable to packages or to projects. Are .lrs used by Lazarus 0.9.29 and above? I remember reading somewhere that only .res are now enough, or some other such files. -- Frank Church =

Re: [Lazarus] New widgetset

2011-08-16 Thread Graeme Geldenhuys
On 08/16/2011 12:53 PM, dhkblas...@zeelandnet.nl wrote: > indicates that you have a problem with the shader (GLSL). Difficult to > tell where this comes from, but it's either the OpenGL library or your > graphics card. As I mentioned, all the opengl demos with FPC works fine here. My graphics ca

Re: [Lazarus] New widgetset

2011-08-16 Thread Graeme Geldenhuys
On 08/16/2011 01:01 PM, dhkblas...@zeelandnet.nl wrote: > (http://en.wikipedia.org/wiki/GLSL#Versions [1]) this means that you > need OpenGL 2.1 or newer to work. Can you check this and possibly update > if needed? How do I check what OpenGL version I have under Ubuntu? Does this help...? $ locat

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Tue, 16 Aug 2011 13:08:05 +0200, Graeme Geldenhuys wrote: On 08/16/2011 12:53 PM, dhkblas...@zeelandnet.nl wrote: indicates that you have a problem with the shader (GLSL). Difficult to tell where this comes from, but it's either the OpenGL library or your graphics card. As I mentioned, a

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Tue, 16 Aug 2011 13:23:30 +0200, Graeme Geldenhuys wrote: On 08/16/2011 01:01 PM, dhkblas...@zeelandnet.nl wrote: (http://en.wikipedia.org/wiki/GLSL#Versions [1]) this means that you need OpenGL 2.1 or newer to work. Can you check this and possibly update if needed? How do I check what O

Re: [Lazarus] New widgetset

2011-08-16 Thread Michalis Kamburelis
> This seems to indicate that you use an older version of OpenGL (1.5). AFAIK > GLSL was included from OpenGL 2.0. So this suggests you should try to update > your libraries. GLSL is also available for older OpenGL 1.x, through OpenGL ARB extensions (ARB_shader_objects and friends). But I don't kn

Re: [Lazarus] Files with .rst, .compiled files and .lrs extensions

2011-08-16 Thread Mattias Gaertner
On Tue, 16 Aug 2011 12:04:26 +0100 Frank Church wrote: > Is it necessary to save .compiled files to VCS, especially in a > crossplatform application? No. Do *not* save .compiled files in VCS. > Are they more applicable to packages or to projects. The same. > Are .lrs used by Lazarus 0.9.2

Re: [Lazarus] Files with .rst, .compiled files and .lrs extensions

2011-08-16 Thread leledumbo
> Using .res files requires fpc 2.4.4+ and 0.9.29+. Wasn't it 2.4.0+? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Files-with-rst-compiled-files-and-lrs-extensions-tp3258318p3258724.html Sent from the Free Pascal - Lazarus mailing list archive at Nabbl

Re: [Lazarus] Files with .rst, .compiled files and .lrs extensions

2011-08-16 Thread Frank Church
On 16 August 2011 14:26, Mattias Gaertner wrote: > On Tue, 16 Aug 2011 12:04:26 +0100 > Frank Church wrote: > > > Is it necessary to save .compiled files to VCS, especially in a > > crossplatform application? > > No. > Do *not* save .compiled files in VCS. > > > > Are they more applicable to pac

Re: [Lazarus] New widgetset

2011-08-16 Thread Graeme Geldenhuys
On 08/16/2011 03:13 PM, Michalis Kamburelis wrote: > full shader support etc., is to enable proprietary drivers, which can > give you OpenGL even > 3 on newer graphic cards. Since you have > Ubuntu, this is trivial, just use System->Administration->Hardware > Drivers. OK, I switched to the propri

Re: [Lazarus] New widgetset

2011-08-16 Thread dhkblaszyk
On Tue, 16 Aug 2011 16:20:41 +0200, Graeme Geldenhuys wrote: The new widgetset example now runs without problems - though I'm not Good news! sure what I am supposed to see in the example. I see 2 checkbox. Click the top one, and I see 3 checkboxes. Click the 2nd checkbox and I see a horizont

[Lazarus] RE : RE : RE : RE : RE : Console App Development

2011-08-16 Thread Ludo Brands
> IME (with user program, but that should translate to lazarus itself), > there's a big difference between windows and linux/gtk-2 (and also > linux/qt, but I don't use that, only to do some tests). > Windows uses much less memory and memory usage doesn't grow > with time, > while linux/gtk-2,

Re: [Lazarus] RE : RE : RE : RE : RE : Console App Development

2011-08-16 Thread Luca Olivetti
Al 16/08/2011 17:27, En/na Ludo Brands ha escrit: IME (with user program, but that should translate to lazarus itself), there's a big difference between windows and linux/gtk-2 (and also linux/qt, but I don't use that, only to do some tests). Windows uses much less memory and memory usage doesn't

[Lazarus] RE : RE : RE : Console App Development

2011-08-16 Thread Ludo Brands
> The attached patch creates a shared imagelist > > Please test and see what is the gain > > PS: this is a quick patch just for test. more cleanup can be done > A gain of 7M for the 450 files (still using cmem) and, more important, the load time (first time load) dropped from 17.60 secs to 13.5

[Lazarus] RE : RE : RE : RE : RE : RE : RE : RE : Console AppDevelopment

2011-08-16 Thread Ludo Brands
As for why memory returned to memory manager, does not get back to the OS (apparently not even when using cmem...) no idea. But memory is definitely returned to the mem manager. As for the issue Ludo reported with QT, and requiring even a reset of his system. *IF* any handles or other resourc

[Lazarus] first try at compiling complains about creating tchart object file, second try works

2011-08-16 Thread Seth Grover
Greetings! I've got a little bit of a frustrating annoyance I'm hoping someone can help me resolve. I've got Lazarus built from source and installed under "/usr/share/lazarus/0.9.30" on an Ubuntu 10.10 box. I obviously installed it as root, and rebuilt the IDE and packages as root as well so they

Re: [Lazarus] New widgetset

2011-08-16 Thread Darius Blaszyk
> I forgot to commit a fix for the textures. I will fix this later today. Fix committed, please update and test. Regards, Darius -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/laz

[Lazarus] RE : New widgetset

2011-08-16 Thread Ludo Brands
> > > I forgot to commit a fix for the textures. I will fix this later > > today. > > Fix committed, please update and test. > > Regards, Darius > Tried the example but it crashes with a segfault at line 31 in nvShaderUtils. It appears that the address of glCreateShader is nil. I tried to bre

Re: [Lazarus] RE : New widgetset

2011-08-16 Thread Michalis Kamburelis
Ludo Brands wrote: > Tried the example but it crashes with a segfault at line 31 in > nvShaderUtils. It appears that the address of glCreateShader is nil. I tried > to break into any of the Load_GL_VERSION_x_y or glext_LoadExtension in > glext.pp but no success. When are functions like glCreateShad

Re: [Lazarus] Files with .rst, .compiled files and .lrs extensions

2011-08-16 Thread Sven Barth
Am 16.08.2011 16:08, schrieb Frank Church: On 16 August 2011 14:26, Mattias Gaertner mailto:nc-gaert...@netcologne.de>> wrote: On Tue, 16 Aug 2011 12:04:26 +0100 Frank Church mailto:vfcli...@gmail.com>> wrote: > Is it necessary to save .compiled files to VCS, especially in a

[Lazarus] RE : RE : New widgetset

2011-08-16 Thread Ludo Brands
> glCreateShader is initialized by Load_GL_version_2_0 (also, > higher Load_GL_version_x_x call Load_GL_version_2_0). > > Ludo: Are you sure you have OpenGL 2.1? Some OpenGL > implementations unfortunately lie, claiming in > glGetString(GL_VERSION) that they support higher version than > in re

Re: [Lazarus] RE : RE : RE : Console App Development

2011-08-16 Thread Martin
On 16/08/2011 16:58, Ludo Brands wrote: The attached patch creates a shared imagelist Please test and see what is the gain PS: this is a quick patch just for test. more cleanup can be done A gain of 7M for the 450 files (still using cmem) and, more important, the load time (first time load) d

Re: [Lazarus] RE : RE : New widgetset

2011-08-16 Thread Michalis Kamburelis
Ludo Brands write: > The all or nothing approach in Load_GL_version_X_Y (all functions are > present or fail) is simple but has its disadvantages when working with third > party libraries. Fe Synapse uses a more elaborate method of loading > functions at runtime. It defines for every function a wra

Re: [Lazarus] RE : RE : RE : RE : Console App Development

2011-08-16 Thread Max Vlasov
On Tue, Aug 16, 2011 at 11:48 AM, Luca Olivetti wrote: > Windows uses much less memory and memory usage doesn't grow with time, > while linux/gtk-2, doing the same things, uses much more initial memory and > its usage constantly grows. > Given that my programs have to run unattended 24/7, that's

Re: [Lazarus] RE : New widgetset

2011-08-16 Thread Darius Blaszyk
On Aug 16, 2011, at 8:08 PM, Michalis Kamburelis wrote: > Darius: nvidia-widgets/src/nvwidgets/nvglutwidgets.pas calls > Load_GL_version_2_0, but the result is not checked. You should abort > the program (probably it would be nicest to raise an exception) if > Load_GL_version_2_0 returns false (m

Re: [Lazarus] RE : RE : RE : RE : Console App Development

2011-08-16 Thread Luca Olivetti
Al 16/08/11 22:29, En/na Max Vlasov ha escrit: > > > On Tue, Aug 16, 2011 at 11:48 AM, Luca Olivetti > wrote: > > Windows uses much less memory and memory usage doesn't grow with time, > while linux/gtk-2, doing the same things, uses much more initial memory and > i