• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 1081 for trunk

Show
Ignore:
Timestamp:
11/17/06 11:04:25 (2 years ago)
Author:
callan
Message:

Should now have *finally* squashed #462. Due to java.nio.channels.FileChannel? fun, we've had to move the "close()" closer to the retrieval of the mapped byte buffers in the rendering strategies.

Location:
trunk/components
Files:
3 modified

  • rendering/src/omeis/providers/re/GreyScaleStrategy.java (modified) (2 diffs)
  • rendering/src/omeis/providers/re/HSBStrategy.java (modified) (3 diffs)
  • server/src/ome/services/RenderingBean.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/components/rendering/src/omeis/providers/re/GreyScaleStrategy.java

    r1048 r1081  
    4040 
    4141//Application-internal dependencies 
     42import ome.conditions.ResourceError; 
    4243import ome.io.nio.PixelBuffer; 
    4344import ome.model.core.Pixels; 
    … …  
    256257                        } 
    257258                } 
     259        // Make sure that the pixel buffer is cleansed properly. 
     260        try 
     261        { 
     262                        pixels.close(); 
     263                } 
     264        catch (IOException e) 
     265        { 
     266                        e.printStackTrace(); 
     267                        throw new ResourceError(e.getMessage()); 
     268                } 
    258269        } 
    259270     
  • trunk/components/rendering/src/omeis/providers/re/HSBStrategy.java

    r1048 r1081  
    4646//j.mimport ome.util.concur.tasks.Future; 
    4747 
     48import ome.conditions.ResourceError; 
    4849import ome.io.nio.PixelBuffer; 
    4950import ome.model.core.Pixels; 
    … …  
    178179                } 
    179180        } 
     181         
     182        // Make sure that the pixel buffer is cleansed properly. 
     183        try 
     184        { 
     185                        pixels.close(); 
     186                } 
     187        catch (IOException e) 
     188        { 
     189                        e.printStackTrace(); 
     190                        throw new ResourceError(e.getMessage()); 
     191                } 
    180192        return wData; 
    181193    } 
    … …  
    347359            } 
    348360        } 
     361         
     362        //Shutdown the task processor 
     363        processor.shutdown(); 
     364         
     365        //End the performance metrics for this rendering event. 
    349366        performanceStats.endRendering(); 
    350367    } 
  • trunk/components/server/src/ome/services/RenderingBean.java

    r1071 r1081  
    330330            PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); 
    331331            renderer = new Renderer(pixMetaSrv, pixelsObj, rendDefObj, buffer); 
    332             try 
    333             { 
    334                 if (buffer != null) 
    335                         buffer.close(); 
    336                 } 
    337             catch (IOException e) 
    338             { 
    339                         e.printStackTrace(); 
    340                         throw new ResourceError(e.getMessage()); 
    341                 } 
    342332        } 
    343333        finally 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/