Posted: Sun Oct 02, 2005 2:18 am
Friends, the mistake is mine.
Turns out I had entered the shared memory id as 0x7a6d200e instead of the default 0x7a6d2000. The zmc modules create their shared memory id by ORing their monitor id with the key. Problem is that the result of that ORing is the same for more than one module for example 0x0e | 0xc = 0x0e, and 0x0e | 0x0a also = 0x0e. So, some of my zmc modules were sharing the same shared memory, which is why my sources were getting mixed up.
Phil/Cordel, I would suggest that this is a piece of code that could be made a little more robust, perhaps by masking off those lower 8 bits before the OR.
Anyway, we found a bug along the way, and I'm happy to have this system running at long last.
Thanks for your help (you too, James).
Matt
Turns out I had entered the shared memory id as 0x7a6d200e instead of the default 0x7a6d2000. The zmc modules create their shared memory id by ORing their monitor id with the key. Problem is that the result of that ORing is the same for more than one module for example 0x0e | 0xc = 0x0e, and 0x0e | 0x0a also = 0x0e. So, some of my zmc modules were sharing the same shared memory, which is why my sources were getting mixed up.
Phil/Cordel, I would suggest that this is a piece of code that could be made a little more robust, perhaps by masking off those lower 8 bits before the OR.
Anyway, we found a bug along the way, and I'm happy to have this system running at long last.
Thanks for your help (you too, James).
Matt