Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Neutrinos are into physicists.


devel / comp.os.ms-windows.programmer.win32 / Re: Simple console ANSI C program crashes Win64 system upon start?

SubjectAuthor
* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
+- Simple console ANSI C program crashes Win64 system upon start?JJ
`* Simple console ANSI C program crashes Win64 system upon start?Paul Edwards
 `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
  `* Simple console ANSI C program crashes Win64 system upon start?Paul Edwards
   `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
    `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
     `* Simple console ANSI C program crashes Win64 system upon start?Paul Edwards
      `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
       +- Simple console ANSI C program crashes Win64 system upon start?Harry Potter
       `* Simple console ANSI C program crashes Win64 system upon start?Paul Edwards
        `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
         `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
          `* Simple console ANSI C program crashes Win64 system upon start?Paul Edwards
           `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
            `* Simple console ANSI C program crashes Win64 system upon start?Paul Edwards
             `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
              +- Simple console ANSI C program crashes Win64 system upon start?Paul Edwards
              `* Simple console ANSI C program crashes Win64 system upon start?Richard
               `* Simple console ANSI C program crashes Win64 system upon start?Harry Potter
                `- Simple console ANSI C program crashes Win64 system upon start?Harry Potter

1
Simple console ANSI C program crashes Win64 system upon start?

<88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=607&group=comp.os.ms-windows.programmer.win32#607

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a37:b604:0:b0:76c:69ac:a0f0 with SMTP id g4-20020a37b604000000b0076c69aca0f0mr1768qkf.4.1690495287812;
Thu, 27 Jul 2023 15:01:27 -0700 (PDT)
X-Received: by 2002:a05:6808:2189:b0:3a4:48e1:3116 with SMTP id
be9-20020a056808218900b003a448e13116mr1170996oib.0.1690495287471; Thu, 27 Jul
2023 15:01:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Thu, 27 Jul 2023 15:01:26 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
Subject: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Thu, 27 Jul 2023 22:01:27 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5717
 by: Harry Potter - Thu, 27 Jul 2023 22:01 UTC

Hi! I am working on a 32-bit mode program in ANSI C format using the Digital Mars C compiler. I was unable to get the version, but it's probably a few years old. The program is to compress strings for certain old 8-bit computers such that a target program can print out individual strings without referring to other strings. I'm working on using tokenization, RLE of spaces (tabs of given sizes) and ways to compress literals without full-blown Huffman. The problem is that, as soon as the program starts, the computer crashes with a BSOD. :( I didn't record the stop code. I don't even get the text that is supposed to display upon start-up. I attached the whole main module:
---------------------------
/***********************************************************************
*
* Individual module for the ANSI compiler.
*
* The template for this file was created by TempC Module Creator by
* Joseph Rose. This template can be used in your programs, provided
* you mention TempC in your software's documentation. If this source
* code is distributed, this copyright must be included in the file.
*
***********************************************************************/

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>

#include "in.h"
#include "buffer.h"

struct __indata {
enum {
sysCBM,
sysAtari,
sysApple2
} sys;
char toktype[16];
char littype[16];
struct {
unsigned docurchar;
char curcharname[32];
unsigned docharptr;
char curptrname[32];
} dozp;
char outname[256];
} indata;

unsigned loadfile (char* name);

int main (int argc, char** argv)
{ char c, c2;
struct string_buffer * atstring;
//Enable the following line and declare
//char programname[128]; if the executable path is
//needed:
//strcpy (programname, argv[0]);
//Analyze the command line:
puts ("Ready to start program!"); getchar();
while (--argc) {
//Advance to next arg.
argv++;
printf ("Para %s\n", *argv); getchar();
//Is it a switch?
if (argv[0][0]=='-') {
//Process switch:
putchar ((argv[0][1])); puts(""); getchar();
switch (argv[0][1]) {
case 't':
//puts ("t switch processed.");
--argc; argv++;
if (!strcmp(*argv, "cbm")) indata.sys=sysCBM;
else if (!strcmp(*argv, "apple2")) indata.sys=sysApple2;
else if (!strcmp(*argv, "atari")) indata.sys=sysAtari;
else {
puts ("Error parsing cmdline: unrecognized target system.");
return 1;
}
break;
case 'o':
--argc; argv++;
strcpy (indata.outname, *argv);
break;
case 'c':
// switch (argv[0][2]) {
// case 't':
// case 'l':
// }
c=argv[0][2];
--argc; argv++;
if (c=='t') strcpy (indata.toktype,*argv);
else if (c=='l') strcpy (indata.littype,*argv);
else {
puts ("Error parsing cmdline: unrecognized compression type.");
return 1;
}
break;

case '?': //Print help.
puts ("Help."); return 0;
default: //Trap bad switch.
printf ("Bad switch: %c.", argv[0][1]); return 1;
}
} else { //Handle filename:
//printf ("File: %s\n", argv[0]);
--argc; argv++;
puts (*argv); getchar();
if (loadfile(*argv)) {
printf ("Error in file \"%s\"\n", *argv);
return 2;
}
}
}
// if ()
puts ("Ready to print strings!"); getchar();
if (!strings) {
puts ("No input strings!"); return 2;
}
atstring=strings;
do {
puts (atstring->name);
puts ("----------------");
puts (atstring->in);
printf (">>> len=%d\n", atstring->inlen);
puts ("=================");
atstring=atstring->next;
} while (atstring);
puts ("---end!");
getchar();
return 0;
} ----------------------------------
and the line that compiles the program:
----------------------------------
c:\dm\bin\dmc buffer.c in.c main.c -o -mn -4 -optok_comp.exe
----------------------------------
BTW, What can I do to better my versions of literal compression? I have ways to compress to 7 bits per character and 5 bits per character, can add a bit to some 5-bit codes to add more functionality there, can tag two bits to token specifiers on the literal compression techniques to bring the total of supported tokens to 128, and, if a run of spaces is not a tab, can shorten the length to 3 bits. Also, is there a way to better tokenization? Remember that a string can't reference another string except for tokens, and this is for an 8-bit computer.

Re: Simple console ANSI C program crashes Win64 system upon start?

<vkz22ln1w24f$.fy7zhkyx9mrm.dlg@40tude.net>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=609&group=comp.os.ms-windows.programmer.win32#609

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: jj4public@outlook.com (JJ)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
Date: Fri, 28 Jul 2023 11:55:49 +0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <vkz22ln1w24f$.fy7zhkyx9mrm.dlg@40tude.net>
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="2f4c662aadd9c77957b4c57640efda86";
logging-data="2291118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bAK5rWpPjommOw8el/EF5IV6GmsMbFsg="
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:xwEpjgnd6whUj65Dnf21cs6hT7A=
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
 by: JJ - Fri, 28 Jul 2023 04:55 UTC

On Thu, 27 Jul 2023 15:01:26 -0700 (PDT), Harry Potter wrote:
> Hi! I am working on a 32-bit mode program in ANSI C format using the
> Digital Mars C compiler. I was unable to get the version, but it's
> probably a few years old. The program is to compress strings for certain
> old 8-bit computers such that a target program can print out individual
> strings without referring to other strings. I'm working on using
> tokenization, RLE of spaces (tabs of given sizes) and ways to compress
> literals without full-blown Huffman. The problem is that, as soon as the
> program starts, the computer crashes with a BSOD. :( I didn't record
> the stop code. I don't even get the text that is supposed to display
> upon start-up. I attached the whole main module:

Just debug it.

The progress of all of your projects will be very slow or even end up stuck
if you don't know how to debug a program.

Re: Simple console ANSI C program crashes Win64 system upon start?

<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=612&group=comp.os.ms-windows.programmer.win32#612

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a37:93c4:0:b0:767:404c:787f with SMTP id v187-20020a3793c4000000b00767404c787fmr5406qkd.3.1690544483763;
Fri, 28 Jul 2023 04:41:23 -0700 (PDT)
X-Received: by 2002:a05:6808:210f:b0:3a4:4a2e:a34a with SMTP id
r15-20020a056808210f00b003a44a2ea34amr4318045oiw.10.1690544483502; Fri, 28
Jul 2023 04:41:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 04:41:23 -0700 (PDT)
In-Reply-To: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.92; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 136.158.103.92
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: mutazilah@gmail.com (Paul Edwards)
Injection-Date: Fri, 28 Jul 2023 11:41:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1422
 by: Paul Edwards - Fri, 28 Jul 2023 11:41 UTC

On Friday, July 28, 2023 at 6:01:29 AM UTC+8, Harry Potter wrote:

> I don't even get the text that is supposed to display upon start-up.

Does a "hello world" program work?

BFN. Paul.

Re: Simple console ANSI C program crashes Win64 system upon start?

<ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=613&group=comp.os.ms-windows.programmer.win32#613

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:622a:1811:b0:406:804b:d67f with SMTP id t17-20020a05622a181100b00406804bd67fmr6295qtc.5.1690545396085;
Fri, 28 Jul 2023 04:56:36 -0700 (PDT)
X-Received: by 2002:a4a:4fd0:0:b0:565:ef56:c3d4 with SMTP id
c199-20020a4a4fd0000000b00565ef56c3d4mr2850980oob.1.1690545395919; Fri, 28
Jul 2023 04:56:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 04:56:35 -0700 (PDT)
In-Reply-To: <6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com> <6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Fri, 28 Jul 2023 11:56:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1468
 by: Harry Potter - Fri, 28 Jul 2023 11:56 UTC

On Friday, July 28, 2023 at 7:41:25 AM UTC-4, Paul Edwards wrote:
> Does a "hello world" program work?

I tried one using the same settings as the problem code, and it worked.

Re: Simple console ANSI C program crashes Win64 system upon start?

<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=614&group=comp.os.ms-windows.programmer.win32#614

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:6214:b29:b0:63d:33d1:1db2 with SMTP id w9-20020a0562140b2900b0063d33d11db2mr6571qvj.0.1690546659392;
Fri, 28 Jul 2023 05:17:39 -0700 (PDT)
X-Received: by 2002:a9d:7e8a:0:b0:6b9:2c07:8849 with SMTP id
m10-20020a9d7e8a000000b006b92c078849mr3101320otp.0.1690546659065; Fri, 28 Jul
2023 05:17:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 05:17:38 -0700 (PDT)
In-Reply-To: <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.92; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 136.158.103.92
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: mutazilah@gmail.com (Paul Edwards)
Injection-Date: Fri, 28 Jul 2023 12:17:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1805
 by: Paul Edwards - Fri, 28 Jul 2023 12:17 UTC

On Friday, July 28, 2023 at 7:56:37 PM UTC+8, Harry Potter wrote:

> > Does a "hello world" program work?

> I tried one using the same settings as the problem code, and it worked.

Ok, two things to try:

1. Make the "main" program in the problem program the
first thing that is compiled. Currently it is the last of 3 things.

2. Put a "return 0" after the print on startup in the main
program, while leaving everything else the same.

BFN. Paul.

Re: Simple console ANSI C program crashes Win64 system upon start?

<795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=615&group=comp.os.ms-windows.programmer.win32#615

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ac8:7d90:0:b0:403:a063:3ae5 with SMTP id c16-20020ac87d90000000b00403a0633ae5mr7540qtd.10.1690551983157;
Fri, 28 Jul 2023 06:46:23 -0700 (PDT)
X-Received: by 2002:a05:6808:d47:b0:3a3:e17e:d2f7 with SMTP id
w7-20020a0568080d4700b003a3e17ed2f7mr4885907oik.4.1690551982937; Fri, 28 Jul
2023 06:46:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 06:46:22 -0700 (PDT)
In-Reply-To: <43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Fri, 28 Jul 2023 13:46:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1771
 by: Harry Potter - Fri, 28 Jul 2023 13:46 UTC

On Friday, July 28, 2023 at 8:17:41 AM UTC-4, Paul Edwards wrote:
> 1. Make the "main" program in the problem program the
> first thing that is compiled. Currently it is the last of 3 things.
>
> 2. Put a "return 0" after the print on startup in the main
> program, while leaving everything else the same.
>
Thank you. I'll try them soon. :)

Re: Simple console ANSI C program crashes Win64 system upon start?

<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=616&group=comp.os.ms-windows.programmer.win32#616

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:622a:4f0c:b0:403:9734:9485 with SMTP id ei12-20020a05622a4f0c00b0040397349485mr17510qtb.1.1690556504342;
Fri, 28 Jul 2023 08:01:44 -0700 (PDT)
X-Received: by 2002:a05:6870:c7a9:b0:1bb:715a:4b1f with SMTP id
dy41-20020a056870c7a900b001bb715a4b1fmr3462151oab.0.1690556504147; Fri, 28
Jul 2023 08:01:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 08:01:43 -0700 (PDT)
In-Reply-To: <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Fri, 28 Jul 2023 15:01:44 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Harry Potter - Fri, 28 Jul 2023 15:01 UTC

I tried both of your suggestions. Same result. Could it be the usage of calloc()?

Re: Simple console ANSI C program crashes Win64 system upon start?

<3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=617&group=comp.os.ms-windows.programmer.win32#617

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:6214:1850:b0:63d:3055:4815 with SMTP id d16-20020a056214185000b0063d30554815mr9232qvy.7.1690558261343;
Fri, 28 Jul 2023 08:31:01 -0700 (PDT)
X-Received: by 2002:a05:6808:219d:b0:3a1:f368:6b1 with SMTP id
be29-20020a056808219d00b003a1f36806b1mr5278026oib.3.1690558261131; Fri, 28
Jul 2023 08:31:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 08:31:00 -0700 (PDT)
In-Reply-To: <c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.92; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 136.158.103.92
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: mutazilah@gmail.com (Paul Edwards)
Injection-Date: Fri, 28 Jul 2023 15:31:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Paul Edwards - Fri, 28 Jul 2023 15:31 UTC

On Friday, July 28, 2023 at 11:01:45 PM UTC+8, Harry Potter wrote:

> I tried both of your suggestions. Same result.

Same result as the hello world that worked, or the original which failed?

> Could it be the usage of calloc()?

If it failed, then calloc shouldn't be being hit.

Try combining both suggestions - ie put main as the first
file, and do a return 0 after the first printf.

Also send both the main.c code and the compile command
you are using so that I can see again.

Also send the working hello world - both code and compile command.

BFN. Paul.

Re: Simple console ANSI C program crashes Win64 system upon start?

<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=619&group=comp.os.ms-windows.programmer.win32#619

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ad4:5a41:0:b0:635:eade:c68f with SMTP id ej1-20020ad45a41000000b00635eadec68fmr10945qvb.5.1690585730530;
Fri, 28 Jul 2023 16:08:50 -0700 (PDT)
X-Received: by 2002:a05:6870:d899:b0:1bb:52fa:7cf6 with SMTP id
dv25-20020a056870d89900b001bb52fa7cf6mr4559655oab.2.1690585730198; Fri, 28
Jul 2023 16:08:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 16:08:49 -0700 (PDT)
In-Reply-To: <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Fri, 28 Jul 2023 23:08:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harry Potter - Fri, 28 Jul 2023 23:08 UTC

On Friday, July 28, 2023 at 11:31:02 AM UTC-4, Paul Edwards wrote:
> Try combining both suggestions - ie put main as the first
> file, and do a return 0 after the first printf.
>
I did. It didn'yt work. :(

> Also send both the main.c code and the compile command
> you are using so that I can see again.
>
> Also send the working hello world - both code and compile command.
>
The problem code:
----------------------------------
/***********************************************************************
*
* Individual module for the ANSI compiler.
*
* The template for this file was created by TempC Module Creator by
* Joseph Rose. This template can be used in your programs, provided
* you mention TempC in your software's documentation. If this source
* code is distributed, this copyright must be included in the file.
*
***********************************************************************/

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>

#include "in.h"
#include "buffer.h"

struct __indata {
enum {
sysCBM,
sysAtari,
sysApple2
} sys;
char toktype[16];
char littype[16];
struct {
unsigned docurchar;
char curcharname[32];
unsigned docharptr;
char curptrname[32];
} dozp;
char outname[256];
} indata;

unsigned loadfile (char* name);

int main (int argc, char** argv)
{ char c, c2;
struct string_buffer * atstring;
//Enable the following line and declare
//char programname[128]; if the executable path is
//needed:
//strcpy (programname, argv[0]);
//Analyze the command line:
puts ("Ready to start program!"); getchar();
while (--argc) {
//Advance to next arg.
argv++;
printf ("Para %s\n", *argv); getchar();
//Is it a switch?
if (argv[0][0]=='-') {
//Process switch:
putchar ((argv[0][1])); puts(""); getchar();
switch (argv[0][1]) {
case 't':
//puts ("t switch processed.");
--argc; argv++;
if (!strcmp(*argv, "cbm")) indata.sys=sysCBM;
else if (!strcmp(*argv, "apple2")) indata.sys=sysApple2;
else if (!strcmp(*argv, "atari")) indata.sys=sysAtari;
else {
puts ("Error parsing cmdline: unrecognized target system.");
return 1;
}
break;
case 'o':
--argc; argv++;
strcpy (indata.outname, *argv);
break;
case 'c':
// switch (argv[0][2]) {
// case 't':
// case 'l':
// }
c=argv[0][2];
--argc; argv++;
if (c=='t') strcpy (indata.toktype,*argv);
else if (c=='l') strcpy (indata.littype,*argv);
else {
puts ("Error parsing cmdline: unrecognized compression type.");
return 1;
}
break;

case '?': //Print help.
puts ("Help."); return 0;
default: //Trap bad switch.
printf ("Bad switch: %c.", argv[0][1]); return 1;
}
} else { //Handle filename:
//printf ("File: %s\n", argv[0]);
//--argc; argv++;
puts (*argv); getchar();
if (loadfile(*argv)) {
printf ("Error in file \"%s\"\n", *argv);
return 2;
}
}
}
// if ()
puts ("Ready to print strings!"); getchar();
if (!strings) {
puts ("No input strings!"); return 2;
}
atstring=strings;
do {
puts (atstring->name);
puts ("----------------");
puts (atstring->in);
printf (">>> len=%d\n", atstring->inlen);
puts ("=================");
atstring=atstring->next;
} while (atstring);
puts ("---end!");
getchar();
return 0;
}

----------------------------------
The compile command:
------------------------------
c:\dm\bin\dmc buffer.c in.c main.c -o -mn -4 -optok_comp.exe
-------------------------------------
The Hello, world example:
--------------------------------------
/***********************************************************************
*
* Individual module for the ANSI compiler.
*
* The template for this file was created by TempC Module Creator by
* Joseph Rose. This template can be used in your programs, provided
* you mention TempC in your software's documentation. If this source
* code is distributed, this copyright must be included in the file.
*
***********************************************************************/

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>

int main (int argc, char** argv)
{ //Enable the following line and declare
//char programname[128]; if the executable path is
//needed:
//strcpy (programname, argv[0]);
//Analyze the command line:
puts ("Hello, world!"); getchar();
return 0;
}

------------------------------
Its compile command:
---------------------------------
c:\dm\bin\dmc main.c -o -mn -4 -otet.exe
---------------------------------
BTW, it seems to work on a Win7/64 laptop. I'm going to try to port this code to Open Watcom soon....

Re: Simple console ANSI C program crashes Win64 system upon start?

<849c7358-767e-4c97-a189-519a8df336acn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=620&group=comp.os.ms-windows.programmer.win32#620

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:6214:14e6:b0:635:49d7:5445 with SMTP id k6-20020a05621414e600b0063549d75445mr11995qvw.7.1690586866236;
Fri, 28 Jul 2023 16:27:46 -0700 (PDT)
X-Received: by 2002:a05:6808:13c2:b0:3a1:eb8a:203d with SMTP id
d2-20020a05680813c200b003a1eb8a203dmr7123847oiw.11.1690586865981; Fri, 28 Jul
2023 16:27:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Fri, 28 Jul 2023 16:27:45 -0700 (PDT)
In-Reply-To: <b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <849c7358-767e-4c97-a189-519a8df336acn@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Fri, 28 Jul 2023 23:27:46 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1624
 by: Harry Potter - Fri, 28 Jul 2023 23:27 UTC

The same problem occurred with OW. :(

Re: Simple console ANSI C program crashes Win64 system upon start?

<b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=622&group=comp.os.ms-windows.programmer.win32#622

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ad4:4f51:0:b0:63c:e916:a2cf with SMTP id eu17-20020ad44f51000000b0063ce916a2cfmr22795qvb.6.1690700383615;
Sat, 29 Jul 2023 23:59:43 -0700 (PDT)
X-Received: by 2002:a05:6808:171a:b0:3a1:f230:c074 with SMTP id
bc26-20020a056808171a00b003a1f230c074mr12462934oib.5.1690700383386; Sat, 29
Jul 2023 23:59:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Sat, 29 Jul 2023 23:59:43 -0700 (PDT)
In-Reply-To: <b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.92; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 136.158.103.92
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: mutazilah@gmail.com (Paul Edwards)
Injection-Date: Sun, 30 Jul 2023 06:59:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2008
 by: Paul Edwards - Sun, 30 Jul 2023 06:59 UTC

On Saturday, July 29, 2023 at 7:08:52 AM UTC+8, Harry Potter wrote:

> > Also send both the main.c code and the compile command
> > you are using so that I can see again.

> The problem code:

> puts ("Ready to start program!"); getchar();

Was my suggestion unclear?

I asked you to put a return 0 after that puts. I don't see it.

BFN. Paul.

Re: Simple console ANSI C program crashes Win64 system upon start?

<44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=623&group=comp.os.ms-windows.programmer.win32#623

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:620a:1aa6:b0:76a:f46f:a048 with SMTP id bl38-20020a05620a1aa600b0076af46fa048mr25576qkb.13.1690711534664;
Sun, 30 Jul 2023 03:05:34 -0700 (PDT)
X-Received: by 2002:a9d:66cb:0:b0:6b8:8894:e4ac with SMTP id
t11-20020a9d66cb000000b006b88894e4acmr8546542otm.3.1690711534421; Sun, 30 Jul
2023 03:05:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Sun, 30 Jul 2023 03:05:33 -0700 (PDT)
In-Reply-To: <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com> <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Sun, 30 Jul 2023 10:05:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harry Potter - Sun, 30 Jul 2023 10:05 UTC

On Sunday, July 30, 2023 at 2:59:45 AM UTC-4, Paul Edwards wrote:
> I asked you to put a return 0 after that puts. I don't see it.
>
I plan to try that later today.

Re: Simple console ANSI C program crashes Win64 system upon start?

<f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=624&group=comp.os.ms-windows.programmer.win32#624

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ad4:58a4:0:b0:63c:f38d:e0ce with SMTP id ea4-20020ad458a4000000b0063cf38de0cemr51642qvb.1.1690758256626;
Sun, 30 Jul 2023 16:04:16 -0700 (PDT)
X-Received: by 2002:a05:6808:1801:b0:3a4:87eb:da2c with SMTP id
bh1-20020a056808180100b003a487ebda2cmr16160433oib.0.1690758256322; Sun, 30
Jul 2023 16:04:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Sun, 30 Jul 2023 16:04:15 -0700 (PDT)
In-Reply-To: <44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com> <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
<44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Sun, 30 Jul 2023 23:04:16 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2211
 by: Harry Potter - Sun, 30 Jul 2023 23:04 UTC

I tried adding "return 0;" to the beginning of the program and got the same problem, but I have more information: IIRC, it was a system service exception, but I didn't commit the causing program to memory. Also, I got another BSOD stating I think a DMA exception, and, upon a second restart, the system wouldn't start up. :( Then Windows performed auto fix mode. I have it do nothing, and the system started behaving properly again at that point.

Re: Simple console ANSI C program crashes Win64 system upon start?

<39b877ee-1839-4c0b-9837-dfb4fbabdb5en@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=625&group=comp.os.ms-windows.programmer.win32#625

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:622a:1aa4:b0:403:acd3:eb2f with SMTP id s36-20020a05622a1aa400b00403acd3eb2fmr28172qtc.4.1690761662815;
Sun, 30 Jul 2023 17:01:02 -0700 (PDT)
X-Received: by 2002:a05:6870:9572:b0:1b0:7c0b:7db7 with SMTP id
v50-20020a056870957200b001b07c0b7db7mr10311531oal.8.1690761662392; Sun, 30
Jul 2023 17:01:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Sun, 30 Jul 2023 17:01:01 -0700 (PDT)
In-Reply-To: <f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.92; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 136.158.103.92
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com> <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
<44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com> <f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <39b877ee-1839-4c0b-9837-dfb4fbabdb5en@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: mutazilah@gmail.com (Paul Edwards)
Injection-Date: Mon, 31 Jul 2023 00:01:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2477
 by: Paul Edwards - Mon, 31 Jul 2023 00:01 UTC

On Monday, July 31, 2023 at 7:04:18 AM UTC+8, Harry Potter wrote:

> I tried adding "return 0;" to the beginning of the program and got
> the same problem, but I have more information: IIRC, it was a
> system service exception, but I didn't commit the causing program
> to memory. Also, I got another BSOD stating I think a DMA
> exception, and, upon a second restart, the system wouldn't start
> up. :( Then Windows performed auto fix mode. I have it do nothing,
> and the system started behaving properly again at that point.

By "behaving properly" do you mean the problem with your
program has been solved and you no longer need help?

BFN. Paul.

Re: Simple console ANSI C program crashes Win64 system upon start?

<7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=626&group=comp.os.ms-windows.programmer.win32#626

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ad4:4f33:0:b0:635:f3c8:860d with SMTP id fc19-20020ad44f33000000b00635f3c8860dmr31520qvb.11.1690798066022;
Mon, 31 Jul 2023 03:07:46 -0700 (PDT)
X-Received: by 2002:a05:6808:1a18:b0:3a7:2d4c:5d34 with SMTP id
bk24-20020a0568081a1800b003a72d4c5d34mr6198139oib.8.1690798065775; Mon, 31
Jul 2023 03:07:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Mon, 31 Jul 2023 03:07:45 -0700 (PDT)
In-Reply-To: <39b877ee-1839-4c0b-9837-dfb4fbabdb5en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com> <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
<44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com> <f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>
<39b877ee-1839-4c0b-9837-dfb4fbabdb5en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Mon, 31 Jul 2023 10:07:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2132
 by: Harry Potter - Mon, 31 Jul 2023 10:07 UTC

On Sunday, July 30, 2023 at 8:01:04 PM UTC-4, Paul Edwards wrote:
> By "behaving properly" do you mean the problem with your
> program has been solved and you no longer need help?
>
No, just that Windows started behaving properly again in the end.

Re: Simple console ANSI C program crashes Win64 system upon start?

<b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=627&group=comp.os.ms-windows.programmer.win32#627

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ad4:4e92:0:b0:63c:ef89:1a5e with SMTP id dy18-20020ad44e92000000b0063cef891a5emr72010qvb.0.1690854199696;
Mon, 31 Jul 2023 18:43:19 -0700 (PDT)
X-Received: by 2002:a9d:6c0b:0:b0:6b4:5ee1:a988 with SMTP id
f11-20020a9d6c0b000000b006b45ee1a988mr12598586otq.5.1690854199435; Mon, 31
Jul 2023 18:43:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Mon, 31 Jul 2023 18:43:19 -0700 (PDT)
In-Reply-To: <7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.92; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 136.158.103.92
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com> <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
<44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com> <f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>
<39b877ee-1839-4c0b-9837-dfb4fbabdb5en@googlegroups.com> <7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: mutazilah@gmail.com (Paul Edwards)
Injection-Date: Tue, 01 Aug 2023 01:43:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2631
 by: Paul Edwards - Tue, 1 Aug 2023 01:43 UTC

On Monday, July 31, 2023 at 6:07:47 PM UTC+8, Harry Potter wrote:

> On Sunday, July 30, 2023 at 8:01:04 PM UTC-4, Paul Edwards wrote:
> > By "behaving properly" do you mean the problem with your
> > program has been solved and you no longer need help?
> >
> No, just that Windows started behaving properly again in the end.

Ok, so you still have an issue.

Two things. You showed me this compile command:

c:\dm\bin\dmc buffer.c in.c main.c -o -mn -4 -optok_comp.exe

I asked you to put main.c first, didn't I?

So please show me a fresh compile command, and also show me
fresh source code that shows the return in the place that I asked
you to put it.

BFN. Paul.

Re: Simple console ANSI C program crashes Win64 system upon start?

<0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=628&group=comp.os.ms-windows.programmer.win32#628

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:620a:28c2:b0:767:fe53:3691 with SMTP id l2-20020a05620a28c200b00767fe533691mr172232qkp.3.1691097848438;
Thu, 03 Aug 2023 14:24:08 -0700 (PDT)
X-Received: by 2002:a05:6808:300f:b0:3a4:1e93:8988 with SMTP id
ay15-20020a056808300f00b003a41e938988mr30257341oib.10.1691097847698; Thu, 03
Aug 2023 14:24:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Thu, 3 Aug 2023 14:24:07 -0700 (PDT)
In-Reply-To: <b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com> <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
<44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com> <f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>
<39b877ee-1839-4c0b-9837-dfb4fbabdb5en@googlegroups.com> <7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com>
<b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Thu, 03 Aug 2023 21:24:08 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 4353
 by: Harry Potter - Thu, 3 Aug 2023 21:24 UTC

I just tried your suggestions. No change. :( Following are the current main() definition:
--------------------------------
int main (int argc, char** argv)
{ char c, c2;
struct string_buffer * atstring;
//Enable the following line and declare
//char programname[128]; if the executable path is
//needed:
//strcpy (programname, argv[0]);
//Analyze the command line:
return 0;
puts ("Ready to start program!"); getchar();
while (--argc) {
//Advance to next arg.
argv++;
printf ("Para %s\n", *argv); getchar();
//Is it a switch?
if (argv[0][0]=='-') {
//Process switch:
putchar ((argv[0][1])); puts(""); getchar();
switch (argv[0][1]) {
case 't':
//puts ("t switch processed.");
--argc; argv++;
if (!strcmp(*argv, "cbm")) indata.sys=sysCBM;
else if (!strcmp(*argv, "apple2")) indata.sys=sysApple2;
else if (!strcmp(*argv, "atari")) indata.sys=sysAtari;
else {
puts ("Error parsing cmdline: unrecognized target system.");
return 1;
}
break;
case 'o':
--argc; argv++;
strcpy (indata.outname, *argv);
break;
case 'c':
// switch (argv[0][2]) {
// case 't':
// case 'l':
// }
c=argv[0][2];
--argc; argv++;
if (c=='t') strcpy (indata.toktype,*argv);
else if (c=='l') strcpy (indata.littype,*argv);
else {
puts ("Error parsing cmdline: unrecognized compression type.");
return 1;
}
break;

case '?': //Print help.
puts ("Help."); return 0;
default: //Trap bad switch.
printf ("Bad switch: %c.", argv[0][1]); return 1;
}
} else { //Handle filename:
//printf ("File: %s\n", argv[0]);
//--argc; argv++;
puts (*argv); getchar();
if (loadfile(*argv)) {
printf ("Error in file \"%s\"\n", *argv);
return 2;
}
}
}
// if ()
puts ("Ready to print strings!"); getchar();
if (!strings) {
puts ("No input strings!"); return 2;
}
atstring=strings;
do {
puts (atstring->name);
puts ("----------------");
puts (atstring->in);
printf (">>> len=%d\n", atstring->inlen);
puts ("=================");
atstring=atstring->next;
} while (atstring);
puts ("---end!");
getchar();
return 0;
}

---------------------------------
and the command line:
------------------------------------------
c:\dm\bin\dmc main.c buffer.c in.c -o -mn -4 -optok_comp.exe

Re: Simple console ANSI C program crashes Win64 system upon start?

<bfefabdc-da09-4d7b-98aa-bd464eacbc97n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=629&group=comp.os.ms-windows.programmer.win32#629

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:622a:180e:b0:403:c38f:65f7 with SMTP id t14-20020a05622a180e00b00403c38f65f7mr24036qtc.0.1691318173974;
Sun, 06 Aug 2023 03:36:13 -0700 (PDT)
X-Received: by 2002:a05:6808:2015:b0:3a7:78a6:17b8 with SMTP id
q21-20020a056808201500b003a778a617b8mr10522564oiw.2.1691318173628; Sun, 06
Aug 2023 03:36:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Sun, 6 Aug 2023 03:36:13 -0700 (PDT)
In-Reply-To: <0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=136.158.103.115; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 136.158.103.115
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<6ff6195b-350e-45a8-bc2b-1b3f606f2c05n@googlegroups.com> <ca5e67e7-c30d-4206-9b40-73d964a82f82n@googlegroups.com>
<43854a96-78c6-410a-882c-2cc61ce8dd19n@googlegroups.com> <795b3cae-4a00-48be-b359-cfca4546e947n@googlegroups.com>
<c5844cb3-a1db-45d1-a599-dc3dad3e4c42n@googlegroups.com> <3ebd161d-7c6e-43d3-a8c9-5c826ebf1203n@googlegroups.com>
<b0faf70d-d657-4b9f-b741-280c57093aa4n@googlegroups.com> <b3bb7789-e15a-44cb-9e9b-94165b273e52n@googlegroups.com>
<44242fb3-627f-4a91-afda-8c4e0df1b9b4n@googlegroups.com> <f610879e-8c89-4af0-a8b6-f44d2be1345fn@googlegroups.com>
<39b877ee-1839-4c0b-9837-dfb4fbabdb5en@googlegroups.com> <7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com>
<b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com> <0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bfefabdc-da09-4d7b-98aa-bd464eacbc97n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: mutazilah@gmail.com (Paul Edwards)
Injection-Date: Sun, 06 Aug 2023 10:36:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Paul Edwards - Sun, 6 Aug 2023 10:36 UTC

On Friday, August 4, 2023 at 5:24:09 AM UTC+8, Harry Potter wrote:
> I just tried your suggestions. No change. :( Following are the current main() definition:
> --------------------------------
> int main (int argc, char** argv)
> {
> char c, c2;
> struct string_buffer * atstring;
> //Enable the following line and declare
> //char programname[128]; if the executable path is
> //needed:
> //strcpy (programname, argv[0]);
> //Analyze the command line:
> return 0;
> puts ("Ready to start program!"); getchar();

Ok, so by "no change" I assume that means you are still
getting the BSOD, even though this program is meant to
simply exit immediately.

> c:\dm\bin\dmc main.c buffer.c in.c -o -mn -4 -optok_comp.exe

And the compile command is in the right order at least.

Ok, so next thing to do is put:

return 0;
#if 0
puts ("Ready to start program!"); getchar();
....
#endif

To comment out all other code except for one returning "}"
and see what happens - with the same compile command,
ie compiling and (nominally) linking in two extra files that
aren't ever called.

BFN. Paul.

Re: Simple console ANSI C program crashes Win64 system upon start?

<uatmrr$3a2oc$1@news.xmission.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=630&group=comp.os.ms-windows.programmer.win32#630

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: legalize+jeeves@mail.xmission.com (Richard)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
Date: Tue, 8 Aug 2023 15:26:51 -0000 (UTC)
Organization: multi-cellular, biological
Sender: legalize+jeeves@mail.xmission.com
Message-ID: <uatmrr$3a2oc$1@news.xmission.com>
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com> <7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com> <b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com> <0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com>
Reply-To: (Richard) legalize+jeeves@mail.xmission.com
Injection-Date: Tue, 8 Aug 2023 15:26:51 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:2607:fa18:0:beef::4";
logging-data="3476236"; mail-complaints-to="abuse@xmission.com"
X-Reply-Etiquette: No copy by email, please
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: legalize@shell.xmission.com (Richard)
 by: Richard - Tue, 8 Aug 2023 15:26 UTC

[Please do not mail me a copy of your followup]

Harry Potter <rose.joseph12@yahoo.com> spake the secret code
<0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com> thusly:

>I just tried your suggestions. No change. :(

Have you tried stepping through it in the debugger?
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>

Re: Simple console ANSI C program crashes Win64 system upon start?

<5027f798-ab48-430c-bb29-f455ed091522n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=631&group=comp.os.ms-windows.programmer.win32#631

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:a05:620a:22e6:b0:765:a9f8:959b with SMTP id p6-20020a05620a22e600b00765a9f8959bmr6899qki.13.1691624354215;
Wed, 09 Aug 2023 16:39:14 -0700 (PDT)
X-Received: by 2002:a17:90a:858a:b0:263:5c6a:4d6e with SMTP id
m10-20020a17090a858a00b002635c6a4d6emr206747pjn.3.1691624354012; Wed, 09 Aug
2023 16:39:14 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Wed, 9 Aug 2023 16:39:13 -0700 (PDT)
In-Reply-To: <uatmrr$3a2oc$1@news.xmission.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com> <b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com>
<0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com> <uatmrr$3a2oc$1@news.xmission.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5027f798-ab48-430c-bb29-f455ed091522n@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Wed, 09 Aug 2023 23:39:14 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1640
 by: Harry Potter - Wed, 9 Aug 2023 23:39 UTC

On Tuesday, August 8, 2023 at 11:26:55 AM UTC-4, Richard wrote:
> Have you tried stepping through it in the debugger?

I just tried Open Watcom's debugger and got a "Cannot load trap file (%s) 'std.dll'" error. :(

Re: Simple console ANSI C program crashes Win64 system upon start?

<fa25c745-21b6-45d7-bf1c-5d4675043b4fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=632&group=comp.os.ms-windows.programmer.win32#632

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:ac8:6607:0:b0:40d:4c6:bce7 with SMTP id c7-20020ac86607000000b0040d04c6bce7mr47640qtp.10.1691845616766;
Sat, 12 Aug 2023 06:06:56 -0700 (PDT)
X-Received: by 2002:a17:902:d4c5:b0:1b9:e867:b496 with SMTP id
o5-20020a170902d4c500b001b9e867b496mr1663262plg.0.1691845616550; Sat, 12 Aug
2023 06:06:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Sat, 12 Aug 2023 06:06:55 -0700 (PDT)
In-Reply-To: <5027f798-ab48-430c-bb29-f455ed091522n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=173.68.2.174; posting-account=xRocggoAAACFej4w6sQauoZjUP9yroE5
NNTP-Posting-Host: 173.68.2.174
References: <88cd0063-c337-4b4b-a7af-ee3b2ff9de86n@googlegroups.com>
<7bd2b4ee-e79c-460a-b600-24d1bf536fbdn@googlegroups.com> <b32afce5-13d2-49f2-997a-ef5003bb2425n@googlegroups.com>
<0ab85c17-29a8-4c80-90f7-d739afc6e4f6n@googlegroups.com> <uatmrr$3a2oc$1@news.xmission.com>
<5027f798-ab48-430c-bb29-f455ed091522n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa25c745-21b6-45d7-bf1c-5d4675043b4fn@googlegroups.com>
Subject: Re: Simple console ANSI C program crashes Win64 system upon start?
From: rose.joseph12@yahoo.com (Harry Potter)
Injection-Date: Sat, 12 Aug 2023 13:06:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Harry Potter - Sat, 12 Aug 2023 13:06 UTC

Never mind: I got it to work. :) Maybe there's a bug with DMC. I tried Open Watcom. It didn't work. However, when I copied the program to my hard drive--it was compressed on a floppy--it started working. :) I think OW has a bug with compiled programs on a different drive than OW's compiler.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor