Skip to content

Ошибка подключения внешней компоненты в x32 версии OneScript #1513

Closed

Description

@Bayselonarrend

Опишите ошибку
Попытка подключения Native API компоненты на 32 битной версии OS приводит к исключению

Попытка

    А = ПодключитьВнешнююКомпоненту("AddIn.zip"
    , "AddIn"
    , ТипВнешнейКомпоненты.Native);


Исключение 
    
    Сообщить(ПодробноеПРедставлениеОшибки(ИнформацияОбОшибке()));

КонецПопытки;
{Модуль R:\FastTest\test.os / Ошибка в строке: 4 / Внешнее исключение (System.TypeInitializationException): The type initializer for 'OneScript.StandardLibrary.NativeApi.NativeApiProxy' threw an exception.}    
    А = ПодключитьВнешнююКомпоненту("AddIn.zip"
по причине:
The type initializer for 'OneScript.StandardLibrary.NativeApi.NativeApiProxy' threw an exception.
по причине:
Value cannot be null. (Parameter 'ptr')

Окружение

  • ОС: Windows 11
  • Версия: 1.9.2, 2.0.0.7-rc5+593a5065903bb88d51afd2b2a96db325f73b1644

Компонента из примера:

AddIn.zip

Activity

  1. EvilBeaver commented on Mar 18, 2025

    @EvilBeaver
    Owner

    @Bayselonarrend по-моему, это исправлено, не?

  2. added this to the Version 2.0.0 milestone on Mar 18, 2025
  3. Bayselonarrend commented on Mar 18, 2025

    @Bayselonarrend
    ContributorAuthor

    @Bayselonarrend по-моему, это исправлено, не?

    Да, не воспроизвелось

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions