app freezes during WM_KILLFOCUS

2011-06-16 Thread Eric Frias
I've been chasing a bug for a few days, and finally have a good idea of what is going on. When a program brings up a modal dialog box in response to a WM_KILLFOCUS message, the program will freeze. I've attached a simple test case, all boilerplate except for: case WM_KILLFOCUS:

Re: app freezes during WM_KILLFOCUS

2011-06-16 Thread Eric Frias
On 6/16/2011 10:49 AM, Ken Thomases wrote: On Jun 16, 2011, at 9:09 AM, Eric Frias wrote: I've been chasing a bug for a few days, and finally have a good idea of what is going on. When a program brings up a modal dialog box in response to a WM_KILLFOCUS message, the program will freeze

Re: Winelib over Solaris/SPARC

2007-01-05 Thread Eric Frias
Keyur Pujara wrote: I am contemplating to port a complex windows application using winelib over Solaris/SPARC. In one of the emails in wine-devel list, I saw that there may be following issues in the process: * byte endianness * alignment issues * pointer size * must not use x86 assembly

Re: Winelib Getting Started 1.3.2. Test Drive

2006-06-20 Thread Eric Frias
Robert Muller wrote: Dee Ayy wrote: | As a newbie, the statement It can be found in the programs subdirectory. | had me lost. [...] At this point, the sentance that gave you problems could be modified to say: It can be found in the programs subdirectory of the wine source. There is one

Re: Winelib Getting Started 1.3.2. Test Drive

2006-06-20 Thread Eric Frias
Alexandre Julliard wrote: Eric Frias [EMAIL PROTECTED] writes: here is one other part that is out-of-date: the procedure described won't create the 'notepad2' script. winegcc should create the script. If it doesn't it's probably because winemaker is not invoking it correctly

incorrect behavior with Exceed X server

2006-05-19 Thread Eric Frias
I've noticed a few problems running wine apps against Hummingbird's Exceed X server on Windows. The two problems I noticed are: - The top-level window's title bar is blank, instead of containing the application's title. And, - When you take a visible dialog box, hide it

Re: x11drv: question about byte-swapping for DIBs

2006-04-20 Thread Eric Frias
Phil Krylov wrote: Messed colors and vertical stripes? Similar to http://www.froq.net/mirage/mirage1.png ? No, I get rather like this: http://newstar.rinet.ru/~phil/Screenshot-StarLing-for-Macintosh.png The StarLing image may be similar, but I think you're both looking at different

Re: [gdi] bug reading/writing metafiles on sparc

2006-04-14 Thread Eric Frias
Phil Krylov wrote: However, I don't think there are a lot of programs using these APIs... I mean, let's implement it one or another way and wait till some such programs break (when ported to big-endian machines;) and see how exactly they will break and fix it then. True... and probably even

[gdi] bug reading/writing metafiles on sparc

2006-04-13 Thread Eric Frias
Due to little-endian/big-endian differences, winelib on Sparc can't read windows metafiles generated on a PC (or on Wine on x86), and conversely PCs can't read metafiles created on a Sparc. It looks like there are a few ways this could be fixed, and I wanted to make sure we don't go about it

Re: [gdi] bug reading/writing metafiles on sparc

2006-04-13 Thread Eric Frias
Phil Krylov wrote: I have submitted a patch that fixes creation of on-disk _enhanced_ metafiles a few days ago: http://article.gmane.org/gmane.comp.emulators.wine.patches/23393 Thanks for the pointer, I hadn't seen that patch. It byteswaps EMF records just for writing to disk. Adding

Re: server: allow OpenClipboard to succeed when already open

2006-02-07 Thread Eric Frias
James Hawkins wrote: On 2/7/06, Eric Frias [EMAIL PROTECTED] wrote: I think I submitted a version of this patch a year or two back, but it wasn't accepted. You should add a unit test for this case in Wine's test suite. It would be pretty easy to write, and it would verify

Re: What operating systems will Winelib run on non-x86 systems?

2006-01-03 Thread Eric Frias
Dan Kegel wrote: Hi Wei Li, I could not find the info regarding what operating systems (such as AIX 5L v5.2, HP-UX 11i, Solaris Release Level 9) will Winelib run on non-x86 machines. There's no reason in principle it couldn't run on AIX or HP/UX. Some work has been done on an HP/UX

Re: SPARC assembly won't compile, problems with NT headers

