In C, why don’t local variable initialisation instructions contribute to the executable size as much as global variables do?
Reading C for the first time and the text I am reading says,
Access violation reading location, PUNICODE_STRING, and _snwprintf_s
I wrote a Password Filter DLL to intercept password changes and pass them off to PowerShell so it can then update our other systems… which doesn’t work. But because it’s a DLL, I can’t exactly step through the code to see why it doesn’t work. So I decided to write a little app that sets up some variables, then called a copy of the same PasswordChangeNotify() function that I was using in the DLL.
Can `ReadOnlyMemory` be used as a universal replacement for `string`?
The way I understand things, obtaining a ReadOnlyMemory<char>
from a string
is very cheap, whereas obtaining a string
from a ReadOnlyMemory<char>
tends to involve allocation and copying, so it is not very cheap.