X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Sep 2012 09:49 AM by  anon
shmmap error
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:25
New Member


--
21 Sep 2012 09:49 AM
    I am getting an error message will trying to use shmmap: SHMMAP: This machine cannot access data of type INT at this alignment Not sure what exactly it means, but would like learn more. I am trying to shmmap a file and using offset to try to start in the file. Can the "offset" parameter be used with a shmmaped file?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    24 Sep 2012 10:27 AM
    In the IDL help regarding SHMMAP and the OFFSET keyword, there is a mention of the alignment and the need to be careful when specifying the offset that seems related to your error. Perhaps this will help: Most computer hardware is not able to access arbitrary data types at arbitrary memory addresses. Data must be properly aligned for its type or the program will crash with an alignment error (often called a bus error) when the data is accessed. The specific rules differ between machines, but in many cases the address of a data object must be evenly divisible by the size of that object. IDL will issue an error if you specify an offset that is not valid for the array specified.
    You are not authorized to post a reply.