2005-12-22 Thread Eric Frias
Troy Rollo wrote: winegcc from the current WineHQ produces assembly output for SPARC systems that cannot be processed by the assembler. I've attached the patches we're using for winebuild on SPARC. This fixes both of the problems you're encountering. I'm not sure if the fix is the right

Re: Help with WINE and POSIX threading

2005-10-27 Thread Eric Frias
Marcus Meissner wrote: On Wed, Oct 26, 2005 at 11:01:51AM -0700, ssawai wrote: On several places we use third-party components that use native pthreads from which we receive callbacks in different pthreads. Is it possible to use Wine/pthread mix? What would be the preferred way of doing

Cross-compiling with winelib

2005-06-23 Thread Eric Frias
We're working on setting up an environment to cross-compile a winelib application (initially from x86 linux to sparc solaris). To do this, we need a cross-compiling version of winebuild which will generate the assembly code for the target architecture instead of the build architecture. I see

Re: Cross-compiling with winelib

2005-06-23 Thread Eric Frias
Alexandre Julliard wrote: I think the right way is to get rid of the #ifdefs, but not by pushing them into the .spec.c file but my making the target a run-time option. I've been meaning to do this for a while now, I was just waiting for someone to actually need that feature ;-) Fantastic!

Re: Winelib MFC app crashes after printing

2005-06-01 Thread Eric Frias
Eugene Aksenov wrote: I have a small MFC app ported to winelib which uses MFC compiled with winelib. Really, it is just an App-Wizard generated application. I always have a crash of the application after printing. The page is printed ok but after that the app crashes. [...] Did anybody meet a

Re: Wine on Sparc

