Re: Seg Fault while using /dev/clipboard

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Pat Kane wrote: > I am having problems using /dev/clipboard. When there is a text > selection on the Windows clipboard things work as expected, but if > there is some other type of selection I get: "Segmentation fault (core > dumped)" > > To duplicate the problem try:

Re: Seg Fault while using /dev/clipboard

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Igor Pechtchanski wrote: > On Fri, 4 Mar 2005, Pat Kane wrote: > > > I am having problems using /dev/clipboard. When there is a text > > selection on the Windows clipboard things work as expected, but if > > there is some other type of selection I get: "Segmentation fault (c

RE: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message >From: Igor Pechtchanski >Sent: 04 March 2005 16:55 > On Fri, 4 Mar 2005, Pat Kane wrote: >> To duplicate the problem try: cat /dev/clipboard >> first with a text selection and then after using Windows to copy a >> program (right click, copy), or after taking a scr

RE: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message >From: Dave Korn >Sent: 04 March 2005 17:14 > hglb = GetClipboardData (format); > > So, GetClipboardData is failing and returning NULL. ... yet bizarrely, GetLastError returns zero. Oh dear. cheers, DaveK -- Can't think of a witty .sigline today

Re: Seg Fault while using /dev/clipboard

2005-03-04 Thread Igor Pechtchanski
On Fri, 4 Mar 2005, Igor Pechtchanski wrote: > [Switching to thread 1 (thread 9564.0x24fc)]#0 0x610b3df1 in strlen () > at /usr/src/cygwin-cvs/src/winsup/cygwin/cygserver.h:82 Whoops, this is obviously wrong. Note to self: never p

RE: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message >From: Dave Korn >Sent: 04 March 2005 17:19 > Original Message >> From: Dave Korn >> Sent: 04 March 2005 17:14 > >>hglb = GetClipboardData (format); > >> >> So, GetClipboardData is failing and returning NULL. > > > ... yet bizarrely, GetLastError ret

RE: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message >From: Dave Korn >Sent: 04 March 2005 17:14 > UINT format; > if ((format = GetPriorityClipboardFormat (formatlist, 2)) <= 0) LOL! cheers, DaveK -- Can't think of a witty .sigline today -- Unsubscribe info: http://cygwin.com/ml/#unsubsc

RE: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message >From: Dave Korn >Sent: 04 March 2005 17:27 > Original Message >> From: Dave Korn >> Sent: 04 March 2005 17:14 > >> UINT format; > >> if ((format = GetPriorityClipboardFormat (formatlist, 2)) <= 0) > > > LOL! Dunno why the compiler didn't warn. T

Re: Seg Fault while using /dev/clipboard

2005-03-04 Thread Corinna Vinschen
Dave, On Mar 4 17:35, Dave Korn wrote: > Dunno why the compiler didn't warn. This seems to fix it ok. Attached as > well, in case of line wrap. any reason you're not following the usual patch guidelines like, say, sending the patch to cygwin-patches and, that's even more important, adding a

RE: Seg Fault while using /dev/clipboard

2005-03-04 Thread Dave Korn
Original Message >From: Corinna Vinschen >Sent: 04 March 2005 17:57 > Dave, > > On Mar 4 17:35, Dave Korn wrote: >> Dunno why the compiler didn't warn. This seems to fix it ok. >> Attached as well, in case of line wrap. > > any reason you're not following the usual patch guidelines

Re: Seg Fault while using /dev/clipboard

2005-03-04 Thread Christopher Faylor
On Fri, Mar 04, 2005 at 06:03:38PM -, Dave Korn wrote: >Original Message >>From: Corinna Vinschen >>Sent: 04 March 2005 17:57 > >> Dave, >> >> On Mar 4 17:35, Dave Korn wrote: >>> Dunno why the compiler didn't warn. This seems to fix it ok. >>> Attached as well, in case of line wr

Re: Seg Fault while using /dev/clipboard

2005-03-11 Thread Pat Kane
> I just checked in a patch which changes the UINTs to int's as that is > what is actually returned by GetPriorityClipboardFormat. > I assume that will fix this problem. cgf Your patch fixes my problems. Thanks. Pat --- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem