A
Abhi
Hi,
I am repeatedly getting the NotSupportedException with
Marshal.StructureToPtr and Marshal.PtrToStructure in compact
framework. Could someone please clarify if they are supported on
compact framework? I am using a WM6 professional T-Mobile phone in the
VS 2005 environment.
Below are the exception details:
System.NotSupportedException was unhandled
Message="NotSupportedException"
StackTrace:
at System.Runtime.InteropServices.Marshal.StructureToPtrInternal()
at System.Runtime.InteropServices.Marshal.StructureToPtr()
at Something.SomethingElse.RawSerializeEx()
at SomeStruct.toByteArray()
at Something.WZCSAPI.DoSomething()
at Something.Form1.linkLabel1_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.LinkLabel.OnKeyDown()
at System.Windows.Forms.Control.WnProc()
at System.Windows.Forms.LinkLabel.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at Something.Program.Main()
Thanks,
Abhi
I am repeatedly getting the NotSupportedException with
Marshal.StructureToPtr and Marshal.PtrToStructure in compact
framework. Could someone please clarify if they are supported on
compact framework? I am using a WM6 professional T-Mobile phone in the
VS 2005 environment.
Below are the exception details:
System.NotSupportedException was unhandled
Message="NotSupportedException"
StackTrace:
at System.Runtime.InteropServices.Marshal.StructureToPtrInternal()
at System.Runtime.InteropServices.Marshal.StructureToPtr()
at Something.SomethingElse.RawSerializeEx()
at SomeStruct.toByteArray()
at Something.WZCSAPI.DoSomething()
at Something.Form1.linkLabel1_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.LinkLabel.OnKeyDown()
at System.Windows.Forms.Control.WnProc()
at System.Windows.Forms.LinkLabel.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at Something.Program.Main()
Thanks,
Abhi