๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #88

The memory block (0x013B5360) [size: 28 bytes] was allocated with SysGetMem

#88
From: roladdon
Date: Sun, 27 Apr 2008 14:16
35 lines
1758 bytes
CodeGearT C++Builder๏ฟฝ 2007  Version 11.0.2902.10471
Indy 10 March 2008 build.

1) New Project:
CodGuard: all on
Linking: Dynamic RTL off

Add following line to MainForm:

__fastcall TForm3::Test(void)   //this function is not called from anywhere.
    {
     TIdTrivialFTP *FTP;
     FTP->Put("", "");
     }
Error: The memory block (0x013B5360) [size: 28 bytes] was allocated with 
SysGetMem

2) Linking: Dynamic RTL ON,  Error is gone

3) Linking: Dynamic RTL OFF
    and
    comment the line       FTP->Put("", "");  out

    ->  The Error is gone
______________________________________________
the function Test()  is not called from anywhere.

FTP->Put("", ""); -> causes error
FTP->Connect(); -> No error

The error seems to hapen by just inclusion of the Put()

thanks

Roland
Technical Details
Message-ID: <48148ab1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d170f6ad7d73201d,start
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
Reply-To: "roladdon" <roladdon@PutMyServerHere.ca>
From: "roladdon" <roladdon@PutMyServerHere.ca>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject:  The memory block (0x013B5360) [size: 28 bytes] was allocated with SysGetMem
Date: Sun, 27 Apr 2008 10:16:17 -0400
Lines: 38
Organization: AddOn
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 65.94.49.43
Message-ID: <48148ab1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1209305777 65.94.49.43 (27 Apr 2008 07:16:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail