Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Diagnostic code · ARA0506

Process or environment access

The module profile forbids accessing or changing process-wide state. The process belongs to the editor or player. The edit is rejected; the last good code keeps running.

Common causes

  • Using console or debug output, environment APIs, GC, process APIs or other disallowed process state.
  • Attempting Environment.Exit or Environment.FailFast, which remain forbidden in editor modules.

Fixes

  • Apply the output code fix to use Log.Info or Log.Error; use the supplied Tick for simulation time.

  • Apply the offered fixes to replace Environment.NewLine with "\n" or remove an explicit GC.Collect() statement.

  • Remove process termination and configuration changes from module code; let the host manage its own lifetime.

  • Code: ARA0506

  • Constant: cs::API_PROCESS

  • Reported by: Ara.Analyzers