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


Groups > comp.lang.python > #88153 > unrolled thread

Re: ctypes problem: segfault with pointer usage

Started byChris Angelico <rosuav@gmail.com>
First post2015-03-28 00:27 +1100
Last post2015-03-28 00:27 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#88153 — Re: ctypes problem: segfault with pointer usage

FromChris Angelico <rosuav@gmail.com>
Date2015-03-28 00:27 +1100
SubjectRe: ctypes problem: segfault with pointer usage
Message-ID<mailman.250.1427462832.10327.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web