An API Error occurs, if a language file is created via the API and a keyword gets added after the language file creation.

An API Error occurs, if a language file is created via the API and a keyword gets added after the language file creation.

Summary

If a keyword was added to a language file via the API after the language file creation, the following API error occurred:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Description

If a keyword was added to a language file via the API after the language file creation, the following API error occurred:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Solution

Redesign of the API function. Now it is possible, to add a keyword into a previously created language file, which has been created via the API.

Information

To avoid this API error, the project has to be unloaded from the workspace with the API and then loaded back again to the workspace.

Issue Number: 36002
Fixed on Date: 4.10.2017
Versions: 7.20 0 BUILD 41989 | 7.60 0 BUILD 41721
    • Related Articles

    • Language file (zenon 11) - Import-CSV via API opens Language-file-import - wizard/popup

      Description When importing a CSV file into the language file via API, the wizard for importing language files is activated. However, this wizard cannot be operated via the API. Solution: This behavior has been changed. When importing via API, the ...
    • Checklist: VBA code compilation error

      Time estimate:   15 minutes Please go through all the points in the following checklist. If necessary, confirm with IT Department any information you cannot verify before contacting your local COPA-DATA Representative. Error still occurs after ...
    • API Error when running Instance Wizard (GSK)

      Description If a Smart Object instance is created with the Instant Wizard (GFK) and removed again with this wizard, an API error occurs when another instance is created. The error message refers to: "Attempt to read or write protected memory." This ...
    • API - Create/Delete process gateway via API

      Summary Process Gateways can be created or deleted via API. Description The Interface IProject has been supplemented with the IProcessGatewayCollection property. This property can be used to access preconfigured Process Gateways, delete existing ...
    • The history of changes adds an incorrect line when a new language file is created the editor.

      Summary The history of changes logs an extra line recording that a previous existing language file has been changed when a new language file is created in the editor. Description The history of changes logs an extra line recording that a previous ...