🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms
Article #1884

Re: Problem with Windows programming

#1884
From: Mats Hultqvist
Date: Thu, 12 Oct 1989 13:08
25 lines
1648 bytes
mikael@vall.dsv.su.se (Mikael Kindborg) writes:

>------
>I am being terrorized by a very nasty bug. The problem is
>as follows. As soon as a call a routine in the standard C
>library (e.g time(), chdir(), getcwd()) my progam dies.
>This error occured after I had added some code to my
>working program. Step by step I removed the new code, but
>the error still remained. I then compiled and linked the
>very basic functions only (i.e the "shell"), with a call to
>time(). That worked ok. I then relinked that .obj file with
>the rest of my .obj files (no calls to this code however).
>Believe it or not, but the program freaks out. It seems as
>if there is an error in the linking process. Any suggestions
>concerning the possible cause of these bugs will be highly
>appreciated.

I hwe had a simular problem with time(), but the problem did turn out to
be in the functions _dos_getcwd and _dos_setdir (and posible som
of the other _dos_* stuff) how was responsible.
This was du to a bug in Microsoft C-compiler 5.0, that we discowerd
in a book abot Windows programing (it was 'Grafic Window Programming'
or someting simular to that i think)

And i used the funktion DlgDirList() to change directory.
Technical Details
Message-ID: <1989Oct12.130832.3721@sssab.se>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!bloom-beacon!eru!luth!sunic!liuida!isy!sssab!mathu
References: <582@vall.dsv.su.se>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!bloom-beacon!eru!luth!sunic!liuida!isy!sssab!mathu
From: mathu@sssab.se (Mats Hultqvist)
Newsgroups: comp.windows.ms
Subject: Re: Problem with Windows programming
Message-ID: <1989Oct12.130832.3721@sssab.se>
Date: 12 Oct 89 13:08:32 GMT
References: <582@vall.dsv.su.se>
Organization: Scandinavian System Support AB (3S AB)
Lines: 25