public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "r_ovidius at eml dot cc" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug libgcj/27797] win32.cc: FormatMessage fails on win98 for network messages
Date: Mon, 05 Jun 2006 14:46:00 -0000	[thread overview]
Message-ID: <20060605144628.17301.qmail@sourceware.org> (raw)
In-Reply-To: <bug-27797-7936@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from r_ovidius at eml dot cc  2006-06-05 14:46 -------
The intent was to stop my app from segfaulting. :) I'm not sure what you are
getting at...

FormatMessage fails when looking up nErrorCode, since Win98 doesn't have error
messages in FORMAT_MESSAGE_FROM_SYSTEM for network messages.

The second call just does the FormatMessage on GetLastError() which is no
longer nErrorCode, but will be 317 "Message not found" due to the previous
failed call, which will be a valid MESSAGE_FROM_SYSTEM.  You could try a bunch
of other FormatMessage calls on nErrorCode with MESSAGE_FROM_HANDLE instead of
FROM_SYSTEM and try to use the ModuleHandle of wininet.dll or whatever dll and
see if that works if that is what you mean.  I haven't tried those yet since
I'm still fighting with other gcj problems.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27797


  parent reply	other threads:[~2006-06-05 14:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-29 17:40 [Bug libgcj/27797] New: " r_ovidius at eml dot cc
2006-05-29 21:20 ` [Bug libgcj/27797] " pinskia at gcc dot gnu dot org
2006-06-05 14:23 ` tromey at gcc dot gnu dot org
2006-06-05 14:46 ` r_ovidius at eml dot cc [this message]
2006-06-06 18:03 ` r_ovidius at eml dot cc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060605144628.17301.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).