From: <doc...@us...> - 2007-12-07 23:09:35
|
Revision: 213 http://openpcl.svn.sourceforge.net/openpcl/?rev=213&view=rev Author: documentsystems Date: 2007-12-07 15:09:37 -0800 (Fri, 07 Dec 2007) Log Message: ----------- Howard Hoagland. Added "synchronized" to the getImageForPage() method because the synchronized had to be taken off of the PclRenderImage.parseAndRender() method, because PclRenderImage is doing double duty as the render engine for OpenPCLViewer and also is being used as the render engine in a J2EE container running many threads at once. Modified Paths: -------------- openpcl/src/com/openpcl/viewer/OpenPCLViewer.java Modified: openpcl/src/com/openpcl/viewer/OpenPCLViewer.java =================================================================== --- openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-12-07 22:12:12 UTC (rev 212) +++ openpcl/src/com/openpcl/viewer/OpenPCLViewer.java 2007-12-07 23:09:37 UTC (rev 213) @@ -1752,7 +1752,7 @@ * @param pZoomFactor. This is mandatory (see note for why). * @return BufferedImage. If null, then get the return String from PclRenderImage.getLastErrorString() */ - public BufferedImage getImageForPage(int pPageNumber, byte[] pPrintTimePclBytes, + public synchronized BufferedImage getImageForPage(int pPageNumber, byte[] pPrintTimePclBytes, boolean pIsForPrinting, String pPaperSize, double pZoomFactor) { if (mPosViewSelected != null) { PriDebug.infoln("OpenPCLViewer> getImageForPage(page=" + pPageNumber + ", boolean printing=" + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |