Re: Named shared memory without synchronization

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Dan Schwartz" <DanSchwartz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:536877B2-7881-45CB-89A1-11ACBFF1EA9E@xxxxxxxxxxxxx
Outside of using #pragma pack how could a single integer become
missaligned?

char buf[6];
int* p = (int*)(buf + 2);
int n = *p; // misaligned access

--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Downloading webpages without images
    ... "Download Control" section ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Capturing an event from a BHO
    ... the Web browser is opened. ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: zoom browser
    ... IEZoom.exe Changes the Font Size of the ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Overwrite data_seg variable
    ... cleohm wrote: ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.vc.language)
  • Re: 7.1 vs 8.0: Inheritance and Events
    ... This group is dedicated to native C++ programming. ... With sufficient thrust, pigs fly just fine. ... overhead. ... -- RFC 1925 ...
    (microsoft.public.vc.language)