Re: Crash during displaying drop-down menu for

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Tomasz Rybak <bogomips(at)post(dot)pl>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, pgAdmin Hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Crash during displaying drop-down menu for
Date: 2005-10-08 20:49:09
Message-ID: 434830C5.3050406@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Tomasz Rybak wrote:
> I think I know what's causing this crash.
> However, I don't know where to fix it.

Things are quite easy after all.
That lengthy code in line 460ff is for some beautifying of "new xxx"
stuff in the context menu. If there's no object creatable, the "New
Object" menu will be disabled, and so newItem will receive 0 by design
(thus wxASSERT is wrong). In that case, most of the code can be skipped.

Fixed in svn, thanks for reporting.

Regards,
Andreas

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Tomasz Rybak 2005-10-10 14:53:38 Hint files installation patch
Previous Message svn 2005-10-08 20:49:00 SVN Commit by andreas: r4523 - in trunk/pgadmin3: . src/include src/include/images src/main src/schema src/slony src/slony/include