delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/09/23:15:08

Date: Sat, 10 Oct 1998 04:14:48 +0100 (BST)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Possible bugs in WinAllegro and RHIDE 1.4.
In-Reply-To: <6vm8k0$6gm$1@toto.tig.com.au>
Message-ID: <Pine.OSF.4.05.9810100406420.4567-100000@sable.ox.ac.uk>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 10 Oct 1998, Deathifier wrote:

> Hello,
> I've been using WinAllegro and RSXNTDJ to convert some programs to Win32.
> 
> Now I've had a couple of problems with a few of the functions, I wrote a
> message to who I thought was the guy in charge of the project, but havn't
> recieved a response (It probably never got there).

Who did you send the message to?  I ported WinAllegro to
RSXNTDJ, but Stefan Schimanski is the one who ported Allegro to
make WinAllegro.  If you sent the message to me then I'm sorry,
I can't find it so I must have not received it.  If you sent the
message to Stefan, note that he only has internet access at
weekends so can't respond quickly.

> The three functions that cause problems are:
> rectfill,
> line,
> clear_to_colour,

What bitmap are you drawing to?  If it's the screen, did you
acquire it first?  If you don't know what I'm talking about,
read the WinAllegro documentation and my tutorial:

    http://www.canvaslink.com/gfoot/winallegro/winaltut.zip

There are some extra things you need to do in WinAllegro.

> The all make the program crash, with an "application recieved message
> SIGSEGV" at 0x0000000B.
> Why it does this I don't know, as far as I know I'm calling them alright
> (rectfill and line draw to my BITMAP buffer).  I will try to just make a
> little program with these functions in it, and if you want to see what
> happens I will post the code and an EXE (Will total about 50k).

Don't post the EXE, but do post the code if the problem isn't
solved by reading the documentation.  You could also post the
`allegro.log' file, but I have no idea what it means really.

> I know WinAllegro hasn't been tested that much, and I'd like to help out
> wherever I can.

Good, the only way bugs can be found is if people try using it.

> I'm using the latest version 3.0 WIP 5 I believe, so far everything works
> apart from these, I can draw circles and triangles with no problem.

I might suspect that there could be a problem with the import
library, but then I'd expect it to be completely wrong, rather
than just wrong in places.  However, I have noticed strange
things about this in the past, when making the port; RSXNTDJ's
import library generator was slightly wrong, in a way that
should have made the whole library wrong, but in fact some
things worked fine while others crashed the program.  Very
confusing to debug.

> I am using the RSXNTDJ package on top of DJGPP and RHIDE, using the modified
> ld.exe (which I assume is causing the problem).  If it has been fixed in a
> newer version, please disregard this section.

Try using the unmodified ld.exe -- in this case it should work
fine.  It will pick up undefined references, which could be your
problem (they generate SIGSEGV at runtime).

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

xu do tavla fo la lojban  --  http://xiron.pc.helsinki.fi/lojban/lojban.html


- Raw text -


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