Something that perhaps has something to do with this. I get this error most 
times when opening a new ImageView window:

'ErrorException("getgc: Canvas is not drawable")'


So I make a while loop with "try" for the image view, until it appears. The 
code is like this:

appeared = false
while !appeared
   try
      canv, imageslice = ImageView.view(p_img)
      timedwait(es_falso, 0.1; pollint=0.1)
      appeared = true
   catch err
      println(err)
   end
end

On Friday, July 11, 2014 7:13:15 PM UTC-3, Tim Holy wrote:
>
> Hmm, that is weird. Issue filed: 
> https://github.com/timholy/ImageView.jl/issues/32 
>
> --Tim 
>
> On Friday, July 11, 2014 10:27:36 AM David A. wrote: 
> > How can we free up memory after displaying an image using ImageView 
> module? 
> > 
> > To show the image I'm doing: 
> > 
> > img = imread("path") 
> > canv1, imageslice = ImageView.view(img) 
> > 
> > And to update it: 
> > 
> > ImageView.view(canvas(canv1), img) 
> > 
> > 
> > Memory usage keeps growing with each update. After trying the destroy() 
> > function the memory remains used. It only frees up that memory after 
> > closing the REPL window. 
>
>

Reply via email to