2005-05-27 Thread Eric Frias
Chuck Hall wrote: Started to go through this and found something intresting. lwp.h does exist and is found, so HAVE_SYS_LWP_H is defined. The test for _lwp_create fails. Looking a bit deeper I found that the lwp.h for Solaris 9 is different from the one in Solaris 10 (which is what I am

Re: Wine on Sparc

2005-05-25 Thread Eric Frias
: http://www.winehq.org/hypermail/wine-patches/2004/11/author.html under 'Eric Frias'. There aren't too many. That said, I'm not convinced those patches will be enough to get it working. I've been working on merging in all of my patches to the latest wine here, and there were a few

Re: Wine on Sparc

2005-05-25 Thread Eric Frias
Chuck Hall wrote: On Wed, 25 May 2005, Eric Frias wrote: I'll be trying to get the current wine running this afternoon; I'll post something when it's working. I look forward to hearing how this turns out. It actually went more smoothly than I expected. I've attached a patch

Re: Wine on Sparc

2005-05-23 Thread Eric Frias
Chuck Hall wrote: I have heard that people are using Wine on Solaris. I would like to know if they are using Wine on the SPARC version or the x86 version of Solaris? I'm using it on the Sparc version, with Solaris 7 and 8. Winelib only, of course, none of the emulation stuff is going to

Re: Wine on Sparc

2005-05-23 Thread Eric Frias
Chuck Hall wrote: I should have mentioned what tools I'm using and the why I sent the patch. I am using the native Sun assembler and linker. The Sun assembler does not understand the .previous so that is the reason for the patch. Makes sense. If you get the Sun assembler to work, we should

Re: Detecting ulimit problem

2005-05-20 Thread Eric Frias
Mike Hearn wrote: On Thu, 19 May 2005 17:46:28 -0400, Eric Frias wrote: I'll get a patch ready once I understand a bit more of what is going on that is causing wine to reserve this memory. It's probably blocking off the top 3rd quarter of the address space to prevent the kernel allocating memory

Detecting ulimit problem

2005-05-19 Thread Eric Frias
I just ran into bug 2609: http://bugs.winehq.org/show_bug.cgi?id=2609 which is that wine fails to initialize when the user has a ulimit for virtual memory (address space) set to less than around 1300MB. This is something wine could test for and issue a warning. I know this isn't technically

Re: unix filenames in notepad

2005-05-06 Thread Eric Frias
James Hawkins wrote: On 5/5/05, Troy Rollo [EMAIL PROTECTED] wrote: Precisely. WINE is not just for running apps compiled for Windows - it's also for making the Windows API available under UNIX. For this second application, users need to (at a minimum) be seeing UNIX paths (and not Windows paths

Re: xrealloc size is 0?

2005-04-18 Thread Eric Frias
Mark Greenbank wrote: Still trying to compile wine for Solaris 10 but this time I'm getting a message during the build that virtual memory has been exhausted. I traced this to an xrealloc call requesting a realloc of 0 size; could this be correct? I've seen this bug before. The behavior of

Question about TrueType rendering

2005-02-07 Thread Eric Frias
I'm trying to get winelib working on a platform whose X server doesn't have native support for TrueType fonts. I've configured wine with freetype, but it never seems to display the TrueType fonts. I don't have xfsft or xfstt installed. Should I expect this to work? I don't understand

Re: Question about TrueType rendering

2005-02-07 Thread Eric Frias
Huw D M Davies wrote: If you've got this, then it means Wine is happily using FreeType. In this case Wine will (by default) render the fonts itself and display them via the X RENDER extension. This means that it'll not use X11 font mechanisms at all. If Wine can't use the RENDER extension then

Re: Native unix style paths in wine common dialogs

2005-01-04 Thread Eric Frias
Mike Hearn wrote: On Tue, 04 Jan 2005 11:22:00 -0500, Dan Notestein wrote: Btw, if anyone is interested we also have another module which can be used to convert the windows-style drive letters returned by the common dialogs into unix-style paths (if you want to use these paths will normal file

Re: dialogex resource loading on sparc

2004-11-18 Thread Eric Frias
Dmitry Timoshkov [EMAIL PROTECTED] wrote: This won't compile with older C compilers, you are mixing data declarations with code. Good catch, that slipped right past me. A corrected patch is attached. Eric dialogex-revisited.diff Description: Binary data

Re: prevent peekmessage from crashing when msg == NULL

2004-11-18 Thread Eric Frias
Juan Lang [EMAIL PROTECTED] wrote: Somewhere, for some reason, our client code was calling PeekMessage(NULL, ...), basically asking windows to discard a single message without returning it. From the MSDN docs, this seems like an illegal use of the function, but Windows does the right

Re: unaligned access bug in winspool on sparc

2004-10-25 Thread Eric Frias
Juan Lang a écrit : Yikes. That's a bad one. The trouble is MS loves this sort of return value. Even if the dll itself doesn't dereference an unaligned pointer, the caller might depending on how things are layed out. The trouble is i386 allows unaligned memory access, so we don't see

Re: How to port c++ program to linux using winelib

2004-10-18 Thread Eric Frias
Jia L Wu [EMAIL PROTECTED] wrote: It seems that I have to write a spec file for each dll to import(and export) functions provide by other dlls. However, since they all written in c++ and what need to be imported can either be class or class method, and parameters can be class either. SO I

Re: How to port c++ program to linux using winelib

2004-10-18 Thread Eric Frias
From: Boaz Harrosh [EMAIL PROTECTED] Not happy and is a bit out of dated but it Looks it could still work today. [...] Thanks for the suggestion! Even if it isn't elegant, it sounds like it will work (and is very close to what we were doing with the older wine). I might even be able to coax

Re: How to port c++ program to linux using winelib

2004-10-18 Thread Eric Frias
Boaz Harrosh [EMAIL PROTECTED] wrote: [...] so I'm curious where all of the time is spent. Most definitely the Linux-shared loader. It took ages. The code is heavy C++ code full of templates with weak symbols, inline virtual functions, and plain horizontal code structure. almost any thing you

Re: Getting winebuild to work on HP-UX

2004-09-23 Thread Eric Frias
Firewall/[EMAIL PROTECTED] writes: I guess my main question is: why is so much assembly needed there - can some or all of it be replaced by C code (at least on platforms where you never need to interact with real windows libs - like sparc/solaris and pa-risc/hpux)? I'm afraid I won't be a lot

Re: Different X Displays and Wine

2004-08-20 Thread Eric Frias
Alexandre Julliard [EMAIL PROTECTED] wrote: Eric Frias [EMAIL PROTECTED] writes: I'm curious how much work would be involved in fixing [multiple displays] correctly. Basically you need to change the window management code in the server to support multiple window hierarchies, and create one

Re: Different X Displays and Wine

2004-08-17 Thread Eric Frias
Alexandre Julliard (julliard_at_winehq.org) wrote: We don't support having the same user run from different displays at the same time. I don't think that's a common setup at all. It probably is not a common setup, but Boaz isn't the only person to have been bitten by this. It has happened both to