Thread: Rev 4704

Rev 4704

From
Andreas Pflug
Date:
Dave,

I'm trying to make sense of your change of ShowTipOfTheDay's type from
bool to int for 1.5. The type was changed to bool in 1.3, and I don't
see a reason to change it again.

Regards,
Andreas

Re: Rev 4704

From
"Dave Page"
Date:

> -----Original Message-----
> From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
> Sent: 09 November 2005 10:20
> To: Dave Page; pgadmin-hackers
> Subject: Rev 4704
>
> Dave,
>
> I'm trying to make sense of your change of ShowTipOfTheDay's
> type from
> bool to int for 1.5. The type was changed to bool in 1.3, and I don't
> see a reason to change it again.

As we discussed last week, it causes an assert in debug builds on
Windows as wx seems to be unable to cast from DWORD to bool. Even
deleting the registry key and allowing it to recreate it itself doesn't
help.

This was the only fix that seemed to make sense without the pain of
fixing wx. Note that other true/false registry keys are stored as
true/false strings - I didn't change to follow that convention as it
would definitely not be backwards compatible with existing DWORD values.

/D


Re: Rev 4704

From
Andreas Pflug
Date:
Dave Page wrote:
>
>
>
>>-----Original Message-----
>>From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
>>Sent: 09 November 2005 10:20
>>To: Dave Page; pgadmin-hackers
>>Subject: Rev 4704
>>
>>Dave,
>>
>>I'm trying to make sense of your change of ShowTipOfTheDay's
>>type from
>>bool to int for 1.5. The type was changed to bool in 1.3, and I don't
>>see a reason to change it again.
>
>
> As we discussed last week, it causes an assert in debug builds on
> Windows as wx seems to be unable to cast from DWORD to bool. Even
> deleting the registry key and allowing it to recreate it itself doesn't
> help.

I remember seeing the msg now, but I don't see why we should care about
an assert in debug builds. Just ignore it, and touch the TOTD flag.
I'm seeing an unconditional error msgbox right now, which is even more
painful (and probably not restricted to debug build)

Regards,
Andreas

Re: Rev 4704

From
"Dave Page"
Date:

> -----Original Message-----
> From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
> Sent: 09 November 2005 12:50
> To: Dave Page
> Cc: pgadmin-hackers
> Subject: Re: Rev 4704
>
> Dave Page wrote:
> >
> >
> >
> >>-----Original Message-----
> >>From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
> >>Sent: 09 November 2005 10:20
> >>To: Dave Page; pgadmin-hackers
> >>Subject: Rev 4704
> >>
> >>Dave,
> >>
> >>I'm trying to make sense of your change of ShowTipOfTheDay's
> >>type from
> >>bool to int for 1.5. The type was changed to bool in 1.3,
> and I don't
> >>see a reason to change it again.
> >
> >
> > As we discussed last week, it causes an assert in debug builds on
> > Windows as wx seems to be unable to cast from DWORD to bool. Even
> > deleting the registry key and allowing it to recreate it
> itself doesn't
> > help.
>
> I remember seeing the msg now, but I don't see why we should
> care about
> an assert in debug builds. Just ignore it, and touch the TOTD flag.

That's the problem - touching the flag made no difference whatsoever,
and having it stop on assert every time I try to debug is really
annoying.

> I'm seeing an unconditional error msgbox right now, which is
> even more
> painful (and probably not restricted to debug build)

From what? I don't see any errors here anymore on Windows, and there's
nothing new appeared on Linux. The registry key type and on/off values
haven't changed either, so there should be no visible change.

Regards, Dave.

Re: Rev 4704

From
Andreas Pflug
Date:
Dave Page wrote:
>
>
>
>>-----Original Message-----
>>From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
>>Sent: 09 November 2005 12:50
>>To: Dave Page
>>Cc: pgadmin-hackers
>>Subject: Re: Rev 4704
>>
>>Dave Page wrote:
>>
>>>
>>>
>>>
>>>
>>>>-----Original Message-----
>>>>From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
>>>>Sent: 09 November 2005 10:20
>>>>To: Dave Page; pgadmin-hackers
>>>>Subject: Rev 4704
>>>>
>>>>Dave,
>>>>
>>>>I'm trying to make sense of your change of ShowTipOfTheDay's
>>>>type from
>>>>bool to int for 1.5. The type was changed to bool in 1.3,
>>
>>and I don't
>>
>>>>see a reason to change it again.
>>>
>>>
>>>As we discussed last week, it causes an assert in debug builds on
>>>Windows as wx seems to be unable to cast from DWORD to bool. Even
>>>deleting the registry key and allowing it to recreate it
>>
>>itself doesn't
>>
>>>help.
>>
>>I remember seeing the msg now, but I don't see why we should
>>care about
>>an assert in debug builds. Just ignore it, and touch the TOTD flag.
>
>
> That's the problem - touching the flag made no difference whatsoever,
> and having it stop on assert every time I try to debug is really
> annoying.

I'm sure it *does* work. Show TOTD, and acknowledge not to show it again.

We had this from 1.2 to 1.4, we don't need this again for 1.4->1.6

>
>
>>I'm seeing an unconditional error msgbox right now, which is
>>even more
>>painful (and probably not restricted to debug build)
>
>
> From what? I don't see any errors here anymore on Windows, and there's
> nothing new appeared on Linux. The registry key type and on/off values
> haven't changed either

???? It changed from string to dword!

Regards,
Andreas

Re: Rev 4704

From
Andreas Pflug
Date:
> Dave Page wrote:

OK, I fixed this, checking for DWORD->STR change on MSW now, backpatched
  for 1.4.1.

Regards,
Andreas