unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* System calls without error checks in w32
@ 2010-05-29  2:38 Lennart Borgman
  2010-05-29 17:43 ` Eli Zaretskii
  0 siblings, 1 reply; 33+ messages in thread
From: Lennart Borgman @ 2010-05-29  2:38 UTC (permalink / raw
  To: Emacs-Devel devel

There is a lot of system calls in the w32 without error checking. This
makes things harder than they should be. How about adding something
like

    DebPrint (("error w32_creatwindow.AjdustRectangle => %d\n",
GetLastError ()));

to all of them? Is there anyone who has anything against this?



^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: System calls without error checks in w32
@ 2010-05-31  9:18 grischka
  2010-06-05 17:15 ` Jason Rumney
  0 siblings, 1 reply; 33+ messages in thread
From: grischka @ 2010-05-31  9:18 UTC (permalink / raw
  To: lennart.borgman; +Cc: emacs-devel

 > ... For example I know Drew recently wrote about problems when
 > creating new frames. It is quite hard to both understand what is
 > happening and what is a bug and what is not. Is there just a bad
 > timing? A missing hook to proceed the function etc (you may have to
 > wait until the frame creation is finished)?

Typically such problems have to do with the two-thread approach in the
"w32" code, which again has to do with emacs unfortunate event system
(aka. command_loop) which is not really compatible with GUI backends
(w32, gtk).

Basically:  Replace the command_loop by callbacks, then get rid of the
w32-GUI-thread, then watch how the problems disappeared.  Magically ;-)

--- grischka




^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2010-06-08  0:34 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-29  2:38 System calls without error checks in w32 Lennart Borgman
2010-05-29 17:43 ` Eli Zaretskii
2010-05-29 18:42   ` Lennart Borgman
2010-05-29 19:35     ` Eli Zaretskii
2010-05-29 20:02       ` Lennart Borgman
2010-05-29 21:25         ` Eli Zaretskii
2010-05-29 21:30           ` Lennart Borgman
2010-05-30  3:02             ` Eli Zaretskii
2010-05-30  3:26               ` Lennart Borgman
2010-05-30 17:36                 ` Eli Zaretskii
2010-05-30 18:02                   ` Lennart Borgman
2010-05-30 19:24                     ` Juanma Barranquero
2010-05-30 22:37                       ` Lennart Borgman
2010-05-30 23:03                         ` Juanma Barranquero
2010-05-30 23:28                           ` Lennart Borgman
2010-05-31  0:10                             ` Juanma Barranquero
2010-05-31  0:58                               ` Lennart Borgman
2010-05-31  2:02                                 ` Juanma Barranquero
2010-05-31  2:36                                   ` Lennart Borgman
2010-05-31  3:06                                     ` Juanma Barranquero
2010-05-31  3:05                         ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2010-05-31  9:18 grischka
2010-06-05 17:15 ` Jason Rumney
2010-06-07 10:37   ` grischka
2010-06-07 14:54     ` Stephen J. Turnbull
2010-06-07 15:23       ` Lennart Borgman
2010-06-07 17:21         ` grischka
2010-06-07 17:30           ` Lennart Borgman
2010-06-07 18:54             ` grischka
2010-06-08  0:32               ` Lennart Borgman
2010-06-08  0:34                 ` Lennart Borgman
2010-06-07 19:56         ` Stefan Monnier
2010-06-07 23:35           ` Lennart Borgman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).