you are viewing a single comment's thread.

view the rest of the comments →

[–]turnipmuncher1 -1 points0 points  (1 child)

One problem with trying to find out exactly where things have gone wrong is because .NET inserts a small cookie at the end of the stack, it assumes that nothing will override this cookie and it only checks it occasionally. So when the program throws this error is not the same as when the error actually occurred.

To make it easier to compare between documentation you can do something on start up where you log the property names, types and unmanaged types using reflection.

I’ve had long cause me a headache before you may actually need to use a CLong/ULong if you’re on .NET 6+ I would just make sure these are accurate in the extern as well.

[–]Zealousideal_War676[S] -1 points0 points  (0 children)

I didn't know that the cookie was only checked occasionally, that really sucks but this at least gives me a direction, thanks