Raw Text Strings In OIX 8.5.2 Contain An Extra Trailing Unicode NULL (U+0000) Character

(Doc ID 2081278.1)

Last updated on MAY 02, 2017

Applies to:

Oracle Outside In Technology - Version 8.5.2 and later
Information in this document applies to any platform.


On : Outside In Viewer ActiveX Control 8.5.2

Starting with Outside In Viewer for ActiveX 8.5.2, raw text strings returned by first calling the function GetRawText and then querying the property RawTextString in C# contain an extra trailing Unicode character with value zero (U+0000). Thus, the length of the string returned by RawTextString is one greater than the length reported by calling RawTextLength.

No errors reported.

File is rendered without error.

The issue can be reproduced at will with the following steps:

- Open the OIX 8.5.2 sample project SearchAnnoCS in Visual Studio. Modify the source code of SearchAnnoCs.cs and include the following System.Diagnostics.Debug.WriteLine output in function HighlightWords after line 109 so the code looks like the following:

- Start SearchAnnoCS.exe in Visual Studio and load any document.

- In the output window you can see that the diagnostics output reports NULL terminating characters and mismatching length values.

Up to version 8.5.1, the raw text string in C# never ended with a NULL character and the string length of RawTextString was always consistent with the length reported by RawTextLength. It is expected that 8.5.2 would have the same behavior.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms