Thread: Non-debug pgAdmin III builds
Hi Keith, If you do a release build of pgAdmin III in VC++, does it crash horribly on your system? In previous versions of wxWindows, I found it crashed when leaving one particular function (for absolutely no reason that I could find - it was literally on the closing brace!). I tried it again today with wx 2.4.0, and now it seems to crash on any treeview selection. I'm a bit stumped as this only happens in the release build. Any ideas? Regards, Dave.
Attachment
> If you do a release build of pgAdmin III in VC++, does it crash horribly > on your system? In previous versions of wxWindows, I found it crashed > when leaving one particular function (for absolutely no reason that I > could find - it was literally on the closing brace!). I tried it again > today with wx 2.4.0, and now it seems to crash on any treeview > selection. Dave, Do you mean the build crashes or the program crashes once it's built? If you mean the build crashes (i.e., won't link) -- Make sure to load up wxWindows.DSW and build the release version of wxWindows. Also, build the release versions of STC and XRC (those are both in the contrib directory I believe). When I had those three libs built, everything worked fine. I can't get it to crash at all, but I didn't do a super-thorough test, just cursory. Where is yours crashing? One thing -- I don't have two different builds for libpq.lib (just one for both release and debug). And it might be a pretty old build -- in fact, the last time I built it was on Dec 9, 2002. -Keith
> -----Original Message----- > From: efesar [mailto:efesar@nmia.com] > Sent: 18 March 2003 21:28 > To: Dave Page > Cc: pgadmin-hackers > Subject: Re: [pgadmin-hackers] Non-debug pgAdmin III builds > > > > Dave, > > Do you mean the build crashes or the program crashes once it's built? > > If you mean the build crashes (i.e., won't link) -- Make sure > to load up wxWindows.DSW and build the release version of > wxWindows. Also, build the release versions of STC and XRC > (those are both in the contrib directory I believe). > > When I had those three libs built, everything worked fine. I > can't get it to crash at all, but I didn't do a > super-thorough test, just cursory. > > Where is yours crashing? It's a program crash, whenever a treeview item is clicked (right or left). I also have one libpq, from <ahem> 29th October (7.3dev), but it crashes before anything in that gets called anyway. Regards, Dave.
Attachment
Dave, > It's a program crash, whenever a treeview item is clicked (right or > left). I don't have any crashes on the treeview. I would say clean everything, and rebuild everything. > I also have one libpq, from <ahem> 29th October (7.3dev), but it crashes > before anything in that gets called anyway. I've attached mine (zipped). Based on what you say, that probably won't help but it might. Oh, BTW, I'm running SP5 on Visual C 6.0. What are you running? Maybe that makes a difference. And what is your OS? -Keith
Attachment
> -----Original Message----- > From: efesar [mailto:efesar@nmia.com] > Sent: 19 March 2003 02:10 > To: Dave Page > Cc: pgadmin-hackers > Subject: RE: [pgadmin-hackers] Non-debug pgAdmin III builds > > > > Dave, > > > It's a program crash, whenever a treeview item is clicked (right or > > left). > > I don't have any crashes on the treeview. I would say clean > everything, and rebuild everything. Done that. > > > I also have one libpq, from <ahem> 29th October (7.3dev), but it > > crashes before anything in that gets called anyway. > > I've attached mine (zipped). Based on what you say, that > probably won't help but it might. I've actually rebuilt from the 7.3.2 tarball. > > Oh, BTW, I'm running SP5 on Visual C 6.0. What are you > running? Maybe that makes a difference. And what is your OS? VC++ 6.0 SP5, though I also have VS.Net installed. Windows XP Pro SP1 It runs fine in debug build, just crashes horrible on release builds. I'm kinda stumped to be honest... Regards, Dave.
Attachment
Dave Page wrote: >Hi Keith, > >If you do a release build of pgAdmin III in VC++, does it crash horribly >on your system? In previous versions of wxWindows, I found it crashed >when leaving one particular function (for absolutely no reason that I >could find - it was literally on the closing brace!). I tried it again >today with wx 2.4.0, and now it seems to crash on any treeview >selection. > >I'm a bit stumped as this only happens in the release build. Any ideas? > >Regards, Dave. > -----Original Message----- > From: Andreas Pflug [mailto:Andreas.Pflug@web.de] > Sent: 30 March 2003 03:09 > To: Dave Page; pgadmin-hackers@postgresql.org > Subject: Re: [pgadmin-hackers] can't compile > > > Ok, got it. > wxDialog or wxFrame member functions that are used in the event map > MUST be declared with a correct argument. > OnClose() or OnRefresh() will crash, OnClose(wxCloseEvent&) or > OnRefresh(wxCommandEvent&) are ok. Did I miss a message? I don't remember seeing anything about compilation problems.. Dave, my reply to 'cant compile' actually was meant for this thread. Regards, Andreas
> -----Original Message----- > From: Andreas Pflug [mailto:Andreas.Pflug@web.de] > Sent: 30 March 2003 17:26 > To: Dave Page; pgadmin-hackers@postgresql.org > Subject: Re: [pgadmin-hackers] Non-debug pgAdmin III builds > > > > > Ok, got it. > > wxDialog or wxFrame member functions that are used in the event map > > MUST be declared with a correct argument. > > OnClose() or OnRefresh() will crash, OnClose(wxCloseEvent&) or > > OnRefresh(wxCommandEvent&) are ok. > > > Did I miss a message? I don't remember seeing anything about > compilation > > > problems.. > > > Dave, > > my reply to 'cant compile' actually was meant for this thread. > Ahh, that makes sense. Nice catch - thanks! I will update my code... Regards, Dave.
Dave Page wrote: >Ahh, that makes sense. > >Nice catch - thanks! I will update my code... > >Regards, Dave. > Dave, you might want to wait for my code to come. It's all done there, and has much more than just that fix, you bet. I added about 3 dozens of files, and changed virtually all others. I'll send you a src zip quite soon. Regards, Andreas
> -----Original Message----- > From: Andreas Pflug [mailto:Andreas.Pflug@web.de] > Sent: 30 March 2003 18:08 > To: Dave Page; pgadmin-hackers@postgresql.org > Subject: Re: [pgadmin-hackers] Non-debug pgAdmin III builds > > > Dave Page wrote: > > >Ahh, that makes sense. > > > >Nice catch - thanks! I will update my code... > > > >Regards, Dave. > > > Dave, > > you might want to wait for my code to come. It's all done > there, and has > much more than just that fix, you bet. I added about 3 dozens > of files, > and changed virtually all others. I'll send you a src zip quite soon. OK, will do, thanks! Regards, Dave.