Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages
Started by Colin B Maharaj
Tue, 23 May 2006 21:43
Memory used by a process
Author: Colin B Maharaj
Date: Tue, 23 May 2006 21:43
Date: Tue, 23 May 2006 21:43
8 lines
1110 bytes
1110 bytes
Hi all, I have a Process ID of a running process with threads, how can I tell how many threads are present and how much RAM is being used by the process (C++ Builder Code please). Thanks!!!! Colin B Maharaj Trinidad, WI.
Re: Memory used by a process
Author: Remy Lebeau (TeamB)
Date: Tue, 23 May 2006 22:32
Date: Tue, 23 May 2006 22:32
17 lines
1375 bytes
1375 bytes
"Colin B Maharaj" <noreply@myhost.com> wrote in message news:44738216$1@newsgroups.borland.com... > I have a Process ID of a running process with threads, how > can I tell how many threads are present Look at the CreateToolhelp32Snapshot() and Thread32First/Next() functions. Create a snapshot of the system, then you can enumerate the threads that belong to the ID you have. > and how much RAM is being used by the process Have a look at the Heap32First/Next() functions. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads