Skip to content

Implement SafeComponentHandle and earlier managed cleanup - #552

Merged
ikkentim merged 4 commits into
mainfrom
feature/SafeComponentHandle
May 12, 2026
Merged

ikkentim merged 4 commits into
mainfrom
feature/SafeComponentHandle

Conversation

@ikkentim

Copy link
Copy Markdown
Owner
  • Implement a mechanism where onFree(IComponent) can be forwarded to the managed code, where pointers to the component may be unset
  • Cleanup ECS in component.free instead of extension.freeExtension. Our EcsHost extension was attached to ICore, which gets freed when ICore gets freed

@github-actions

github-actions Bot commented May 12, 2026

Copy link
Copy Markdown

.NET libraries test results

518 tests   518 ✅  16s ⏱️
  4 suites    0 💤
  4 files      0 ❌

Results for commit c28d16d.

♻️ This comment has been updated with latest results.

}
}

void SampSharpComponent::provideConfiguration(ILogger& logger, IEarlyConfig& config, const bool defaults)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo (most) formatting changes in all cpp/hpp files

@ikkentim
ikkentim merged commit f119fee into main May 12, 2026
4 checks passed
@ikkentim
ikkentim deleted the feature/SafeComponentHandle branch May 12, 2026 21:57
@ikkentim ikkentim mentioned this pull request May 12, 2026
ikkentim added a commit that referenced this pull request May 14, 2026
* origin/main:
  Disable IDE0290 configuration and revert public primary constructors (#560)
  Clean up legacy editorconfig Sonar overrides and eliminate TODO markers in `src/legacy` (#562)
  Add implicit usings to SampSharp.Sdk (#558)
  Add `dotnet new` template package for open.mp ECS gamemodes (#556)
  Add clang-format configuration and apply to sampsharp-component C++ source files (#554)
  Implement SafeComponentHandle and earlier managed cleanup (#552)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant