Using unavailable in Unix objects (UsingObjectNotAvailableUnix)¶
Type | Scope | Severity | Activated by default |
Minutes to fix |
Tags |
---|---|---|---|---|---|
Error |
BSL |
Critical |
Yes |
30 |
standard lockinos |
Description¶
On Linux
OS COM
, OLE
, ActiveDocument
are not available. For integration use other options, for example XML file exchange or web-services. For COM AddIns, it is recommended to change them to NativeAPI
AddIn.
Checked the use of unavailable in:
COMObject
Mail
Checking the value of the condition is not satisfied.
Addition¶
When found unavailable in Linux objects, the method is checked to include condition flow for platform type:
Linux_x86
Windows
MacOs
Examples¶
Component = New COMObject("System.Text.UTF8Encoding");
or
Mail = New Mail;
StartApplication()
.
SystemInformation = New SystemInformation();
If Not SystemInformation.PlatformType = PlatformType.Linux_x86 OR PlatformType.Linux_x86_64 Then
Mail = New Mail;
EndIf;
Sources¶
- Features of the development of cross-platform applied solutions (RU)
- Features of the client application running Linux (RU)
Snippets¶
Diagnostic ignorance in code¶
// BSLLS:UsingObjectNotAvailableUnix-off
// BSLLS:UsingObjectNotAvailableUnix-on
Parameter for config¶
"UsingObjectNotAvailableUnix": false