User Profile

Collapse

Profile Sidebar

Collapse
aannn
aannn
Last Activity: Sep 1 '15, 05:07 AM
Joined: Sep 15 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Error: it contains an object field at offset 75 that is incorrectly aligned

    Error as like this-->object field at offset 75 that is incorrectly aligned or overlapped by a non-object field. But here size constant is 3 so I think after 72 offset will be 75..If I change the offset to 76 it will works fine. I think reason is that size of int is 4. After changing that code will be like this.
    Code:
    [FieldOffset(72)]
                [MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
                public int[] DC;
    ...
    See more | Go to post

  • aannn
    started a topic Byte array to textboxes

    Byte array to textboxes

    Hi,
    In my application there is a structure that holds 200 parameters for 200 tests. These structure is converted to byte array . I want to write this byte array to a file in save button and when I click open button, this file must open and write these bytes to corresponding text boxes. How it possible.??
    See more | Go to post

  • How to access functions between two child forms in c#?

    Hi..
    How can I access a function in a child form from another child form of a same owner?
    See more | Go to post

  • aannn
    started a topic Form hanging.

    Form hanging.

    Hi..
    I have 2 forms. Form1&form2
    code in form1
    Code:
         BackgroundWorker Bw = new BackgroundWorker();
        private void Form1_Load(object sender, EventArgs e)
            {
                 serialPort1.Open();
                            
            }
          private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
            {
                int
    ...
    See more | Go to post
    Last edited by Rabbit; Sep 15 '14, 04:01 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
No activity results to display
Show More
Working...