[twsocket] Very interesting issue with memory usage in ICS reverse proxy

2008-06-25 Thread Fastream Technologies
Hello, My code is running at a 250Mbps customer site with two 1Gbps ethernet adapters. It has a memory cache with TMemoryStream's. When I set cache size to 100MB, it works perfectly with RAM usage at 300MB. When I set it to 1GB, the process RAM usage in task manager continuously grows and it

Re: [twsocket] Very interesting issue with memory usage in ICS reverseproxy

2008-06-25 Thread S.Korotky
Hello, SZ! I presume that when you set the cache limit to 1 Gb your application reaches the maximum allowed RAM size for windows application, i.e. 4Gb: 2Gb for application itself, and 2Gb for its system resources. Either of these two memory parts could be exhausted. You can change the 2Gb:2Gb

Re: [twsocket] Very interesting issue with memory usage in ICS reverseproxy

2008-06-25 Thread Fastream Technologies
Hello Stanislav, Firstly thank you for your answer. I believe the issue is similar to what you said but not exactly: yes we hit the 2GB limit BUT WHY as we have 300MB memory usage for the rest of the program and the cache uses only 1GB. IOW, where does the 700MB go? I think it is lost due to

Re: [twsocket] Very interesting issue with memory usage in ICSreverseproxy

2008-06-25 Thread S.Korotky
SZ wrote: yes we hit the 2GB limit BUT WHY as we have 300MB memory usage for the rest of the program and the cache uses only 1GB. IOW, where does the 700MB go? I'm afraid you should better know what memory overheads are produced in your application than I or someone else. The actual memory

[twsocket] Force UDP source port when sending

2008-06-25 Thread Dod
Hello, I have an application (EXE file without sources) that listen UDP on port 1812 and when it receive data, it send an UDP paquet back to sender with same source 1812 port. I have to do same application but I get exception already binded if I use MySocket.LocalPort:=1812 to send

Re: [twsocket] Very interesting issue with memory usage in ICSreverseproxy

2008-06-25 Thread Fastream Technologies
Hello, On Wed, Jun 25, 2008 at 4:46 PM, S.Korotky [EMAIL PROTECTED] wrote: SZ wrote: yes we hit the 2GB limit BUT WHY as we have 300MB memory usage for the rest of the program and the cache uses only 1GB. IOW, where does the 700MB go? I'm afraid you should better know what memory

Re: [twsocket] Force UDP source port when sending

2008-06-25 Thread Angus Robertson - Magenta Systems Ltd
So question is : how to force UDP port source when sending it whenever this port is used by a listener socket as the other application do ? May be thru sockaddr_in structure ? Yes, this is the (simplified) code from the ICS SNTP Time Server that responds to a UDP request with the time to the

Re: [twsocket] Very interesting issue with memory usage in ICSreverseproxy

2008-06-25 Thread Fastream Technologies
One last thing for tonight: I cannot use Memproof either: Create process : 3 LoadDLL : 7C80 ntdll.dll LoadDLL : 77E4 KERNEL32.dll LoadDLL : 76CF iphlpapi.dll LoadDLL : 77BA msvcrt.dll LoadDLL : 77F5 ADVAPI32.dll LoadDLL : 77C5 RPCRT4.dll LoadDLL : 76F5 Secur32.dll

[twsocket] getting the NntpCli1-LastResponse inside a userdefined function.

2008-06-25 Thread james osborne
I'm trying to write my own nntp newsreader. what i want to do is create code for the buttonclick event to connect, authenticate and download a list of all newsgroups on my news server. I call the connect function then try to get the LastResponse from the nntp control then check for 200 if i