This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is it somehow possible to start Windows applications from xtermso that they "remain" in X-Server area?


Alexander Gottwald wrote:

On Tue, 1 Jun 2004, David Fraser wrote:


Wow! This is amazing! I wish I had known about it before ...
Still works, I only had to patch it to set the DEFAULT_CHARSET to Ansi (see ttfont.cc, line 1140 or so for where to patch this)


I got some errors with stdint.h vs sys/inttypes.h and LocalAlloc and
two other functions had SIZE_T instead of UINT arguments.


Yes, I actually forgot another fix I had to make... my full patch attached

But I'm still getting segfaults. The msgbox example segfaults
in cygwin1!aclcheck. Are you using the latest packages or some older
ones?


Probably a bit older but not too old ... attached my packages list
cygwin 1.3.22
I haven't tried it on a clean install.
It is worthwhile checking out previous error messages or using gdb for a backtrace ... in my case the segfault was a font encoding issue, might be different for you


Are the debug symbols for the cygwin1.dll still available?



Others would know better than me...

bye
ago



Cheers David
diff -ur peace.orig/dll/ui.so/keyboard.cc peace/dll/ui.so/keyboard.cc
--- peace.orig/dll/ui.so/keyboard.cc	2003-03-12 14:38:37.000000000 +0200
+++ peace/dll/ui.so/keyboard.cc	2004-06-01 11:38:46.000000000 +0200
@@ -402,7 +402,7 @@
  * @since Windows 98, Windows NT4 SP3
  */
 EXTERN_C UINT WINAPI
-SendInput(UINT nInputs, /* INPUT* */void* pInputs, int size)
+SendInput(UINT nInputs, INPUT* pInputs, int size)
 {
 	ADPRF2("USER32DEBUG", ("SendInput [not implemented] ninputs=%u, size=%d\n",
 			       nInputs, size));
diff -ur peace.orig/dll/ui.so/ttfont.cc peace/dll/ui.so/ttfont.cc
--- peace.orig/dll/ui.so/ttfont.cc	2003-03-12 14:38:37.000000000 +0200
+++ peace/dll/ui.so/ttfont.cc	2004-06-01 12:39:51.000000000 +0200
@@ -1178,6 +1178,7 @@
 
 	/* Search for matching font */
 	int facenamelen = strlen(logfont->lfFaceName);
+	charset = ANSI_CHARSET;
 	for (int i = 0; i < fontfiles_num;  i++) {
 		FontFileInfo *ffi = &fontfiles[i];
 
diff -ur peace.orig/dll/ui.so/wingdi.cc peace/dll/ui.so/wingdi.cc
--- peace.orig/dll/ui.so/wingdi.cc	2003-03-12 14:38:37.000000000 +0200
+++ peace/dll/ui.so/wingdi.cc	2004-06-01 11:54:59.000000000 +0200
@@ -210,7 +210,8 @@
 			guiFont = CreateFontA(12, 0, 0, 0, 0, 0, 0, 0,
 					      DEFAULT_CHARSET, 0, 0, 0, 0,
 					      default_font_name);
-			gdiobj_block_free(guiFont);
+			if (guiFont)
+				gdiobj_block_free(guiFont);
 		}
 		return guiFont;
 

Attachment: cygwin-packages.txt.gz
Description: GNU Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]