1. Re: Compilers for translation
> From: Derek Parnell
> I've determined that the ChildWindowFromPoint problem never
> happens on my
> Windows Millenium machine but always happens on my NT4 SP5 machine.
>
> So maybe its a bug in Windows? Highly unlikely though.
That's been my suspicion (it's either Windows or Eu).
> Also, the call inside win32lib always has un-freed memory because we
> allocate a POINT structure to make the call!
I should be a little more specific. It's when memory other than that for
the structure is declared. Try this (at least in v053):
-- begin code
include win32lib.ew
constant mem = allocate(4)
-- free(mem)
constant
Win = create( Window, "Test", 0, 0, 0, 300, 300, 0),
CB = create( Combo, "", Win, 20, 20, 90, 200, 0)
WinMain( Win, Normal )
-- end code
Then try uncommenting the call to free(). On my machine (Win98), this makes
ChildWindowFromPoint work again. However, when I compile, the program
crashes.
> I'll probably not look at the Rebar problem until later in
> the week. Dan
> Moyer has alerted me to bug that allows you to close the main
> window if a
> modal window is minimized. I'll get that out of the way first.
I don't think the rebar thing is win32lib specific. It runs fine
interpreted, but crashes compiled (unless you only create children of the
rebar after all bands are created). Since, according to Rob, interpreted
and translated/compiled Euphoria code should run the same, my best suspect
right now is the translator itself (or LCC).
Matt