From 9fcb1aee04f8920dd32e4855f4c9bf7d64606595 Mon Sep 17 00:00:00 2001 From: DCFApixels <99481254+DCFApixels@users.noreply.github.com> Date: Sat, 17 May 2025 16:22:05 +0800 Subject: [PATCH] fix --- src/Internal/MemoryAllocator.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Internal/MemoryAllocator.cs b/src/Internal/MemoryAllocator.cs index 621c300..c0a843e 100644 --- a/src/Internal/MemoryAllocator.cs +++ b/src/Internal/MemoryAllocator.cs @@ -73,7 +73,7 @@ namespace DCFApixels.DragonECS.Core.Internal newHandledPtr->ID = id; newHandledPtr->ByteLength = byteLength; - _debugInfos[id].stackTrace = new StackTrace(); + _debugInfos[id].stackTrace = new System.Diagnostics.StackTrace(); _debugInfos[id].type = type; _debugInfos[id].handler = handler; #endif @@ -131,7 +131,7 @@ namespace DCFApixels.DragonECS.Core.Internal Meta* newHandledPtr = (Meta*)Marshal.ReAllocHGlobal((IntPtr)target.GetHandledPtr(), (IntPtr)newByteLength + sizeof(Meta)); Handler handler = Handler.FromHandledPtr(newHandledPtr); #if DEBUG - _debugInfos[newHandledPtr->ID].stackTrace = new StackTrace(); + _debugInfos[newHandledPtr->ID].stackTrace = new System.Diagnostics.StackTrace(); _debugInfos[newHandledPtr->ID].type = newType; _debugInfos[newHandledPtr->ID].handler = handler; #endif @@ -188,12 +188,12 @@ namespace DCFApixels.DragonECS.Core.Internal } #if DEBUG - [DebuggerDisplay("{handler.DebuggerDisplay()}")] + [System.Diagnostics.DebuggerDisplay("{handler.DebuggerDisplay()}")] #endif internal struct HandlerDebugInfo { #if DEBUG - public StackTrace stackTrace; + public System.Diagnostics.StackTrace stackTrace; public Type type; public Handler handler; #endif @@ -206,8 +206,8 @@ namespace DCFApixels.DragonECS.Core.Internal #endregion #if DEBUG - [DebuggerDisplay("{DebuggerDisplay()}")] - [DebuggerTypeProxy(typeof(DebuggerProxy))] + [System.Diagnostics.DebuggerDisplay("{DebuggerDisplay()}")] + [System.Diagnostics.DebuggerTypeProxy(typeof(DebuggerProxy))] #endif public readonly struct Handler {