Re: poll vs. epoll

2004-08-19 Thread Shachar Shemesh
Dan Kegel wrote: Shachar wrote: I noticed that in server/fd.c, the wineserver is using "poll" to select between file descriptors. The application is going through this code over 2000 times a second, with over 380 file descriptors each time. I am wondering whether this can be the cause of the slo

Re: Let StartServiceCtrlDispatcher handle services started other than with StartService (with patch)

2004-08-19 Thread Alexander Yaworsky
I think that this is incorrect. If you let StartServiceCtrlDispatcher to continue with no error, you make calling program think that it is running under control of service control manager. When service program handles somehow any kind of its launching, the behaviour may be quite different. Also,

Re: poll vs. epoll

2004-08-19 Thread Dan Kegel
Shachar wrote: I noticed that in server/fd.c, the wineserver is using "poll" to select between file descriptors. The application is going through this code over 2000 times a second, with over 380 file descriptors each time. I am wondering whether this can be the cause of the slowdown. One of th

Re: Backtrace Dumps

2004-08-19 Thread Alexandre Julliard
Mike Hearn <[EMAIL PROTECTED]> writes: > So for this functionality you want a custom exception with a vectored > handler? A custom exception yes; there's no need for a vectored handler, the whole point is to use the normal mechanism so that the exception gets to the debugger. -- Alexandre Julli

Re: Info on debugging requested: trying to run "Hearts of Iron"

2004-08-19 Thread Simon Kitching
On Thu, 2004-08-19 at 19:31, Andreas Mohr wrote: > Hi, > > On Thu, Aug 19, 2004 at 06:43:14PM +1200, Simon Kitching wrote: > > Backtrace: > > =>1 0x004191fb (0x406bfe94) > > 2 0x005af5b2 (0x406bff20) > All in app space, most likely. Not very useful, I'm afraid. Yes, I had leapt to the assumptio

Re: Backtrace Dumps

2004-08-19 Thread Mike Hearn
On Wed, 18 Aug 2004 13:13:13 -0700, Alexandre Julliard wrote: > No, the backtrace should be done by the debugger. So for this functionality you want a custom exception with a vectored handler?

Re: Info on debugging requested: trying to run "Hearts of Iron"

