Geeks With Blogs
It should just work... August 2011 Entries
ZeroMQ blocking on the constructor for Context on Windows Server 2008
We had an issue once we deployed our .Net 4.0 C# ZeroMQ solution to a Windows Server 2008 instance where the application would freeze up or block, seemingly on the initialization of our ZeroMQ library. Upon furthter investigation it was discovered that the application was blocking on the construction of each new zmq Context object. Having exhausted all other alternatives, an internet search revealed a stack overflow post : http://stackoverflow.com/qu... ......

Posted On Friday, August 19, 2011 2:21 PM

How to copy from char* to managed Byte array.
Scratched my head with this one a bit, but here is the solution: Obtain the IntPtr equivalent of the char*: const unsigned char* data; System::IntPtr dataptr((int)data); Then use the System::Runtime::InteropSer... class to copy the data into the cli::array<Byte>: array<Byte>^ byteArray = gcnew array<Byte>(dataLength); Marshal::Copy(dataptr, byteArray, 0, dataLength); ......

Posted On Thursday, August 18, 2011 5:36 PM

Copyright © cdpcodingblog | Powered by: GeeksWithBlogs.net