Mail Archives: djgpp/1998/04/19/02:05:11
From: | "Allen's" <allen DOT asjp AT cableol DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Bug caused by ____crtl_startup+138
|
Date: | Fri, 17 Apr 1998 21:25:30 +0100
|
Organization: | a
|
Lines: | 43
|
Message-ID: | <3537BABA.7D4D@cableol.co.uk>
|
NNTP-Posting-Host: | p55-castor-gui.tch.cableol.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
When I run some programs, I get a crash, when symify-ied I get
____crtl_startup+138. What does this do, and how can I stop it?
Source for one of the programs used to compile it:
#include <stdio.h>
#include <stdlib.h>
#include "allegro.h"
unsigned _stklen = 1048576;
int main()
{
int col=0;
int ma,mat,n,y=50,x=50,start,loop,div,k,go;
char map [100][100],row [80][160],drawhat;
allegro_init();
install_keyboard();
set_gfx_mode(GFX_VGA, 320, 200, 0, 0);
set_pallete(desktop_pallete);
for (loop = 0; loop < 500; loop++){
for (start = 80; start > 0; start=start-2){
for (n = - (start-2); n < (start/2); n++)
{
row [start][col] = map [y+start][x+n];
row [start][col+240] = map [y+n][x-start];
col++;
}
for (n = (start/2); n >- (start/2); n--)
{
row [start][col] = map [y+n][x+start];
row [start][col+80] = map [y-start][x+n];
col++;
}
}
}
return 0;
}
I used gcc -v runray.c -o runraya.exe -lalleg for compiling it.
- Raw text -