2004-08-19 Thread Mike Hearn
> I ran "winedbg HoI.exe" and got exactly the same behaviour, though with > a bit more info: > > First chance exception: page fault on read access to 0x0006 in Normally means something like this: struct something *a = 0; a->some_member; (obvious I guess but I thought i'd say anyway). FWIW

Re: poll vs. epoll

2004-08-19 Thread Mike Hearn
On Thu, 19 Aug 2004 22:16:36 +0300, Shachar Shemesh wrote: > One last question. What are the "users"? What constructs cause a new > file descriptor to be allocated in the wineserver? Every thread in every client has 3 fds: command, reply, wait. Other fds are allocated as well I think for things l

Re: KERNEL: pull WINDIR and WINSYSDIR from config before using hardcoded defaults (possible fix for WWN #234, #235 c:\\windows is not accessible Error)

2004-08-19 Thread Michael Stefaniuc
On Thu, Aug 19, 2004 at 03:54:40PM -0500, Alex Villací­s Lasso wrote: > I hope this is definitely the right way. > > Changelog: > * Do not assume HKEY_CURRENT_USER/Environment exists ==> config file was > migrated. Instead test > for every key to migrate under HKEY_CURRENT_USER/Environment > >

Re: FontDlg fix

2004-08-19 Thread Alexandre Julliard
Jacek Caban<[EMAIL PROTECTED]> writes: > + if(chf16->lpTemplateName) > + { > + len1 = strlen(MapSL(chf16->lpTemplateName)); > + chf32w->lpTemplateName = malloc(len1 * sizeof(WCHAR)); > + MultiByteToWideChar(CP_ACP, 0, (LPSTR)MapSL(chf16->lpTemplateName), > + l

poll vs. epoll

2004-08-19 Thread Shachar Shemesh
Hi all, I have a program (a server) that has a very large number of synchronization constructs. Even when everything is idle there, wineserver is taking 60% of the CPU, raising load average to 2.4. When load is applied, response time occasionally jumps from tenths of a second to two minutes. I

Re: Take monospace fonts into account in default font selectionalgorithm.

2004-08-19 Thread Mike Hearn
On Thu, 2004-08-19 at 12:06 +0100, Huw D M Davies wrote: > This also wouldn't work as you expect. The way to create a fixed > pitch font is to use FIXED_PITCH not MONO_FONT. Which app was > setting this flag? There wasn't one, I assumed MONO_FONT meant monospace, which is what I was trying to st

Re: gethostbyname on local host returns 127.0.0.1 for address

2004-08-19 Thread Juan Lang
--- Robert Reif <[EMAIL PROTECTED]> wrote: > It's gethostbyname that has the problem. Oops, you're right, I didn't read your code that closely. What I said earlier is still appropriate though: you can call something in iphlpapi, like GetAdaptersInfo, or perhaps GetIpAddrTable. You could also u

Re: Backtrace Dumps

2004-08-19 Thread Eric Pouech
Indeed. I'm sure every semi-involved Wine developer can imagine dozens of "reasons of the day" why winedbg doesn't launch properly on error again... Failure in wine exception handling code, failure to look up winedbg (both registry and disk), failure to pass winedbg cmdline parameters properly, fai

Re: gethostbyname on local host returns 127.0.0.1 for address

2004-08-19 Thread Robert Reif
Juan Lang wrote: Robert wrote: On windows gethostbyname for the local host returns the addresses of the available network interfaces. On wine and unix, it only returns the localhost 127.0.0.1. Any ideas on how to get the windows behavior? I assume you're referring to gethostname (as in yo

Re: Take monospace fonts into account in default font selectionalgorithm.

2004-08-19 Thread Huw D M Davies
On Sat, Aug 07, 2004 at 04:20:11PM +0100, Mike Hearn wrote: > @@ -1717,9 +1719,12 @@ > } > } > > +/* match on charset and style */ > if(!family) { > for(family = FontList; family; family = family->next) { > - if(csi.fs.fsCsb[0] & family->FirstFace->fs.fsCsb[0]

Re: Info on debugging requested: trying to run "Hearts of Iron"

2004-08-19 Thread Andreas Mohr
Hi, On Thu, Aug 19, 2004 at 09:31:24AM +0200, Andreas Mohr wrote: > You should at least have used pipes as described in the User Guide... > (not sure whether that ultimately helps then, though...) Doh, make that Developers Guide, I think. Andreas Mohr

Re: Info on debugging requested: trying to run "Hearts of Iron"

2004-08-19 Thread Andreas Mohr
Hi, On Thu, Aug 19, 2004 at 06:43:14PM +1200, Simon Kitching wrote: > Backtrace: > =>1 0x004191fb (0x406bfe94) > 2 0x005af5b2 (0x406bff20) All in app space, most likely. Not very useful, I'm afraid. > And then is there a way to step through at the source rather than > assembly level? --> only i

Re: Info on debugging requested: trying to run "Hearts of Iron"

2004-08-19 Thread Izak Burger
Simon Kitching wrote: There is then no response to the keyboard; no debugger prompt or anything. Is this meant to start a debugger interactive session here, or --- snip --- Backtrace: =>1 0x004191fb (0x406bfe94) 2 0x005af5b2 (0x406bff20) 3 0x404ff9f2 start_process+0xf2(arg=0x0) [process.c:995]

Info on debugging requested: trying to run "Hearts of Iron"

2004-08-19 Thread Simon Kitching
Hi, I recently tried to run the MS-Windows WWII strategy game "Hearts of Iron" using Wine on Linux. And it *very nearly* works. In fact, it's so close I'm trying to debug the problem in the hope of getting it working. I hope that someone here can give me a few wine debugging tips. Actually, the g