two variable with overlapped memory address
-
In my project,there are a lot of global members. To my surprise that I found two of the global member has the overlapped memory address. For example: member a begin at address 0x00457280 and the size of a is 14D(hex) member b begin at address 0x00457380 and the size of b is 848(hex) obviously the two member overlapped! But why?I have no idea on finding out a solution! WINXP+VC6+SP6
Don't look at me in that way!
-
In my project,there are a lot of global members. To my surprise that I found two of the global member has the overlapped memory address. For example: member a begin at address 0x00457280 and the size of a is 14D(hex) member b begin at address 0x00457380 and the size of b is 848(hex) obviously the two member overlapped! But why?I have no idea on finding out a solution! WINXP+VC6+SP6
Don't look at me in that way!
white jungle wrote:
In my project,there are a lot of global members.
BAD
white jungle wrote:
To my surprise that I found two of the global member has the overlapped memory address. For example: member a begin at address 0x00457280 and the size of a is 14D(hex) member b begin at address 0x00457380 and the size of b is 848(hex) obviously the two member overlapped! But why?I have no idea on finding out a solution!
Can you tell more about that variables, how are declared and so on...?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
In my project,there are a lot of global members. To my surprise that I found two of the global member has the overlapped memory address. For example: member a begin at address 0x00457280 and the size of a is 14D(hex) member b begin at address 0x00457380 and the size of b is 848(hex) obviously the two member overlapped! But why?I have no idea on finding out a solution! WINXP+VC6+SP6
Don't look at me in that way!
white jungle wrote:
member a begin at address 0x00457280 and the size of a is 14D(hex) member b begin at address 0x00457380 and the size of b is 848(hex)
How are you verifying this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb