Adam H.Pendleton wrote:
> When trying to add a new server, I get this crash:
>
> (gdb) c
> Continuing.
> *** malloc[2954]: Deallocation of a pointer not malloced: 0xbfffea10;
> This could be a double free(), or free() called with the middle of an
> allocated block; Try setting environment variable MallocHelp to see
> tools to help debug
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> 0x00076914 in frmConnect::GetDescription() (this=0xbfffea10) at
> ui/frmConnect.cpp:145
> 145 return txtDescription->GetValue();
> (gdb)
>
> And the backtrace:
>
> (gdb) bt
> #0 0x00076914 in frmConnect::GetDescription() (this=0xbfffea10) at
> ui/frmConnect.cpp:145
> #1 0x0003db88 in pgServer::Connect(wxFrame*, bool) (this=0xf44a1b0,
> form=0xb853600, lockFields=false) at schema/pgServer.cpp:108
Hm, seems the txtDescription isn't valid; why? When reviewing the code
in frmConnect, I wonder about those Destroy() in OnOk() and OnCancel();
looks dubious. I'll check this later.
> Also, attached is the way the add server dialog looks on the Mac.
> There seems to be some kind of size issue.
>
This is probably our well-known font inheritance problem. Pplease verify
this by adding SetFont(parent->GetFont()) in src/mac/control.cpp line
397 (after SetSize....)
Regards,
Andreas