Click here to Skip to main content
15,918,003 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer4-Jul-06 19:35
Steve Messer4-Jul-06 19:35 
QuestionaxMaskedEdit Control Register error [modified] Pin
freshonlineMax24-Jun-06 10:02
freshonlineMax24-Jun-06 10:02 
QuestionC# Error: The object is currently in use elsewhere. Pin
Marco Delgado24-Jun-06 4:36
Marco Delgado24-Jun-06 4:36 
AnswerRe: C# Error: The object is currently in use elsewhere. Pin
mav.northwind24-Jun-06 10:14
mav.northwind24-Jun-06 10:14 
QuestionPassing variables from C # to a COM object written in C++ Pin
Dave_Roach24-Jun-06 3:31
Dave_Roach24-Jun-06 3:31 
AnswerRe: Passing variables from C # to a COM object written in C++ Pin
Rob Graham24-Jun-06 6:35
Rob Graham24-Jun-06 6:35 
QuestionGetting the memory footprint of objects - sizeOf Pin
srev24-Jun-06 3:05
srev24-Jun-06 3:05 
AnswerRe: Getting the memory footprint of objects - sizeOf Pin
Guffa24-Jun-06 5:33
Guffa24-Jun-06 5:33 
You can use sizeof in C# too, but only on value types.

There is no method to get the size of objects, as that rarely makes any sense. If you for an example do like this:

string s = new string('x', 50000);<br />
string[] a = new string[10000];<br />
for (int i=0; i<10000; i++) a[i] = s;


Now you have an array of 10000 strings that each uses 100 kb. That adds up to about one gigabyte. But as all the strings reference the same memory area, it actually only uses about 140 kb.

If you want the memory size of an array you have to add the items yourself, and if there can be items referencing the same object, you have to decide how to handle that.

---
b { font-weight: normal; }

AnswerRe: Getting the memory footprint of objects - sizeOf Pin
Jun Du24-Jun-06 6:04
Jun Du24-Jun-06 6:04 
Questionsql script execuation Pin
_tasleem24-Jun-06 2:59
_tasleem24-Jun-06 2:59 
AnswerRe: sql script execuation Pin
Tamimi - Code24-Jun-06 3:16
Tamimi - Code24-Jun-06 3:16 
GeneralRe: sql script execuation Pin
_tasleem24-Jun-06 3:41
_tasleem24-Jun-06 3:41 
GeneralRe: sql script execuation Pin
Tamimi - Code24-Jun-06 3:47
Tamimi - Code24-Jun-06 3:47 
AnswerRe: sql script execuation Pin
Michael P Butler24-Jun-06 7:05
Michael P Butler24-Jun-06 7:05 
AnswerRe: sql script execuation Pin
Colin Angus Mackay24-Jun-06 10:46
Colin Angus Mackay24-Jun-06 10:46 
GeneralRe: sql script execuation Pin
_tasleem27-Jun-06 4:47
_tasleem27-Jun-06 4:47 
Questionc # code for pushing objects from desktop to bluetooth devices Pin
piyushnarain24-Jun-06 2:31
piyushnarain24-Jun-06 2:31 
QuestionGDI+ question aagain Pin
User 309585924-Jun-06 2:19
User 309585924-Jun-06 2:19 
AnswerRe: GDI+ question aagain Pin
Ed.Poore24-Jun-06 12:48
Ed.Poore24-Jun-06 12:48 
QuestionObject must implement IConvertible Pin
ujupanmester24-Jun-06 1:46
ujupanmester24-Jun-06 1:46 
AnswerRe: Object must implement IConvertible Pin
leppie24-Jun-06 7:22
leppie24-Jun-06 7:22 
GeneralRe: Object must implement IConvertible Pin
ujupanmester24-Jun-06 12:58
ujupanmester24-Jun-06 12:58 
QuestionHelp me [modified] Pin
AnhTin24-Jun-06 0:33
AnhTin24-Jun-06 0:33 
AnswerRe: Help me Pin
Jun Du24-Jun-06 2:28
Jun Du24-Jun-06 2:28 
QuestionTransaction control [modified - more details on the problem] Pin
jith - iii24-Jun-06 0:04
jith - iii24-Jun-06 0:04 

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.