🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1053

Re: Memory Leak

#1053
From: Roberto
Date: Thu, 11 Nov 2004 12:53
69 lines
2782 bytes
Well,

First of, I�m using BCB 5.0 Ent, W2000.

I have a multithreaded software (aprox 150 threads) and one TADOConnection
for each thread.

TADOConnection *x[190];

x = new TADOConnection(NULL);

This array remains until the software stops.

If I create one connection in design time (placing the component on the
form), the leak appears don�t occur. But the conns cannot handle the high
trafic of information.

When I run the software in debug mode, step by step, I see the "new" working
and the memory grows but when the delete is called, the memory is not
released.


Question, when I create a String variable, I have to free this variable too
when the funcion terminates ??

Ex:

String x;

x = "Test";

SysFreeString(x);


Thanks,

Roberto.


"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
news:41930ae4@newsgroups.borland.com...
> How do you detect that memory is allocated?
>
> //------------------------------------------
> Regards,
> Vassiliev V. V.
> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
> ADO.Net
> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> MS Jet (Access) and Interbase (through OLEDB)
>
> "Roberto" <roberto@dialtech.com.br> �������/�������� � �������� ���������:
> news:4192ea2e$1@newsgroups.borland.com...
> > Friends,
> >
> > We are having serious trouble with ADO.
> >
> > Seems that after any small or huge query (Using TADOQuery dinamically
> > created) memory remains allocated even after the "delete" command.
> >
> > Can anyone help ?
> >
> > thanks
> >
> > Roberto
> >
> >
>
>
Technical Details
Message-ID: <419351d6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news2.euro.net!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4192ea2e$1@newsgroups.borland.com> <41930ae4@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,995d05ed431e005b
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Roberto" <roberto@dialtech.com.br>
Newsgroups: borland.public.cppbuilder.database.ado
References: <4192ea2e$1@newsgroups.borland.com> <41930ae4@newsgroups.borland.com>
Subject: Re: Memory Leak
Date: Thu, 11 Nov 2004 09:53:26 -0300
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 200.171.183.217
Message-ID: <419351d6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100173782 200.171.183.217 (11 Nov 2004 03:49:42 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news2.euro.net!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail