We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
HI Iam having problem when pointer to the location is not on a 4 byte boundary (divisible by 4). when i call the function and pass arguments, i see that inside the called function, it points to an aligned memory location which is probably pointing to second or third byte.(I was expecting it to point to the first byte).
Since i have to type pointer to structure and pass it on as argument to a function, using __packed is also not useful.
Is there a work around?
-vivek
it would be interesting to see a subset of the code that causes the problem. how come the data is unaligned? are you parsing an image? you can to work with pointer to an 'unsigned char', if you can modify the prototype of your function.