🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #65

Re: System.Runtime.InteropServices.Marshal.SizeOf(MiaStruttura)

#65
From: Rafunk
Date: Tue, 16 Jan 2007 09:16
23 lines
1702 bytes
F. wrote:
> Usando la funzione riportata qui sotto ho notato che mi restituisce
> 96 byte mentre Mia struttura ne ha 92 (ho verificato manualmente
> contando i byte e anche attraverso registrazione del record su file..)
>
> Dove sbaglio?
>
> Questa funzione come funziona?
>
> Grazie della risposta.
>
> System.Runtime.InteropServices.Marshal.SizeOf(MiaStruttura)

Potrebbe dipendere dal padding (allineamento in memoria) degli elementi della
tua struttura.
Posta il codice che la definisce.

Bye

Raf

-----------------------------------------------------
Funk: cooler than the other side of the pillow.
Technical Details
Message-ID: <45ac97fe$0$13253$4fafbaef@reader5.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!feeder.news.tin.it!spool.news.tin.it!not-for-mail
References: <45ac1594$0$8385$4fafbaef@reader5.news.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,bc28f55628632a1f
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!feeder.news.tin.it!spool.news.tin.it!not-for-mail
From: "Rafunk" <zero@none0.it>
Newsgroups: free.it.visual-basic
References: <45ac1594$0$8385$4fafbaef@reader5.news.tin.it>
Subject: Re: System.Runtime.InteropServices.Marshal.SizeOf(MiaStruttura)
Date: Tue, 16 Jan 2007 10:16:24 +0100
MIME-Version: 1.0
Content-Type: text/plain;
 charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Lines: 24
Message-ID: <45ac97fe$0$13253$4fafbaef@reader5.news.tin.it>
Organization: TIN.IT (http://www.tin.it)
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 82.50.196.150
X-Trace: 1168939009 reader5.news.tin.it 13253 82.50.196.150:46689
X-Complaints-To: Please send abuse reports to abuse@tin.it