Click here to Skip to main content
15,925,113 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: RichTextBox editor Pin
Anonymous28-Aug-05 7:23
Anonymous28-Aug-05 7:23 
QuestionMenu bar Pin
tassu27-Aug-05 22:38
tassu27-Aug-05 22:38 
QuestionSetSocketOption - TypeOfService doesn't work Pin
Gal Shadeck27-Aug-05 22:24
Gal Shadeck27-Aug-05 22:24 
AnswerRe: SetSocketOption - TypeOfService doesn't work Pin
Anonymous31-Aug-05 20:26
Anonymous31-Aug-05 20:26 
Question8bit encoding Pin
nameoraliasfornoob27-Aug-05 21:07
nameoraliasfornoob27-Aug-05 21:07 
QuestionUse of .Net remoting for client server architecture Pin
dashik25-Aug-05 7:23
dashik25-Aug-05 7:23 
AnswerRe: Use of .Net remoting for client server architecture Pin
Achintya Jha30-Aug-05 7:06
Achintya Jha30-Aug-05 7:06 
GeneralRe: Use of .Net remoting for client server architecture Pin
dashik30-Aug-05 7:34
dashik30-Aug-05 7:34 
QuestionHide form Pin
Anonymous25-Aug-05 1:21
Anonymous25-Aug-05 1:21 
AnswerRe: Hide form Pin
Dave Kreskowiak25-Aug-05 7:15
mveDave Kreskowiak25-Aug-05 7:15 
QuestionLocalization for edit EditorZone Pin
Anonymous25-Aug-05 0:37
Anonymous25-Aug-05 0:37 
GeneralNumericUpDown Problem Pin
wjr-itt24-Aug-05 12:17
wjr-itt24-Aug-05 12:17 
GeneralRe: NumericUpDown Problem Pin
wjr-itt25-Aug-05 4:01
wjr-itt25-Aug-05 4:01 
GeneralConverting bitmaps to stdole picture Pin
gorp12324-Aug-05 9:33
gorp12324-Aug-05 9:33 
GeneralOut of memory unhandled exception Pin
Silberztein23-Aug-05 14:37
Silberztein23-Aug-05 14:37 
GeneralRe: Out of memory unhandled exception Pin
Steve Pullan23-Aug-05 14:54
Steve Pullan23-Aug-05 14:54 
GeneralRe: Out of memory unhandled exception Pin
Silberztein23-Aug-05 17:24
Silberztein23-Aug-05 17:24 
GeneralRe: Out of memory unhandled exception Pin
Steve Pullan23-Aug-05 18:27
Steve Pullan23-Aug-05 18:27 
GeneralRe: Out of memory unhandled exception Pin
Silberztein24-Aug-05 7:51
Silberztein24-Aug-05 7:51 
GeneralRe: Out of memory unhandled exception Pin
Dave Kreskowiak23-Aug-05 14:58
mveDave Kreskowiak23-Aug-05 14:58 
GeneralRe: Out of memory unhandled exception Pin
Silberztein23-Aug-05 15:19
Silberztein23-Aug-05 15:19 
I have a Hungarian dictionary (several dozen millions of word forms) that I need to store into a Search tree.

The search tree is basically an ArrayList of states; each state has the following fields:

public class DState
{
ArrayList CharsToDests;
int infonb;
int canonical;
(... and then the methods)
}

in which CharsToDests contains alternatively characters, and their corresponding outgoing state index, e.g.:

('a',23,'b',3456,'c',1200023,'d',57)

For some reason I don't understand, my ANTS profiler says each state consumes 20 bytes (I would have thought 4x3 = 12).

BTW, do you know how much memory such an ArrayList takes? would it be better to use two synchronized type-consistent ArrayList, e.g.:

ArrayList Characters;
ArrayList OutgoingStateNb;

or something else (I cannot use an array because these lists grow: I just need a list of chars and a list of int).

Anyways, after having stored 5 million words,
that gives me approx. 50 million states, with the connections in the Arraylist => I get approx. 2GBRAM and then the Out of Memory exception (that I cannot catch).

--Max

GeneralRe: Out of memory unhandled exception Pin
Steve Pullan23-Aug-05 15:31
Steve Pullan23-Aug-05 15:31 
GeneralRe: Out of memory unhandled exception Pin
Dave Kreskowiak24-Aug-05 6:10
mveDave Kreskowiak24-Aug-05 6:10 
GeneralRe: Out of memory unhandled exception Pin
Silberztein24-Aug-05 8:00
Silberztein24-Aug-05 8:00 
GeneralRe: Out of memory unhandled exception Pin
Dave Kreskowiak24-Aug-05 11:22
mveDave Kreskowiak24-Aug-05 11:22 

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.