Introduction to unsafe C#: Calling native code and crashing in entirely new ways - Dennis Dietrich

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • This talk was recorded at NDC Porto in Porto, Portugal. #ndcporto #ndcconferences #csharp #developer #softwaredeveloper
    Attend the next NDC conference near you:
    ndcconferences...
    ndcporto.com/
    Subscribe to our TH-cam channel and learn every day:
    /‪@NDC‬
    Follow our Social Media!
    / ndcconferences
    / ndc_conferences
    / ndc_conferences
    Does your C# code have enough access violations? How about mutating supposedly immutable strings? No? What about buffer overflows or heap corruptions? Learn how to do all of this in pure C#, no C or C++ required! In this talk, we’ll be looking at pointers, unions, unmanaged memory, implementing IDisposable and finalizers, and how to call and be called by native code.

ความคิดเห็น • 8

  • @bootie
    @bootie 4 หลายเดือนก่อน +4

    I love how this shows up in my feed exactly as I need to learn how to call a C library in C#

  • @dcdietrich
    @dcdietrich 4 หลายเดือนก่อน +1

    Thanks to everyone who's commented so far. I went through several iterations of this talk and spent a lot of time updating and refining the content. It makes me very happy that all this effort paid off.

    • @djchrisi
      @djchrisi 4 หลายเดือนก่อน +1

      the idea to use sqlite as an example is just brilliant. it's not trivial jet intuitive.

  • @djchrisi
    @djchrisi 4 หลายเดือนก่อน +2

    I have been p/invoking for a long time. Lots of hardware manufactures just release a dll with c headers to interact with their hardware.
    This talk is a very good summary of the things I encountered. Some parts had to be cut short because of the time, but it is nice to see to much useful information in a 60 minutes time. Well done Dennis!

  • @sealsharp
    @sealsharp 5 หลายเดือนก่อน +2

    Zero comments? WTF is wrong with you people ? This is amazing!

  • @andreydeev4342
    @andreydeev4342 หลายเดือนก่อน +1

    Great talk, thanks!

  • @ciberman
    @ciberman 4 หลายเดือนก่อน +1

    Very good talk!

  • @eugene5096
    @eugene5096 4 หลายเดือนก่อน

    for 15 yrs of .net programming just faced a win32 pinvoke, but always love to see something unsafe like this )