[gradsusr] text garbling when using buttons
Jeffrey Duda
jdduda at iastate.edu
Tue Oct 5 14:54:44 EDT 2010
I also have my IT guy in the meteorology department here looking into it.
Here are some relevant code lines in my script:
'set rgb 90 100 100 100'
'set rgb 91 50 50 50'
'set rgb 92 200 200 200'
'set button 1 90 91 92 2 90 92 91 6'
'draw button 1 9 8 0.75 0.25 >'
'draw button 2 8 8 0.75 0.25 <'
'draw button 3 10 8 0.75 0.25 STOP'
'swap'
'q pos'
buttonnum = 0
buttonnum = subwrd(result,7)
if (buttonnum = 1)
tt = tt + 1
'redraw button 1 1'
else
if (buttonnum = 2)
tt = tt - 1
'redraw button 2 1'
else
if (buttonnum = 3)
break
else
say "click on a button to continue"
endif
endif
endif
Jeff
On Tue, Oct 5, 2010 at 1:38 PM, Jennifer Adams <jma at cola.iges.org> wrote:
> Heh.
> Well, the "Overlay!... " messages are part of a memory-management debugging
> scheme we are using -- those message indicate a memory leak somewhere. I
> guess I must have left it in verbose mode for the a5 release, because those
> messages should ordinarily be suppressed. If you are building from source,
> you can set verbo=0 in galloc.c. Better yet, upgrade to 2.0.a9!
>
> As for why the text in the command window got garbled, I have no idea,
> except that the characters it's trying to print (in the first few lines) are
> the ones that were 'stomped on' (overlaid).
>
> I would be interested to try to reproduce your memory leak so I can patch
> it, if you could please email me a simplified version of your script that
> still generates the messages. Looks like the buttons are causing the
> problems.
>
> --Jennifer
>
>
>
> On Oct 5, 2010, at 2:16 PM, Jeffrey Duda wrote:
>
> Has anyone else ever had command line text become garbled when using
> buttons in Grads? See attached images for what I mean. The output came at
> a rate of one line for each time I clicked on a button.
>
> Jeff Duda
>
> --
> Jeff Duda
> Iowa State University
> Meteorology Graduate Student
> 3134 Agronomy Hall
> www.meteor.iastate.edu/~jdduda <http://www.meteor.iastate.edu/%7Ejdduda>
> <Screenshot-1.png><w_image.png>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> --
> Jennifer M. Adams
> IGES/COLA
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705
> jma at cola.iges.org
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
--
Jeff Duda
Iowa State University
Meteorology Graduate Student
3134 Agronomy Hall
www.meteor.iastate.edu/~jdduda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101005/30d83046/attachment-0003.html
More information about the gradsusr
mailing list