Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88153

Re: ctypes problem: segfault with pointer usage

References <CAMA3c4_7vpeeVTNdac3EP1ZW8POr5XtZMkt2Tr684aiP+Vfy0A@mail.gmail.com> <CAMA3c49YM0keTjigowO1We3427O1Auxh4K0f4cvmizpoS6LaGA@mail.gmail.com>
Date 2015-03-28 00:27 +1100
Subject Re: ctypes problem: segfault with pointer usage
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.250.1427462832.10327.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Mar 28, 2015 at 12:22 AM, Bruno Cauet <brunocauet@gmail.com> wrote:
> Found the problem: I just have to add libgio.g_object_unref.argtypes =
> [ctypes.c_void_p]
> It now works flawlessly! Sorry for the noise.

Glad you solved it! I had a quick look at your email, but since you
attached your code rather than including it in-line, I would have had
to fiddle around a bit (Gmail won't let me just look at a .py
attachment in the browser, I have to download it and open it in my
editor). Tip: Next time, include your code in the body of the email,
and people are that much more likely to look at it.

Of course, the rubber-ducking effect isn't affected by this :)

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: ctypes problem: segfault with pointer usage Chris Angelico <rosuav@gmail.com> - 2015-03-28 00:27 +1100

csiph-web