I am already working well with a .net card. There were some situations around this time, I used P / Invoke to perform actions that I could not do with managed code.
However, I did not know exactly what his real flaws were. This was also the reason I tried not to use it as much as possible.
If I google, then I find various messages about this, some paint a disastrous picture and recommend never to use it. What are the main flaws and problems of an application that uses one or more P / Invoke calls and when they are applied. (and not in terms of performance, more in that "it is impossible to execute from a network resource")?
source share