Article View: alt.windows98
Article #472Re: Problem of memory (win386.swf)
From: john thrum
Date: Sat, 27 Apr 2002 15:03
Date: Sat, 27 Apr 2002 15:03
33 lines
2529 bytes
2529 bytes
calloc/malloc are C style allocation functions. He shouldn't be using them in C++, he should be using new and delete (or delete[] for arrays). It's obviously a memory leak caused by improper de-allocation of resources. "S.P. Goodman" <earthlight2k@hotmail.com> wrote in message news:aa8pka$okl$1@helle.btinternet.com... > Have you tried to disallocate the memory used by the data file? I think the > calloc/malloc functions have something to do with this. > > "Absys France" <absys.france@wanadoo.fr> wrote in message > news:aa8i9r$n6t$1@wanadoo.fr... > > We developed an application with C++ Builder running with Windows 98. This > > application make some calculation and some display. But if we load some > > datas several times, our hard drive memory decrease (even if we have free > > RAM). The file win386.swf increased during this operations. The only way > we > > found to recover this memory was to shut down the computer. After this, > > win386.swf recover is normal size. If we do not shut down the computer > every > > 30minutes, the program stop and this kind of message is diplayed : > > - Access violation at adress 410046EO in module 'BORLNDMM.DLL' write of > > adress 3E96BE16. > > or > > - C++ exeption > > How can we recover this memory lost during operation? > > Is it normal that win386.swf increase in size? > > > > > >
Technical Details
Message-ID:
<aaeejo$s74$1@news.chatlink.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!news.chatlink.com!not-for-mailReferences:
<aa8i9r$n6t$1@wanadoo.fr> <aa8pka$okl$1@helle.btinternet.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,b1bfe1d0c03585a X-Google-Attributes: gidf8d38,public X-Google-Thread: 1070cf,b1bfe1d0c03585a X-Google-Attributes: gid1070cf,public X-Google-ArrivalTime: 2002-04-27 08:03:27 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!news.chatlink.com!not-for-mail From: "john thrum" <jomorisin@DIE_SPAMBOT_DIEAccess-4-Free.com> Newsgroups: alt.windows98,borland.public.cpp.language Subject: Re: Problem of memory (win386.swf) Date: Sat, 27 Apr 2002 10:03:17 -0500 Organization: OWDS Inc. Lines: 35 Message-ID: <aaeejo$s74$1@news.chatlink.com> References: <aa8i9r$n6t$1@wanadoo.fr> <aa8pka$okl$1@helle.btinternet.com> NNTP-Posting-Host: dai-tx4-187.rasserver.net X-Trace: news.chatlink.com 1019919801 28900 204.32.147.187 (27 Apr 2002 15:03:21 GMT) X-Complaints-To: abuse@chatlink.com NNTP-Posting-Date: Sat, 27 Apr 2002 15:03:21 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000