Re: Problem with Marshal.SizeOf in CF 2.0
- From: "<ctacke/>" <ctacke[@]opennetcf[dot]com>
- Date: Mon, 15 May 2006 08:39:59 -0400
What's your definition of LINECALLPARAMS? It likely has an embedded
pointer, which is causing the marshaler grief.
-Chris
"Per Rasmussen" <p> wrote in message
news:OJrMnkBeGHA.2068@xxxxxxxxxxxxxxxxxxxxxxx
When I execute these two lines in CF 2.0:
Type t1 = typeof(LINECALLPARAMS);
int a1 = Marshal.SizeOf(t1);
I get a NotSupportedException on the second line. According to the docs it
should not even be able to throw this exception. Here is a stacktrace:
ved System.Runtime.InteropServices.Marshal.SizeOfInternal()
ved System.Runtime.InteropServices.Marshal.SizeOf()
ved System.Runtime.InteropServices.Marshal.SizeOf()
...
"ved" means at (in danish).
Can anybody help me out?
Thanks in advance,
Per Rasmussen.
.
- Follow-Ups:
- Re: Problem with Marshal.SizeOf in CF 2.0
- From: Per Rasmussen
- Re: Problem with Marshal.SizeOf in CF 2.0
- References:
- Problem with Marshal.SizeOf in CF 2.0
- From: Per Rasmussen
- Problem with Marshal.SizeOf in CF 2.0
- Prev by Date: Re: create shortcut for my app
- Next by Date: Re: Thread Sleep RessourceS?
- Previous by thread: Problem with Marshal.SizeOf in CF 2.0
- Next by thread: Re: Problem with Marshal.SizeOf in CF 2.0
- Index(es):
Relevant Pages
|