Home All Groups Group Topic Archive Search About

Get size of instance

Author
5 Feb 2007 3:08 PM
news.microsoft.com
Hi all,

I would like to know the size of a dataset I have loaded in memory to decide
how to process some data in it, but it seems that I cannot use sizeof for
that....

Any other function which I might have missed?

Thanks
Shaun

Author
5 Feb 2007 3:12 PM
Shaun Camilleri
Ofc, I am named some not "news.micro....."




Show quote
"news.microsoft.com" <shaunnc.no.spam@holistic.com> wrote in message
news:ORDB1dTSHHA.1208@TK2MSFTNGP03.phx.gbl...
> Hi all,
>
> I would like to know the size of a dataset I have loaded in memory to
> decide how to process some data in it, but it seems that I cannot use
> sizeof for that....
>
> Any other function which I might have missed?
>
> Thanks
> Shaun
>
Author
6 Feb 2007 8:49 AM
Michael Nemtsev
Hello news.microsoft.com,

n> I would like to know the size of a dataset I have loaded in memory to
n> decide how to process some data in it, but it seems that I cannot use
n> sizeof for that....

try profilers, like CLR Profiler

n> Any other function which I might have missed?

Marshal.SizeOf()


---
WBR,  Michael  Nemtsev [C# MVP].  Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

AddThis Social Bookmark Button