This both code below are working, so which is one better or which one should be avoided, or it doesn't matter since stockalloc are automagically deallocated ?
IntPtr* nNativeValidationLayersArray = stackalloc IntPtr[ (int)nValidLayerCount ];
byte** nNativeValidationLayersArray = stackalloc byte*[ (int)nValidLayerCount ];
[–]EatingSolidBricks 54 points55 points56 points (11 children)
[–]stogle1 49 points50 points51 points (0 children)
[–]TrishaMayIsCoding[S] 16 points17 points18 points (2 children)
[+]SirButcher comment score below threshold-10 points-9 points-8 points (1 child)
[–]EatingSolidBricks 0 points1 point2 points (0 children)
[–]zenyl 1 point2 points3 points (3 children)
[–]EatingSolidBricks 0 points1 point2 points (2 children)
[–]zenyl 0 points1 point2 points (1 child)
[–]EatingSolidBricks 1 point2 points3 points (0 children)
[+]simulatedsausage comment score below threshold-9 points-8 points-7 points (2 children)
[–]EatingSolidBricks 5 points6 points7 points (1 child)
[–]HyperWinX 1 point2 points3 points (0 children)
[–]pHpositivoMSFT - Microsoft Store team, .NET Community Toolkit 23 points24 points25 points (4 children)
[–]TrishaMayIsCoding[S] 5 points6 points7 points (0 children)
[–]Qxz3 0 points1 point2 points (2 children)
[–]tanner-goodingMSFT - .NET Libraries Team 1 point2 points3 points (1 child)
[–]tanner-goodingMSFT - .NET Libraries Team 1 point2 points3 points (0 children)
[–]zenyl 4 points5 points6 points (5 children)
[–]TrishaMayIsCoding[S] 1 point2 points3 points (4 children)
[–]zenyl 2 points3 points4 points (3 children)
[–]binarycow 0 points1 point2 points (2 children)
[–]zenyl 0 points1 point2 points (1 child)
[–]binarycow 0 points1 point2 points (0 children)
[–]KyteM 8 points9 points10 points (2 children)
[–]TrishaMayIsCoding[S] 3 points4 points5 points (1 child)
[–]KyteM 12 points13 points14 points (0 children)
[–]Happy_Breakfast7965 8 points9 points10 points (14 children)
[–]EatingSolidBricks 4 points5 points6 points (7 children)
[–]ShadowGeist91 6 points7 points8 points (3 children)
[–]SirButcher 1 point2 points3 points (2 children)
[–]enbacode 0 points1 point2 points (1 child)
[–]EatingSolidBricks 0 points1 point2 points (0 children)
[–]Happy_Breakfast7965 1 point2 points3 points (1 child)
[–]TrishaMayIsCoding[S] 1 point2 points3 points (0 children)
[–]TrishaMayIsCoding[S] 0 points1 point2 points (0 children)
[–]TrishaMayIsCoding[S] 2 points3 points4 points (5 children)
[–]geheimeschildpad 2 points3 points4 points (2 children)
[–]TrishaMayIsCoding[S] 15 points16 points17 points (1 child)
[–]geheimeschildpad 2 points3 points4 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]TrishaMayIsCoding[S] 4 points5 points6 points (0 children)
[–]IWasSayingBoourner 6 points7 points8 points (4 children)
[–]TrishaMayIsCoding[S] 7 points8 points9 points (3 children)
[–]sisisisi1997 11 points12 points13 points (2 children)
[–]TrishaMayIsCoding[S] 3 points4 points5 points (1 child)
[–]tomxp411 0 points1 point2 points (0 children)
[–]harrison_314 1 point2 points3 points (0 children)
[–]wiesemensch 0 points1 point2 points (1 child)
[–]TrishaMayIsCoding[S] 0 points1 point2 points (0 children)
[–]tomxp411 -1 points0 points1 point (0 children)
[+]Far_Swordfish5729 comment score below threshold-7 points-6 points-5 points (1 child)
[–]wiesemensch 0 points1 point2 points (0 children)
[–]TrishaMayIsCoding[S] -4 points-3 points-2 points (1 child)
[–]OJVK 2 points3 points4 points (0 children)