Re: Llama/GTK
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Oct 26, 1999
- 513 views
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