Re: HLA v1.69 crashes over this source!
From: Randall Hyde (randyhyde_at_earthlink.net)
Date: 08/23/04
- Next message: Randall Hyde: "New HIDE (HLA IDE) version is available"
- Previous message: hutch--: "Re: ADK/HLA v2.0 Update"
- In reply to: Purple_Cochoa: "HLA v1.69 crashes over this source!"
- Next in thread: Beth: "Re: HLA v1.69 crashes over this source!"
- Reply: Beth: "Re: HLA v1.69 crashes over this source!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 23 Aug 2004 05:31:33 GMT
"Purple_Cochoa" <green_cochoa@yahoo.com> wrote in message
news:cg790h$100@odah37.prod.google.com...
> Hi,
>
> I've recently downloaded and messed around with Randy
> Hyde's HLA version 1.69 from webster. As I am a rank
> beginner, I'm sure I've made horrible mistakes in the
> HLA syntax, especially if I'm right, with the JUMP labels.
>
> However, what's surprising is that instead of just
> reporting the error, hlaparse.exe also crashes on my
> WinXP box, bringing up the usual, "hlaparse has encountered
> a error and needs to close bla-bla-bla" XP dialog box.
>
> The source HLA crashes over is a simple, (though probably
> syntactically incorrect), ten liner and is appended to
> this post.
>
> I just thought I'd bring this to Randy's attention so
> that he'll be able to sort out the fault in HLA v1.69.
>
> The source that crashes HLA v1.69:
>
Here's the short version:
program GrandTotal;
static
NoOfInputs: int32 := 0;
begin GrandTotal;
#error
(
@typename( (NoOfInputs + 1))
);
end GrandTotal;
This one is definitely filed under "How come that was
never caught before?" The bug was in code that
gets executed quite a bit. I guess the bad pointer
reference that crashed HLA just happened to contain
good data most of the time.
In any case, it has been fixed and the fix will appear
in HLA v1.70.
In the meantime, the work-around is real easy --
Just create a syntactically correct HLA program and
it will compile without any problems. The major problem
in your example (that tripped this defect) is that memory
addresses do not take the form: "(NoOfInputs + 1)".
Instead, write this as "NoOfInputs[1]" (I'm assuming you're
trying to print the data at the first byte past NoOfInputs, if
you're actually trying to print the value of NoOfInput plus
one, then you need to use the INC or ADD instruction to
do the addition before printing this value out).
Cheers,
Randy Hyde
P.S. Thanks for the defect report. Reporting these errors
rather than shining them on helps make HLA a much better
product.
- Next message: Randall Hyde: "New HIDE (HLA IDE) version is available"
- Previous message: hutch--: "Re: ADK/HLA v2.0 Update"
- In reply to: Purple_Cochoa: "HLA v1.69 crashes over this source!"
- Next in thread: Beth: "Re: HLA v1.69 crashes over this source!"
- Reply: Beth: "Re: HLA v1.69 crashes over this source!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|