Re: [fpc-pascal] Memory alignment with FPC

2012-10-15 Thread Darius Blaszyk
On Oct 11, 2012, at 4:25 PM, Jonas Maebe wrote: > > On 11 Oct 2012, at 16:11, dhkblas...@zeelandnet.nl wrote: > >> On 11 okt '12, Jonas Maebe wrote: >> >>> No. You really should write the fields one by one. Yes, >>> it's slower. That's the cost of portability. You can always optimize by >>> f

[fpc-pascal] Problems with valgrind

2012-10-15 Thread Darius Blaszyk
Hi, I'm trying to use valgrind for the first time seriously to profile my app. See output from console below; Darius-Blaszyks-Mac-mini:fileio dariusblaszyk$ fpc -gv fileio.pp Free Pascal Compiler version 2.7.1 [2012/05/18] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS

Re: [fpc-pascal] Problems with valgrind

2012-10-15 Thread Jonas Maebe
On 15 Oct 2012, at 14:08, Darius Blaszyk wrote: > I'm trying to use valgrind for the first time seriously to profile my app. > See output from console below; > [snip] > After googling I found some remark about adding a -m32 flag with GCC. Is this > the same issue I have here? No, because -m32

Re: [fpc-pascal] Problems with valgrind

2012-10-15 Thread Darius Blaszyk
On Oct 15, 2012, at 3:06 PM, Jonas Maebe wrote: > > On 15 Oct 2012, at 14:08, Darius Blaszyk wrote: > >> I'm trying to use valgrind for the first time seriously to profile my app. >> See output from console below; >> > [snip] >> After googling I found some remark about adding a -m32 flag with

Re: [fpc-pascal] Problems with valgrind

2012-10-15 Thread Darius Blaszyk
On Oct 15, 2012, at 3:06 PM, Jonas Maebe wrote: > You may want to look at the Instruments application that comes with Xcode > though. That one offers a lot of different profiling options based on > performance counters and sampling. What command line options does this need? I tried a number of

[fpc-pascal] set useragent in fphttpclient?

2012-10-15 Thread waldo kitty
how do i set the useragent field in a client built with fphttpclient? i'm starting with the example "httpget" and then moving on from there... i've tried various WAGs like RequestHeaders(fieldUserAgent,'my user agent'); RequestHeaders('User-Agent','my user agent'); SetRequestHeaders(fieldUserA

Re: [fpc-pascal] set useragent in fphttpclient?

2012-10-15 Thread Michael Van Canneyt
On Mon, 15 Oct 2012, waldo kitty wrote: how do i set the useragent field in a client built with fphttpclient? i'm starting with the example "httpget" and then moving on from there... i've tried various WAGs like RequestHeaders(fieldUserAgent,'my user agent'); RequestHeaders('User-Agent','m

Re: [fpc-pascal] set useragent in fphttpclient?

2012-10-15 Thread waldo kitty
On 10/15/2012 17:06, Michael Van Canneyt wrote: On Mon, 15 Oct 2012, waldo kitty wrote: i've tried various WAGs like RequestHeaders(fieldUserAgent,'my user agent'); RequestHeaders('User-Agent','my user agent'); SetRequestHeaders(fieldUserAgent,'my user agent'); SetRequestHeaders('User-Agent','m

[fpc-pascal] fphttpclient close connection?

2012-10-15 Thread waldo kitty
i've noted that fphttpclient has a DefaultTimeout of 15 minutes... how can i close the connection after all data is received? the server is configured to keep-alive. "AddHeader(fieldConnection,'close');" works but i want/need to use keep-alive and then close the connection afterwards instead

Re: [fpc-pascal] fphttpclient close connection?

2012-10-15 Thread michael . vancanneyt
On Mon, 15 Oct 2012, waldo kitty wrote: i've noted that fphttpclient has a DefaultTimeout of 15 minutes... how can i close the connection after all data is received? That should happen by itself ? Keeping the connection open is currently not supported. The DefaultTimeOut is definitely n