1. Llama/GTK
- Posted by jbrown105 at hotpop.com
Jun 30, 2001
I've updated Llama/GTK. It know has CText, dummy RText & LText, message_box()
shows correct buttons and returns correct answer after waiting for reponse,
menubar now always at top of window, setText(MLE) works, and programs can
draw directly on a window. (However canvas is no longer a supported
control.)
Can't post file anywhere (to the list or to a web server) because of problems
w/ my ISP. Will post as soon as possible.
jbrown105
--
Linux User:190064
Linux Machine:84163
http://jbrown105.1avenue.com
2. Llama/GTK
For the curious, I've added the latest Llama/Gtk code to my web page, at:
http://www.lanset.com/dcuny/llama.htm
I've verified that it (mostly) works under Linux.
I ran into an error when opening up DLLs under the latest version of
Euphoria/Linux. The code:
atom GTK
GTK = open_dll("xxx")
caused an error, while:
object GTK
GTK = open_dll("xxx")
didn't. The "xxx" in the example is the actual value; instead of setting GTK
to zero (not found), it presented an error. I'd guess it to be some sort of
type error, but I'm too fuzzy-headed to track it down, and I'm currently
running the PD version, so Euphoria's being unhelpful. Mumble mumble
mumzzzzzz.
-- David Cuny
3. Re: Llama/GTK
David Cuny writes:
> The code:
> atom GTK
> GTK = open_dll("xxx")
> caused an error, while:
> object GTK
> GTK = open_dll("xxx")
> didn't. The "xxx" in the example is the actual value;
> instead of setting GTK to zero (not found), it presented
> an error. I'd guess it to be some sort of type error, but
> I'm too fuzzy-headed to track it down, and I'm
> currently running the PD version, so Euphoria's
> being unhelpful.
I typed in the exact code that you have there, and it
set GTK to 0 as expected. I looked at the internal code
for open_dll() and it doesn't look like it could ever
return anything other than an atom.
Maybe you should try it again with the Complete Edition.
Perhaps the type_check failure occurs on some
other statement later on.
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
4. Re: Llama/GTK
Robert Craig wrote:
> I typed in the exact code that you have there,
> and it set GTK to 0 as expected. I looked at the
> internal code for open_dll() and it doesn't look
> like it could ever return anything other than an atom.
I'll see if I can recreate the bug. The problem wasn't that the value wasn't
an atom - the PD version wouldn't say what the error was. I had a portion of
the code something like this:
atom GTK, GDK
...
GTK = open_dll( "...some lib..." )
GTK = open_dll( "...some other lib..." ) <-- error occured here
I stuck in a debug statement:
atom GTK, GDK
object xxx
...
GTK = open_dll( "...some lib..." )
xxx = open_dll( "...some other lib..." )
GTK = open_dll( "...some other lib..." ) <-- error occured here
Tracing the code showed that
xxx = 0
But when the assignment to GTK took place, Euphoria reported an error at the
machine_proc() call. I was able to duplicate the error several times.
Finally, I changed the code to:
object GTK, GDK
...
GTK = open_dll( "...some lib..." )
GTK = open_dll( "...some other lib..." )
and it ran without error.
Perhaps I have flakey memory or something.
Thanks!
-- David Cuny