Hi, I'm newbie in sockets programming.
I have code like:
if not Accept(S, FromName, Sin, Sout) then
perror('Server accept: '+FromName);
The FromName variable is string. And when the Accept() function
executed I got the error like:
project1.lpr(31,28) Error: Call by var for arg no. 2 has to
Graeme Geldenhuys schreef:
Vincent Snijders wrote:
If you want to trade speed for memory, it is better to rewrite
startlazarus to exit after it has started lazarus.
I did not look at the Lazarus IDE code yet, but I thought startlazarus
must stay in memory for the "File > Restart" support an
Vincent Snijders wrote:
If you want to trade speed for memory, it is better to rewrite
startlazarus to exit after it has started lazarus.
I did not look at the Lazarus IDE code yet, but I thought startlazarus must stay in memory for the
"File > Restart" support and the "Restart after Build"
Vincent Snijders wrote:
Can you test and verify the few (<10) miliseconds claim on windows, with
it notorious slow process start up?
OK, I'll test tomorrow at work in my Windows VM session. I don't have Windows
at home to test now.
Regards,
- Graeme -
_
On Tue, 14 Jul 2009 20:54:35 +0200
Graeme Geldenhuys wrote:
> Vincent Snijders wrote:
> >
> > It is to show the splash screen as soon as possible, not to wait
> > until yet another executable is loaded.
>
>
> Well then we are talking about milliseconds really. A splash screen
> is normally sho
Graeme Geldenhuys schreef:
Vincent Snijders wrote:
It is to show the splash screen as soon as possible, not to wait until
yet another executable is loaded.
Well then we are talking about milliseconds really. A splash screen is
normally show just after the Application.Initialize call. Surel
Graeme Geldenhuys schreef:
Vincent Snijders wrote:
It is to show the splash screen as soon as possible, not to wait until
yet another executable is loaded.
Well then we are talking about milliseconds really. A splash screen is
normally show just after the Application.Initialize call. Surel
Vincent Snijders wrote:
It is to show the splash screen as soon as possible, not to wait until
yet another executable is loaded.
Well then we are talking about milliseconds really. A splash screen is normally show just after the Application.Initialize call. Surely a few milliseconds shouldn'
Graeme Geldenhuys schreef:
But at closer inspection I saw it does splash screen handling and
MessageDlg() calls as well, which needs to be GUI. But I'm still
confused. When I start Lazarus without the help of 'startlazarus' I also
see a splash screen, so why does 'startlazarus' also handle a s
Marc Weustink wrote:
What's non GUI on a splash ?
Originally I thought startlazarus just passes parameters on to the lazarus binary and
handles the "File > Restart" (and Restart after Build) feature of Lazarus.
But at closer inspection I saw it does splash screen handling and MessageDlg()
c
Graeme Geldenhuys wrote:
Graeme Geldenhuys wrote:
I was looking at my system processes and noticed that 'startlazarus'
is consuming 26.7MB virtual memory & 14.5MB physical memory. Now I'm not
OK, so 'startlazarus' is a GUI application. But I also don't see why the
splash.pp unit has to pul
2009/7/14 Michael Van Canneyt :
>
> The whole idea of -Cn is to have ppas.sh and link.res, so the link.res
> can be examined, modified and then call the linker manually.
I'd say that's what the -s* options are for. -Cn and -E are aliases
and they seem to do the same thing as -sh, which seems rath
On Tue, 14 Jul 2009, Henry Vermaak wrote:
2009/7/14 Mattias Gaertner :
On Tue, 14 Jul 2009 13:29:34 +0200
Graeme Geldenhuys wrote:
Mattias Gaertner wrote:
If you know an option to omit creating the linker/assembler files as
well, we can add that.
If such an option doesn't exist, maybe
2009/7/14 Mattias Gaertner :
> On Tue, 14 Jul 2009 13:29:34 +0200
> Graeme Geldenhuys wrote:
>
>> Mattias Gaertner wrote:
>> >
>> > If you know an option to omit creating the linker/assembler files as
>> > well, we can add that.
>>
>> If such an option doesn't exist, maybe we can ask the FPC team
Marco van de Voort wrote:
What do they say about these values? Most notably, are you 100% sure that
all memory regions that are shared are deducted?
I think Mattias hit the nail on the head regarding my system and memory
fragmentation. My system had a uptime of 14 days (which is not really
t
On Tue, Jul 14, 2009 at 11:24:01AM +0200, Graeme Geldenhuys wrote:
> Graeme Geldenhuys wrote:
> >
> > I was looking at my system processes and noticed that 'startlazarus' is
> > consuming 26.7MB virtual memory & 14.5MB physical memory. Now I'm not
>
> And to make sure that I am reading the memo
On Tue, Jul 14, 2009 at 11:18:23AM +0200, Michael Van Canneyt wrote:
> On Tue, 14 Jul 2009, Graeme Geldenhuys wrote:
> > I was looking at my system processes and noticed that 'startlazarus' is
> > consuming 26.7MB virtual memory & 14.5MB physical memory. Now I'm not 100%
> > sure what the differe
Graeme Geldenhuys wrote:
Two questions...1) Can you defrag memory? I'm running Ubuntu 8.04.2 - if
that helps. Or do you just close all apps, logout and then log back in
and start all apps again. I tend to run my system for weeks on end
without logout or reboot.
Don't worry, I Googled memor
Mattias Gaertner wrote:
executable without smart linking and without wpo
+ stack
+ loaded config files
+ mem fragmentation
A simple lcl app needs 2-4MB less.
Two questions...1) Can you defrag memory? I'm running Ubuntu 8.04.2 - if
that helps. Or do you just close all apps, logout and th
Mattias Gaertner wrote:
On Tue, 14 Jul 2009 02:25:57 -0400
waldo kitty wrote:
Mattias Gaertner wrote:
On Mon, 13 Jul 2009 22:33:42 +0100
Marc Adams wrote:
Hi - I'm running Lazarus under Linux, and recently rebuilt Lazarus
to use gtk2.
Now whenever I restart Lazarus, I now get the question
On Tue, 14 Jul 2009 13:29:34 +0200
Graeme Geldenhuys wrote:
> Mattias Gaertner wrote:
> >
> > If you know an option to omit creating the linker/assembler files as
> > well, we can add that.
>
> If such an option doesn't exist, maybe we can ask the FPC team to
> extend the compiler to support it
On Tue, 14 Jul 2009 11:55:41 +0200
Graeme Geldenhuys wrote:
> Henry Vermaak wrote:
> >
> > My startlazarus uses 10M physical memory, while lazarus uses 27M
> > (RES column in `top`).
>
> What widgetset did you compile with? I used GTK2. I guess I can
> experiment with other widgetsets for the
Mattias Gaertner wrote:
If you know an option to omit creating the linker/assembler files as
well, we can add that.
If such an option doesn't exist, maybe we can ask the FPC team to extend
the compiler to support it?
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit us
On Tue, 14 Jul 2009 10:08:01 +0100
Henry Vermaak wrote:
> 2009/7/14 Graeme Geldenhuys :
> > -- 8< --
> >
> > But as I mentioned, if FPC is the one creating the file, surely it
> > should be responsible for clean up afterwards.
>
> The point of -sh is to create a script that can be called afterwa
On Tue, 14 Jul 2009 02:25:57 -0400
waldo kitty wrote:
> Mattias Gaertner wrote:
> > On Mon, 13 Jul 2009 22:33:42 +0100
> > Marc Adams wrote:
> >
> >> Hi - I'm running Lazarus under Linux, and recently rebuilt Lazarus
> >> to use gtk2.
> >> Now whenever I restart Lazarus, I now get the question
On Tue, 14 Jul 2009, Henry Vermaak wrote:
2009/7/14 Graeme Geldenhuys :
Henry Vermaak wrote:
My startlazarus uses 10M physical memory, while lazarus uses 27M (RES
column in `top`).
What widgetset did you compile with? I used GTK2. I guess I can experiment
with other widgetsets for the sta
2009/7/14 Graeme Geldenhuys :
> Henry Vermaak wrote:
>>
>> My startlazarus uses 10M physical memory, while lazarus uses 27M (RES
>> column in `top`).
>
> What widgetset did you compile with? I used GTK2. I guess I can experiment
> with other widgetsets for the startlazarus project, or is startlazar
Graeme Geldenhuys wrote:
I was looking at my system processes and noticed that 'startlazarus' is
consuming 26.7MB virtual memory & 14.5MB physical memory. Now I'm not
OK, so 'startlazarus' is a GUI application. But I also don't see why the
splash.pp unit has to pull in the IDE's aboutfrm.pa
Henry Vermaak wrote:
My startlazarus uses 10M physical memory, while lazarus uses 27M (RES
column in `top`).
What widgetset did you compile with? I used GTK2. I guess I can
experiment with other widgetsets for the startlazarus project, or is
startlazarus a pure console application? (I never
2009/7/14 Graeme Geldenhuys :
> Vincent Snijders wrote:
>> On windows 32 bits, Mem Usage is 8 MB, VM Size is 5300 KB.
>
> This raises another question though. Why is it that under Linux is uses more
> than double the memory than under Windows? And yet it is the exact same
> source code.
My startl
Graeme Geldenhuys wrote:
I was looking at my system processes and noticed that 'startlazarus' is
consuming 26.7MB virtual memory & 14.5MB physical memory. Now I'm not
And to make sure that I am reading the memory usage correctly, I used
three different programs.
- Top in a console window
Vincent Snijders wrote:
and show a splash screen.
Still, does the splash image take up 14MB of memory? For a trivial app,
it's a lot of memory.
On windows 32 bits, Mem Usage is 8 MB, VM Size is 5300 KB.
This raises another question though. Why is it that under Linux is uses
more than d
Michael Van Canneyt wrote:
Did you strip the debug info ?
OK, just did that and memory usage is still the same as before.
The file size dropped from 31.7MB (with debug info) down to 5.3MB
(without debug info).
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Fr
On Tue, 14 Jul 2009, Graeme Geldenhuys wrote:
Hi,
I was looking at my system processes and noticed that 'startlazarus' is
consuming 26.7MB virtual memory & 14.5MB physical memory. Now I'm not 100%
sure what the difference is between virtual and physical memory, but either
way, it is a lot
2009/7/14 Graeme Geldenhuys :
> -- 8< --
>
> But as I mentioned, if FPC is the one creating the file, surely it should be
> responsible for clean up afterwards.
The point of -sh is to create a script that can be called afterwards
by the user. I've used it many times when I've had linking problems
Graeme Geldenhuys schreef:
but either way, it is a lot of memory considering that startlazarus
doesn't really do anything serious, other than launch the lazarus binary.
and show a splash screen.
On windows 32 bits, Mem Usage is 8 MB, VM Size is 5300 KB.
Vincent
--
___
Thanks for the quick reply Henry.
Henry Vermaak wrote:
This file is created by fpc if you call it with -sh. Assembler and
linker isn't called, so presumably that's where the quick compile
comes from.
That's correct - or at least that is how I understood it as well. But I
did not know fpc c
Hi,
I was looking at my system processes and noticed that 'startlazarus' is
consuming 26.7MB virtual memory & 14.5MB physical memory. Now I'm not
100% sure what the difference is between virtual and physical memory,
but either way, it is a lot of memory considering that startlazarus
doesn't r
2009/7/14 Graeme Geldenhuys :
> Hi,
>
> Whenever I do a Quick Compile (Ctrl+Shift+F9 on my system), there is always
> a temp file remaining in the default output directory.
>
> The file is "ppas.sh" on my Linux system.
>
> Is there a reason why that file remains after the Quick Compiler and never
>
Hi,
Whenever I do a Quick Compile (Ctrl+Shift+F9 on my system), there is
always a temp file remaining in the default output directory.
The file is "ppas.sh" on my Linux system.
Is there a reason why that file remains after the Quick Compiler and
never gets deleted by Lazarus? Or is this an
40 matches
Mail list logo