Re: [pgadmin-support] pgadmin goes to infinite loop

2009-08-04 Thread Madis Pärn

downloaded official build from website. has the same problem.

exe names are nonstandard beacuse i have multiple pgadmin3.exe files in "C:\Program 
Files\pgAdmin III\1.10" directory.
i have not modified the code.

stack:
ntkrnlpa.exe!KiUnlockDispatcherDatabase+0x77
ntkrnlpa.exe!KeSetEvent+0x74
ntkrnlpa.exe!PspGetSetContextSpecialApc+0x4e
ntkrnlpa.exe!KiDeliverApc+0xb3
hal.dll!HalpApcInterrupt+0xc5
win32k.sys!RFONTOBJ::bInit+0xc9
win32k.sys!RFONTOBJ::vInit+0x16
win32k.sys!GreGetCharABCWidthsW+0x8c
win32k.sys!NtGdiGetCharABCWidthsW+0xff
ntkrnlpa.exe!KiFastCallEntry+0xf8
ntdll.dll!KiFastSystemCallRet
GDI32.dll!NtGdiGetCharABCWidthsW+0xc
GDI32.dll!GetCharABCWidthsW+0x18
pgadmin3_orig.exe+0x39bc11
GDI32.dll!hGetPEBHandle+0x38
pgadmin3_orig.exe+0x356c5a
pgadmin3_orig.exe+0x35b2a1
MSVCR80.dll!free+0xec

Madis

On 3.08.2009 18:08, Dave Page wrote:

On Mon, Aug 3, 2009 at 3:51 PM, Madis Pärn  wrote:

the problem persists, multiple clicks on view refresh button hangs pgadmin
and cpu goes up.

the error occurring and being logged is empty string "".
pgAdmin3_dbg.exe!frmEditGrid::Go+0xabb is line 1297 wxMilliSleep(10);

any other ideas?


Not really. How come the executable is called pgAdmin3_dbg.exe? Have
you made any other changes to the code?

...

USER32.dll!DialogBox2+0x15a
USER32.dll!InternalDialogBox+0xd0
USER32.dll!SoftModalMessageBox+0x938
USER32.dll!MessageBoxWorker+0x2ba
USER32.dll!MessageBoxTimeoutW+0x7a
USER32.dll!MessageBoxExW+0x1b
USER32.dll!MessageBoxW+0x45
pgAdmin3_dbg.exe!wxMessageDialog::ShowModal+0x294
pgAdmin3_dbg.exe!wxMessageBox+0x87
pgAdmin3_dbg.exe!sysLogger::DoLog+0x4c5
pgAdmin3_dbg.exe!wxLog::OnLog+0x10e
pgAdmin3_dbg.exe!wxVLogError+0x71
pgAdmin3_dbg.exe!wxLogError+0x17
pgAdmin3_dbg.exe!pgConn::LogError+0xc3
pgAdmin3_dbg.exe!pgConn::ExecuteScalar+0x140


And where is the message box? My best guess at the moment is that VC++
2008 is causing some weirdness. We currently only support VC++ 2005.




--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


Re: [pgadmin-support] Cannot paste text from eclipse 3.5 to PGAdmin III

2009-08-04 Thread Stephan Jaensch

Hi Dave,

Am 03.08.2009 um 17:57 schrieb Dave Page:


After further investigation using the Clipboard Viewer from Apple's
development tools, it seems that PGAdmin ist inserting the UTF16  
version of
the clipboard contents instead of using the UTF8 version, stopping  
at the

first NUL byte.
Is this a wxwidgets or PGAdmin bug?


wxWidgets. pgAdmin just uses the wxTheClipboard class, which fetches a
wxString for us.


Seems to be fixed in the next wxWidgets version: 
http://trac.wxwidgets.org/ticket/10902

Cheers,
Stephan

--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


Re: [pgadmin-support] Cannot paste text from eclipse 3.5 to PGAdmin III

2009-08-04 Thread Dave Page
On Tue, Aug 4, 2009 at 8:50 AM, Stephan Jaensch wrote:
> Hi Dave,
>
> Am 03.08.2009 um 17:57 schrieb Dave Page:
>
>>> After further investigation using the Clipboard Viewer from Apple's
>>> development tools, it seems that PGAdmin ist inserting the UTF16 version
>>> of
>>> the clipboard contents instead of using the UTF8 version, stopping at the
>>> first NUL byte.
>>> Is this a wxwidgets or PGAdmin bug?
>>
>> wxWidgets. pgAdmin just uses the wxTheClipboard class, which fetches a
>> wxString for us.
>
> Seems to be fixed in the next wxWidgets version:
> http://trac.wxwidgets.org/ticket/10902

Ahh, well spotted. Unfortunately it'll be at least 1.12 before we move
to the stable branch of wxWidgets that fix will go into though. I have
a sneaking suspicion we may end up patching wxWidgets...

I've created a pgAdmin ticket for this: http://code.pgadmin.org/trac/ticket/13

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

-- 
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


Re: [pgadmin-support] Cannot paste text from eclipse 3.5 to PGAdmin III

