Re: [pgadmin-support] possible memory leak in Server Status window

2011-02-12 Thread Guillaume Lelarge
Le 12/02/2011 15:22, Dave Page a écrit : > On Sat, Feb 12, 2011 at 9:23 AM, Guillaume Lelarge > wrote: >> I know Peter and Dave talked about some stuff I actually didn't >> understand, but it seems it would take some time to do. So, I prefer >> having this simple and effective fix right now :) >

Re: [pgadmin-support] possible memory leak in Server Status window

2011-02-12 Thread Peter Geoghegan
By the way, there is a macro based smart pointer class in wx 2.8, but that sounds like quite a bit more trouble than it's worth. -- Regards, Peter Geoghegan -- Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org) To make changes to your subscription: http://www.postgresql.org/

Re: [pgadmin-support] possible memory leak in Server Status window

2011-02-12 Thread Dave Page
On Saturday, February 12, 2011, Peter Geoghegan wrote: > On 12 February 2011 14:22, Dave Page wrote: >> Note the lack of a delete - that's the point here; it's not needed >> because as soon as the smart pointer goes out of scope, it's >> destructor will delete foo. That means you don't have to re

Re: [pgadmin-support] possible memory leak in Server Status window

2011-02-12 Thread Peter Geoghegan
On 12 February 2011 14:22, Dave Page wrote: > Note the lack of a delete - that's the point here; it's not needed > because as soon as the smart pointer goes out of scope, it's > destructor will delete foo. That means you don't have to remember to > include the delete in each of the many exit point

Re: [pgadmin-support] Enpty field, grid editor, NOT NULL

2011-02-12 Thread Dave Page
On Sat, Feb 12, 2011 at 9:50 AM, Vladimir Kokovic wrote: > Hi, > > pgAdmin GIT version. > > If I try to empty a varchar NOT NULL field(grid editor) and then leave > the row, error message box appear: > > An error has occurred: > ERROR:  null value in column "slike" violates not-null constraint Ye

Re: [pgadmin-support] possible memory leak in Server Status window

2011-02-12 Thread Dave Page
On Sat, Feb 12, 2011 at 9:23 AM, Guillaume Lelarge wrote: > I know Peter and Dave talked about some stuff I actually didn't > understand, but it seems it would take some time to do. So, I prefer > having this simple and effective fix right now :) :-) We were talking about smart pointers - basica

[pgadmin-support] Enpty field, grid editor, NOT NULL

2011-02-12 Thread Vladimir Kokovic
Hi, pgAdmin GIT version. If I try to empty a varchar NOT NULL field(grid editor) and then leave the row, error message box appear: An error has occurred: ERROR: null value in column "slike" violates not-null constraint Best regards, Vladimir Kokovic, DP senior, Belgrade, Serbia -- Sent via p

Re: [pgadmin-support] possible memory leak in Server Status window

2011-02-12 Thread Julius Tuskenis
2011.02.12 10:23, Guillaume Lelarge rašė: I know Peter and Dave talked about some stuff I actually didn't understand, but it seems it would take some time to do. So, I prefer having this simple and effective fix right now:) Thank you. Is there a nightly build for windows? Thanks, Julius, for re

Re: [pgadmin-support] possible memory leak in Server Status window

2011-02-12 Thread Guillaume Lelarge
Le 11/02/2011 11:42, Julius Tuskenis a écrit : > Hello, Guillaume > > Please look at frmStatus::fillLogfileCombo(). Please note, that the set > is defined and assigned, but then as it has not enough rows to be > "interesting" the function returns 0 and exits. So "delete set;" is > never called. Ca