Click here to Skip to main content
15,926,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Java Launcher Pin
S. Senthil Kumar3-May-05 20:37
S. Senthil Kumar3-May-05 20:37 
Generala question on heap..... Pin
namaskaaram3-May-05 20:14
namaskaaram3-May-05 20:14 
GeneralRe: a question on heap..... Pin
RYU^^3-May-05 20:34
RYU^^3-May-05 20:34 
GeneralRe: a question on heap..... Pin
Bob Stanneveld3-May-05 22:19
Bob Stanneveld3-May-05 22:19 
GeneralRe: a question on heap..... Pin
RYU^^6-May-05 15:10
RYU^^6-May-05 15:10 
GeneralRe: a question on heap..... Pin
Bob Stanneveld8-May-05 1:14
Bob Stanneveld8-May-05 1:14 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 5:42
Toby Opferman10-Jun-05 5:42 
GeneralRe: a question on heap..... Pin
Bob Stanneveld10-Jun-05 9:50
Bob Stanneveld10-Jun-05 9:50 
No, I use some other technique which creates some files that are used as a heap.. This allows me to allocate virtual unlimited memory! Confused? Let me elaborate:

I have a class, which uses a file where you can allocate data in. You don't get an ordinary file pointer, or just an adress, you get a struct, which has a heap id (the object which handles the file) and a block id ( a ID from the index ). This allows me to move all the memory I want without affecting anything I don't want.

How do I access the memory like anything else you ask? Well, I use a heap manager that manages the heap objects (the files) and a cache. When you request a certain data block, the heap manager loads the block into the cache and you get a pointer to it. When you write to the address, it's marked as dirty, and when the cache is cleaned up, it's written back to the file.

I've almost finished the design of the little library and if you watch my blog once in a while, you should notice it when I post the first of three articles. Maybe you find them interesting. Big Grin | :-D

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 12:35
Toby Opferman10-Jun-05 12:35 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 12:41
Toby Opferman10-Jun-05 12:41 
GeneralRe: a question on heap..... Pin
Bob Stanneveld10-Jun-05 13:24
Bob Stanneveld10-Jun-05 13:24 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 13:36
Toby Opferman10-Jun-05 13:36 
GeneralRe: a question on heap..... Pin
Toby Opferman10-Jun-05 14:02
Toby Opferman10-Jun-05 14:02 
GeneralRe: a question on heap..... Pin
Bob Stanneveld11-Jun-05 1:25
Bob Stanneveld11-Jun-05 1:25 
GeneralRe: a question on heap..... Pin
Toby Opferman11-Jun-05 7:49
Toby Opferman11-Jun-05 7:49 
GeneralRe: a question on heap..... Pin
Bob Stanneveld12-Jun-05 6:00
Bob Stanneveld12-Jun-05 6:00 
GeneralRe: a question on heap..... Pin
Toby Opferman12-Jun-05 7:32
Toby Opferman12-Jun-05 7:32 
GeneralRe: a question on heap..... Pin
Toby Opferman12-Jun-05 7:52
Toby Opferman12-Jun-05 7:52 
GeneralRe: a question on heap..... Pin
Toby Opferman12-Jun-05 8:21
Toby Opferman12-Jun-05 8:21 
GeneralRe: a question on heap..... Pin
Bob Stanneveld12-Jun-05 20:47
Bob Stanneveld12-Jun-05 20:47 
GeneralRe: a question on heap..... Pin
Toby Opferman13-Jun-05 10:28
Toby Opferman13-Jun-05 10:28 
GeneralRe: a question on heap..... Pin
Bob Stanneveld13-Jun-05 11:51
Bob Stanneveld13-Jun-05 11:51 
GeneralRe: a question on heap..... Pin
Toby Opferman14-Jun-05 12:46
Toby Opferman14-Jun-05 12:46 
GeneralRe: a question on heap..... Pin
Bob Stanneveld14-Jun-05 20:42
Bob Stanneveld14-Jun-05 20:42 
GeneralRe: a question on heap..... Pin
Toby Opferman9-Jun-05 19:14
Toby Opferman9-Jun-05 19:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.