2009-08-04 Thread Guillaume Lelarge
Le mardi 4 août 2009 à 09:50:38, Stephan Jaensch a écrit :
> Hi Dave,
>
> Am 03.08.2009 um 17:57 schrieb Dave Page:
> >> After further investigation using the Clipboard Viewer from Apple's
> >> development tools, it seems that PGAdmin ist inserting the UTF16
> >> version of
> >> the clipboard contents instead of using the UTF8 version, stopping
> >> at the
> >> first NUL byte.
> >> Is this a wxwidgets or PGAdmin bug?
> >
> > wxWidgets. pgAdmin just uses the wxTheClipboard class, which fetches a
> > wxString for us.
>
> Seems to be fixed in the next wxWidgets version:
> http://trac.wxwidgets.org/ticket/10902
>

We are not yet compatible with 2.9.0. I began the work on that, but I'm afraid 
this will be a hard work.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com

-- 
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


Re: [pgadmin-support] Cannot paste text from eclipse 3.5 to PGAdmin III

2009-08-04 Thread Dave Page
On Tue, Aug 4, 2009 at 9:07 AM, Guillaume Lelarge wrote:
>
> We are not yet compatible with 2.9.0. I began the work on that, but I'm afraid
> this will be a hard work.

That's what I was afraid of. I've heard they've done some pretty major
redesign (hence the planned move from 2.x.x to 3.x.x).

If we do move, I suspect we'll end up chasing new wxWidgets bugs for
months to come as well. I was toying with the idea of keeping our own
set of wxWidgets patchs, as there's also a nasty issue with the STC
that Ashesh and Hiroshi have started looking into, but that doesn't
help on platforms like Ubuntu and Fedora where users will be using the
stock wxWidgets packages- and I whilst I could live with rolling our
own custom wxWidgets tarball, I certainly don't want to do RPMs and
DEBs etc.

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

-- 
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


Re: [pgadmin-support] pgadmin goes to infinite loop

2009-08-04 Thread Dave Page
On Tue, Aug 4, 2009 at 8:03 AM, Madis Pärn wrote:
> downloaded official build from website. has the same problem.
>
> exe names are nonstandard beacuse i have multiple pgadmin3.exe files in
> "C:\Program Files\pgAdmin III\1.10" directory.
> i have not modified the code.

Any ideas about the message box? Your custom build was clearly
displaying one according to the stack trace.

Can anyone else reproduce this, because I can't :-( (or :-), depending
on your viewpoint!)

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

-- 
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


Re: [pgadmin-support] Cannot paste text from eclipse 3.5 to PGAdmin III

2009-08-04 Thread Magnus Hagander
On Tue, Aug 4, 2009 at 10:14, Dave Page wrote:
> On Tue, Aug 4, 2009 at 9:07 AM, Guillaume Lelarge 
> wrote:
>>
>> We are not yet compatible with 2.9.0. I began the work on that, but I'm 
>> afraid
>> this will be a hard work.
>
> That's what I was afraid of. I've heard they've done some pretty major
> redesign (hence the planned move from 2.x.x to 3.x.x).
>
> If we do move, I suspect we'll end up chasing new wxWidgets bugs for
> months to come as well. I was toying with the idea of keeping our own
> set of wxWidgets patchs, as there's also a nasty issue with the STC
> that Ashesh and Hiroshi have started looking into, but that doesn't
> help on platforms like Ubuntu and Fedora where users will be using the
> stock wxWidgets packages- and I whilst I could live with rolling our
> own custom wxWidgets tarball, I certainly don't want to do RPMs and
> DEBs etc.

If we have our own, couldn't we just link statically?

That said, I bet they have *other* patches in that are specific to
their distribution - they often do. And having to somehow end up
having to merge these things back and forth doesn't sound particularly
entertaining.

-- 
 Magnus Hagander
 Self: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

-- 
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


Re: [pgadmin-support] Cannot paste text from eclipse 3.5 to PGAdmin III

2009-08-04 Thread Dave Page
On Tue, Aug 4, 2009 at 1:39 PM, Magnus Hagander wrote:
> If we have our own, couldn't we just link statically?

We can, but the distros don't usually allow that for their packages.

> That said, I bet they have *other* patches in that are specific to
> their distribution - they often do. And having to somehow end up
> having to merge these things back and forth doesn't sound particularly
> entertaining.

No, quite.

-- 
Dave Page
EnterpriseDB UK:   http://www.enterprisedb.com

-- 
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support


[pgadmin-support] Problem with UTF-8 in Windows

2009-08-04 Thread Charlie Clark

Hi,

I've recently noticed a problem with pgAdmin on Windows when working with  
UTF-8 data on Windows XP - the data looks wrong because the two-byte UTF-8  
is getting mangled into Windows-1252. I tried to adjust the options but it  
doesn't seem possible to select a UTF-8 font. How can I fix this?


BTW. the German translation of "Zeichensatz" for "Font" is misleading as  
Zeichensatz is the code page and shouldn't, in theory, anything to do with  
the typeface. "Schriftart" is the usual translation for font/typeface.


Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research Ltd.
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
GSM: +49-178-782-6226
Company No. 06770088

--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support