memcpy() : 访问违规写入位置

memcpy () : Access violation writing location

我收到访问冲突写入位置 0xB7066CBC 而 运行 这个 code.Unable 想弄清楚发生了什么,有什么建议吗?

int main(void)

{
unsigned int SIG = 0x00000000;
unsigned int *base = (unsigned int *)0xb7066CBC;
SIG = 0x5a5a5a5a;
memcpy(base ,&SIG, 4);
}

以下是我遇到此故障时得到的值。

&SIG 0x003bf7c0 {0x5a5a5a5a}
SIG  0x5a5a5a5a
base 0xb7066cbc {???}

I am getting Access violation writing location 0xB7066CBC while running this code.Unable to figure out whats going on

发生的事情是 0xB7066CBC 位置的 4 个字节不可写。

您的问题很可能在于任何推理使您相信这些字节 (或应该)可写的,但是由于您没有提供任何线索说明什么这个推理可能是,很难提供任何帮助。