To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=86190
                 Issue #|86190
                 Summary|LinguServiceManager.getHyphenator fails
               Component|api
                 Version|1.0.0
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|jsc
             Reported by|hik4





------- Additional comments from [EMAIL PROTECTED] Mon Feb 18 12:48:25 +0000 
2008 -------
The following Delphi code fails at the marked line with:

[automation bridge] unexpected exception in
UnoConversionUtilities<T>::variantToAny !

function TSampleCode.Hyphenate(S: string): string;
var
    H: Variant;
    Locale: Variant;
    Props: Variant;
    HW: Variant;
    CoreReflection: Variant;
    LSM: Variant;
begin
    LSM := StarOffice.createInstance(
            'com.sun.star.linguistic2.LinguServiceManager');
    if VarIsArray(LSM) then
        Exit;
    if (VarIsEmpty(LSM) or VarIsNull(LSM)) then
        Exit;

    CoreReflection := StarOffice.createInstance(
            'com.sun.star.reflection.CoreReflection');
    CoreReflection.forName('com.sun.star.lang.Locale').createObject(
            Locale);
    Locale.Language := 'de';
    Locale.Country := '';
    Locale.Variant := '';

    H := LSM.getHyphenator(); // <=============== here an error

    HW := H.hyphenate('Silbentrennung', Locale, 2, Props);
    H := Null;
    Props := Null;
    Locale := Null;
    LSM := Null;
end;

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
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]

Reply via email to