Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > dotnet clr > may 2007

Buffer.BlockCopy and very long arrays (more than Int32.MaxValue el
Posted by Luca Martinetti - Phatsoft at 5/31/2007 5:58:02 AM
Hi, Anybody has ever needed to copy a very long array (more than Int32.MaxValue elements) on x64? I found this solution private static void LongBufferBlockCopy<T>(T[] src, long srcOffset, T[] dst, long dstOffset, long count) { if (srcOffset < Int32.MaxValue && d...more >>

.NET -> COM+ ->.NET Help!
Posted by Vera at 5/30/2007 1:27:00 PM
We have a remote server application called from a client application. The server application is a .NET application but built with COM supportability and included as a COM+ service on one system. The client application, which is also written in .NET calls the COM+ application remotely(from ...more >>

[Boost.Program_Options] Assertion failed on a Windows Form Application
Posted by jean.daniel.michaud NO[at]SPAM gmail.com at 5/29/2007 5:14:56 AM
Posted an issue I got on Boost user mailing list a few days ago and Boost.Program_Options maintainer suggested to ask a VC++/CLR expert: Hi, When I create a "Windows Forms Application" under Visual C++ Express and add these lines to the main .cpp file: #include <boost/program_option...more >>

Problem in module mscorwks
Posted by MoriCristian at 5/27/2007 1:00:00 PM
Hi all, I have a big problem. I have a console applciation that has a thread inside. No Console.xx is done inside the thread. Sometime (once every 4/6 hours) tha appllication crash without even throwing any .net exception and I cannot debug it even if I run it in debug mode in VS2005. In...more >>

Brackets in C#
Posted by Amir Shitrit at 5/27/2007 3:43:02 AM
Is it true that the IL language doesn't include the concept of brackets ("{", "}") and they have merely semantic meaning? If so, how does the C# compiler handle them? (Perhaps it uses the "}" sign to inject code that unreferences all object instances defined within the scope of the braces?). ...more >>

thread differences from button_Click and tmr_Elapsed
Posted by Victor Reboucas at 5/22/2007 8:44:01 PM
Hi, I'm experiencing some kind of thread behavior problem in a WinForms app in Vb.Net 2.0. Actually I'm doing some huge interop using DirectShow to interact with my miniDV camera. The problem is that if I put the code to read the camera's timecode inside a button_click routine it works j...more >>

Internal Delegate Implementation
Posted by Amir Shitrit at 5/21/2007 11:12:01 PM
Is it true that delegates are internally invoked using reflection? I know that every delegate class has the Method property of type MethodInfo, but does the delegate actually use it to invome the method? Thanks....more >>

Implementing Method @ Runtime
Posted by Vin=EDcius_Strasser at 5/21/2007 5:38:16 AM
Hi, I have a class that should create some methods at runtime. This method only must call another method, already implemented, passing current method info and parameters. I would not like to create an assembly/class at runtime emitting il. I've found something interesting in CompilerServi...more >>



Implement code
Posted by WELCOME ### at 5/21/2007 12:00:00 AM
Hi every body. The code written down (by C++/ CLR console). How can I compile it by Windows Form. Can any persn wants to help?? Thanks Beginner -------------------------------------------------------------------------= --------- #include "stdafx.h" using namespace System; ...more >>

Can't load CLR on TabletPC with VSTO2003 apps
Posted by Matt at 5/18/2007 12:15:02 PM
We have a VSTO Word Template application that was built using VS2003, and it runs fine on both desktops and laptops. However, when we try to run it on Tablet PCs (HP model HSTNN-C02C), it gives the following error: "The common language runtime could not be loaded by <path to .dll>... Contac...more >>

Prematurely garbage collection
Posted by Amir Shitrit at 5/16/2007 11:02:00 PM
Hi. In what cases is it possible that the GC will collect an object while a member of that object is still running? Could it happen when I create an object without referencing it and then invoking one of its members? For example: (new Instance()).Invoke(); // there's no reference to the Ins...more >>

DLL for XML Data Transfer
Posted by acx NO[at]SPAM centrum.cz at 5/16/2007 11:20:49 AM
Dear Group, I have got some XML code which I need to send from my SQL Server database to some remote application server via POST method. The application server will return XML code as well and this returned XML will be processed on SQL Server afterwards. Because of the fact that it all can'...more >>

How to get ExceptionCode from an Exception object?
Posted by dotNeter at 5/15/2007 10:24:13 PM
Here is my case. In unmamaged code, I wrote code as, RaiseException(MYEXCETIONTYPE, ....); Thereafter the exception finally got caught by managed code, and was wired up to a .NET Exception object, you know. managed code, try { NativeCall(); } catch (Exception e) { e.ToSt...more >>

how to deal with valueless callstack when an exception finally propagated from unmanaged code to managed code?
Posted by dotNeter at 5/14/2007 6:52:42 PM
Suppose that an exception occured at unmamaged code, and unfortunately didn't get caught where it should be caught, finally it's caught by the outermost try/catch block located at managed code. At that moment, we usually only got poor callstack for managed code, however, it's valueless for debug...more >>

Security when Hosting CLR
Posted by Jonathan Chambers at 5/10/2007 6:49:02 AM
I think I asked a similar question previously, but I can no longer find the post. My company is trying to use the .Net framework with some unhelpful customers. Some refuse to install the .Net framework, and others lock down security to the point where there is no point in having it installed. ...more >>

MAGIC NUMBER
Posted by WELCOME ### at 5/10/2007 12:00:00 AM
Hello every one. The following is code built by C++ \ CLI . It's built well : -------------------------------------------------- #include "stdafx.h" #include <cstdlib> using namespace System; int main(array<System::String ^> ^args) { int magic; int guess; Console::Write(L"Ent...more >>

OutOfMemoryException exception
Posted by Sjors at 5/9/2007 12:15:01 AM
Hi, I'm debugging some code running on Windows 2003 R2, .Net 1.1 as windows service. The code parses medium sized (ca 1,5MB) csv files. Recently this code starts throwing OOM exceptions running a loop that, for as far as I can determine, uses short living large objects. The file is read int...more >>

serialization
Posted by AVL at 5/4/2007 7:02:03 AM
Hi, I'm new serialization concepts....I need some hwlp.. I've a class defined as follows class CustomSerialization1 { private string s; public string Test { get { return s; } set { s = value; } } private int i; ...more >>

.Net Application on Any platform.
Posted by Sugandh Jain at 5/3/2007 12:00:00 AM
Hi, Reading about what CLR does, that it JIT compiles the IL code and generates native machine code instructions for the CPU to understand and act on, is it right to infer that a Application developed using the dotnet framework will run correctly on other Operating system also,by Other oper...more >>

win32 error
Posted by AVL at 5/2/2007 7:46:13 AM
i've created a console application whcih reads different file formats and scans for some for words.... the application builds fine and executes finely..but sometimes, the exe automatically becomes 0kb and gives me this error <Application.exe> is not a valid win32 application.. can anyon...more >>

List<T> thread safety
Posted by Torsten Seemann at 5/2/2007 12:08:01 AM
Hi there According to the framework documentation, a generic List is thread-safe for multiple readers, as long as it is not being modified: "A List can support multiple readers concurrently, as long as the collection is not modified. Enumerating through a collection is intrinsically not a ...more >>


DevelopmentNow Blog