Rob Kennedy
  • Member for 11 years
  • Last seen more than 2 years ago
Is this the right way to thread-protect an object?
3 votes

Your first paragraph says "this is the most commonly used method" without saying what "this" is. When writing a FAQ answer, especially one about something as thorny as multithreading, it's important ...

View answer
Just compare if is conversion correct
Accepted answer
3 votes

First problem: MEMBLOCK::next in C is a pointer to a single MEMBLOCK, but in your Delphi code, it's an array of pointers. Declare it as a PMemBlock instead. The C definition of WRITABLE combines ...

View answer
Is Marshalling converters/reverters via polymorphism realistic?
Accepted answer
3 votes

Your RegisterConverters functions are bad, and part of the reason is that they're not sure what they're registering anything for. The class methods actually receive two classes as arguments. The first ...

View answer
Translating array pointer access from C++ to Delphi
1 votes

Everything there looks right (except for the = on the last line, which should be :=). It's about as close to a literal translation as you can get. Converting the Delphi code to use dynamic arrays ...

View answer