[ctypes] access violation reading

>>> import classes as c
>>> a = 'Hello,world!'
>>> c.Pointer(id(a))
Traceback (most recent call last):
  File "<pyshell#56>", line 1, in <module>
    p = c.Pointer(id(a))
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\classes.py", line 158, in __init__
    self.data = self.read(id)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\classes.py", line 172, in read
    return c._string_at(self.id, length)
OSError: exception: access violation reading 0x0000000002A80000
>>> 0x0000000002A80000
44564480
>>> id(a)
44148016

传参44148016,为什么string_at实际接受到44564480?
PS:classes是我写的模块

参数问题

你的classes源代码是什么,能把Pointer的定义过程发出来吗?

class Pointer(object):
    def __init__(self, id):
        self.id = c.c_ulong(id)
        self.data = self.read(id)
    
    def __iadd__(self, other):
        self.id += other
        self.data = self.read(self.id)
    
    def __isub__(self, other):
        self.id -= other
        self.data = self.read(self.id)
    
    def write(self, byte, count):
        c.memset(self.id, byte, count)
    
    def read(self, length = 1):
        return c._string_at(self.id, length)