🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11280

Re: CreateProcess memory issues

#11280
From: Remy Lebeau (TeamB)
Date: Mon, 16 Feb 2004 22:20
21 lines
1714 bytes
"peter" <peterna@attglobal.net> wrote in message
news:4030fb31$1@newsgroups.borland.com...

> does the call to CreateProcess need to specify
> how much memory will be used by the thread?

CreateProcess() has nothing to do with the spawned process's memory usage.
Each process is responsible for its own memory.

> I looked at the specification of the function, but I didn't
> see anything pertaining to the allotment of extra memory
> to a process.

That is because there isn't any.  The PE header of the spawned executable,
as created by the compiler used to generate the executable, contains the
memory size inside the executable itself.  The OS allocates the specified
amount of memory when needed while the executable is actually running.


Gambit
Technical Details
Message-ID: <4031406a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4030fb31$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4f0c7712e03f97fe
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-16 14:39:05 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4030fb31$1@newsgroups.borland.com>
Subject: Re: CreateProcess memory issues
Date: Mon, 16 Feb 2004 14:20:45 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <4031406a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076969578 67.22.138.253 (16 Feb 2004 14:12:58 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail