My app crashes on Windows, but not on OSX.

Timothy Grant wrote:

···

On Wed, Jul 16, 2008 at 4:32 PM, Timothy Grant <timothy.grant@gmail.com > <mailto:timothy.grant@gmail.com>> wrote:

    I know what changed as I'm adding new functionality. Situation gets
    a bit funny though. I took my PowerBook down to his office and said
    "See it works for me." and showed him just how well it worked. Then
    he said "Let me try." So I let him try and he's managed to make it
    break on OSX, and I can replicate the problem. It just needed to be
    exercised more thoroughly on OSX than it did on Vista. Immediate
    crash on Vista, not so immediate crash on OSX.

    So now I'm trying to figure out why my abuse of a wx.Grid is causing
    a segfault.

                #######################################
                # self.SetRowAttr(row - 1, self.attr) #
                #######################################

It may just need need a self.attr.IncRef()

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Thank you very much Robin, I’ll go find out what IncRef() does.

I thought I’d posted that I actually DID discover the problem AND why, but I can’t find the message now.

···

On Fri, Jul 18, 2008 at 12:10 PM, Robin Dunn robin@alldunn.com wrote:

Timothy Grant wrote:

On Wed, Jul 16, 2008 at 4:32 PM, Timothy Grant <timothy.grant@gmail.com mailto:timothy.grant@gmail.com> wrote:

I know what changed as I'm adding new functionality. Situation gets

a bit funny though. I took my PowerBook down to his office and said

"See it works for me." and showed him just how well it worked. Then

he said "Let me try." So I let him try and he's managed to make it

break on OSX, and I can replicate the problem. It just needed to be

exercised more thoroughly on OSX than it did on Vista. Immediate

crash on Vista, not so immediate crash on OSX.



So now I'm trying to figure out why my abuse of a wx.Grid is causing

a segfault.

#######################################

            # self.SetRowAttr(row - 1, self.attr) #

            #######################################

It may just need need a self.attr.IncRef()

Robin Dunn

Software Craftsman

http://wxPython.org Java give you jitters? Relax with wxPython!


Stand Fast,
tjg. [Timothy Grant]