Bug 147002 - Using CLI Libraries, an exception occurs when starting Libre Office
Summary: Using CLI Libraries, an exception occurs when starting Libre Office
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-26 13:44 UTC by Sorin Boris
Modified: 2022-05-03 10:54 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Text of program (294.66 KB, application/x-zip-compressed)
2022-01-26 13:44 UTC, Sorin Boris
Details
Text of program (replaced file App.config) (294.91 KB, application/x-zip-compressed)
2022-01-27 09:40 UTC, Sorin Boris
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sorin Boris 2022-01-26 13:44:35 UTC
Created attachment 177806 [details]
Text of program

I have written an application that should launch Libre Office or Open Office using CLI Libraries. Its text is in the attachment. When only Open Office is installed on the computer, everything works good. When only Libre Office is installed on the computer, an exception occurs on the 1-st operator. Please help me understand what is wrong here. Thank you.
Comment 1 Sorin Boris 2022-01-27 09:40:43 UTC
Created attachment 177825 [details]
Text of program (replaced file App.config)
Comment 2 Sorin Boris 2022-01-27 09:46:47 UTC
When building the application, I get the following warning:

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "cli_cppuhelper, Version=1.0.23.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e, processorArchitecture=AMD64", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.	

How to react to it?
Comment 3 Sorin Boris 2022-01-27 11:30:09 UTC
Understood. In the project properties in Visual Studio, you need to set Platform Target: x64
Comment 4 Xisco Faulí 2022-05-03 10:54:43 UTC
Setting to RESOLVED WORKSFORME since the commit fixing this issue hasn't been
identified.