Hi Josi,
Marton József wrote:
Hi,
the following applies at least to OOo 2.0.4 and 2.1 on WinXP (sry, now I
don't have access to a linux box with a scanner or similar attached to):
in the IDL reference (and in the IDL definition)
com::sun::star::scanner::XScannerManager.configureScanner has its 1st
argument defined as
[inout] com::sun::star::scanner::ScannerContext scanner_context
In the appropriate Java method
com.sun.star.scanner.XScannerManager.configureScanner takes its first
argument as ScannerContext[].
What is this difference caused by?
That is no bug and it is exactly the correct mapping for IDL to Java.
The parameter is an [inout] parameter and out parameters are mapped to
an array with length 1. In Java you don't have references or pointers
and so we transport the return value in an array of the same type.
The good news is that we use inout parameters seldom nowadays. The
design rules recommend to prevent inout parameters of possible and use
them only in exceptional cases.
Juergen
Is there an OOo 2.x build (preferably for WindowsXP) available with
OSL_DEBUG_LEVEL defined as greater than 1? I'd like to see exactly what
happens in the ScannerManager and ScannerThread classes defined in
extensions/source/scanner/scanunx.cxx
Thanks in advance,
Josi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]