Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Как можно узнать? [D6]


Man-In-Red ©   (2002-08-20 19:11:00) 

Cколько памяти (RAM) будет жрать мое приложение?


Man-In-Red   (2002-08-20 19:58:00) [1]


> kima © (20.08.02 19:43)

Ладно, сенкс...


kima   (2002-08-20 19:43:00) [2]

эй осторожно!!! у мя комп грохнулся после нескольких тестов!!


kima   (2002-08-20 19:41:00) [3]

The LocalSize function returns the current size, in bytes, of the specified local memory object.

UINT LocalSize(

HLOCAL hMem // handle of local memory object
);
Parameters

hMem

Identifies the local memory object. This handle is returned by the LocalAlloc, LocalReAlloc, or LocalHandle function.

Return Value

If the function succeeds, the return value is the size, in bytes, of the specified local memory object. If the specified handle is not valid or if the object has been discarded, the return value is zero. To get extended error information, call GetLastError.

Remarks

The size of a memory block may be larger than the size requested when the memory was allocated.
To verify that the specified object"s memory block has not been discarded, call the LocalFlags function before calling LocalSize.

See Also

LocalAlloc, LocalFlags, LocalHandle, LocalReAlloc

Не подойдет? тока что сувать в hmem не придумаю nil не подходит
0 - oleout32.dll error
1 - черт ногу сломит error


kima   (2002-08-20 19:33:00) [4]

щас посмотрю наверняка win32.hlp есть


Man-In-Red   (2002-08-20 19:28:00) [5]


> kima © (20.08.02 19:26)

Ну можно сколько и моя прога вообще!


Man-In-Red   (2002-08-20 19:27:00) [6]


> RV © (20.08.02 19:18)

Спасибо...


kima   (2002-08-20 19:26:00) [7]

> Man-In-Red © (20.08.02 19:15
так тебе надо сколько твоя
прога занимает или ее var/const?


RV   (2002-08-20 19:18:00) [8]

sizeof


Man-In-Red   (2002-08-20 19:15:00) [9]


> kima © (20.08.02 19:12)

Попробую, но вообще, сколько кушает памяти каждая переменная или константа? Ну например Integer, String, TFont, TColor и другие?


kima   (2002-08-20 19:12:00) [10]

скачай прогу taskinfo2002
и проверяй


Наверх

Титульная страница Поиск, карта сайта Написать письмо