delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/27/23:16:03

From: temujin AT sentex DOT net
Newsgroups: comp.os.msdos.djgpp
Subject: Malloc problem.
Date: Fri, 26 Jun 1998 09:18:00 -0400
Organization: Sentex Communications
Lines: 7
Message-ID: <35939F88.5F0C@sentex.net>
NNTP-Posting-Host: 209.112.40.33
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I have a structure A which is 48 bytes.
In one function 550 A's get created with Malloc() and then when that
function exits and I try to malloc 5 bytes I get a General protection
fault, or when I try more then 500 I seem to get this problem of being
unable to use malloc.  BUT my program will work perfectly fine when the
number of A's does not exceed 500.  Is there some restriction on the
number of Malloc's you can use at a time?
ctly do you want to do?

I meant the other way around, rows of virtual pixels are referred to
as scanlines :).

- aYk -

| Atte "Yorkaturr" Koivula 	- aYk -	 |
| -------------------------------------- |
| God of Evil | yorka AT dlc DOT fi             |
| Programmer  |	yorka AT newbies DOT net        |
| Graphician  |	yorkaturr AT majik DOT netti DOT fi |
| -------------------------------------- |
| Majik MURPE  -  http://majik.netti.fi  |
 it. One of
the first things I did was to add Alfons Hoogervorst's registry code, and
then an attempt at finding the DNS server IP address [*]. Unfortunately,
as I didn't have access to a dial-up Internet connection, I was unable to
test it. No I do have dial-up access for a while, so I'll try and sort
this out.

[*] = Using Alfons Hoogervorst's excellent guide on how to do this via the
registry, DHCP.VXD & other methods.

	I've tried to make the DNS IP code independent of libsocket, so
maybe it'll be of some use when it works ;)

: If you read the docs for libsocket you'll probably find this
: restriction mentioned somewhere.

	The doc's do mention it is untested, but this is the first
feedback I've had - I'll get onto it.

	In the meantime, try configuring libsocket using netsetup - do
"make setup". Enter the DNS details from winipcfg, and then it should
work.

-- 
==============================================================================
         Rich Dawe - 4th-year MSci Physicist @ Bristol University, UK
------------------------------------------------------------------------------
      University: rd5718 AT bristol DOT ac DOT uk, http://irix.bris.ac.uk/~rd5718/
      Permanent:  richdawe AT bigfoot DOT com, http://www.bigfoot.com/~richdawe/
==============================================================================

- Raw text -


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