www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/13/09:59:48

MIME-Version: 1.0
Subject: Problems running Watt-32
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0
Date: Fri, 13 Sep 2002 10:07:15 -0400
Message-ID: <36F74B8910ED2E4AB98A2E8829085F151796@email2k.compuweigh.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Problems running Watt-32
Thread-Index: AcJbLtw7INDdObpLSEWrcidy54+osA==
From: "Alex" <alex AT compuweigh DOT com>
To: "Djgpp AT Delorie DOT Com (E-mail)" <djgpp AT delorie DOT com>
Cc: "Rhide AT Listbot DOT Com (E-mail)" <rhide AT listbot DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g8DDxDM23523
Reply-To: djgpp AT delorie DOT com

Hi everybody,

I have a major problem here and need your help desperately.

In my application I need to use TCP/IP sockets, so I downloaded and
compiled the WATT-32 library (v.2.1 dev.rel.4)
My platform is DOS, DJGPP 2.03 (gcc 2.95.3), RHIDE 1.4.9.

To test the sockets I simply took the PING.C provided with the library,
compiled and ran it.
When I simply run it from DOS or even from inside RHIDE everything works
OK.
Now, if I set a breakpoint anywhere in the code or try to step through
it and then continue to run the whole PC hangs and cold reboot is
required. The only message that appears on the screen is "Waterloo
TCP/IP setup" meaning that the initialization process of the library has
began.
I've tried compiling it with and without optinization, compiled it with
-g, -ggdb, -gstabs etc.
I tried using RHGDB and GDB 5.1.1 to debug it, all in vain - it still
hangs. Under GDB it hangs as soon as I issue "run" command.

Strange thing happens when stepping in RHIDE environment: the F8 (step
over) does not work at all (at least it should start the program and go
to main() function, but the program hangs momentarily); F7 (trace into)
takes me directly iside the calls of Watt-32 initialization routines
although they are not the first things in the main() function; while
using F7 the program flow is crazy - sometimes it executes the same line
twice, sometimes it even goes back in code where no loops or gotos
present etc.

If anyone has an idea what's going on please give me a hint.

Regards,

Alex Oleynikov

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019