Feeds:
Posts
Comments

Archive for July, 2007

gethostbyname and getaddrinfo block.  There is no way to stop them once they’ve started.  (BTW, getaddrinfo is recommended over gethostbyname as it’s IPv6 compatible.)  This little class will provide a neat way to get the info without blocking.  Classes extra::Thread and extra::auto_HANDLE are thread and and auto handle closing classes respectivly (is that english?).  When the [...]

Read Full Post »

The docs for the .NET Dictionary class lead you to believe that implementing IEquatable for a dictionary key is good enough to get the dictionary to use your Equals method.  However, one must also override GetHashCode.  Given the way a dictionary works, this is logical but not documented.  The interesting part, is that the Remove [...]

Read Full Post »

PMG Connect 2.0

PMG Connect 2.0 Alpha (Build 124) - Proxy settings changes (autodetect and script handling).

Read Full Post »

Managed, Unmanaged and COM

I’m wrapping a legacy lib for use in a .NET envirment. 
Usefull: An Overview of Managed/Unmanaged Code Interoperability
Firstly, I tried to wrap the lib api with COM and use that from my C# app.  With speed and efficiecency a priority, this was unacceptable.  It involves callbacks (legacy lib) or events (COM) – the big slowdown happened in [...]

Read Full Post »