OK, either my original post was too long for anyone to read or I'm the only person having this problem. Let me simplify things. Has anyone noticed flaky behavior from .NET when creating or using a custom IComparer? I'll probably submit this to Microsoft support, but that will take forever... In the meantime, has anyone run across this sort of problem?
Most sort algorithms need stable comparison functions. Your function seems to be returning random results when the objects are different, so the .NET framework gets lost.
Suppose you have created a function where A > B > C > D. Your IComparable should be stable and NEVER return B > A > D > C.
Comparison is, too, a transitive function. So, if A > B and B > C, you can safelly assume that A > C. Your function does not guarantees that.
I've dome some research for an Open Source DataGrid component for .NET but I couldn't find anything worth working with. What do you think of starting up a new project for a suite of Data-aware components that could be comparable to commercial ones?
Is there anybody interested on talking about that?
Anybody know if the functionality of the discretionary access control lists is in the .NET managed framework anywhere --- i.e. can I programatically add or remove user permissions for a given shared printer without getting down and dirty with the API?
I've heard that some of these features can be found in the System.Management namespace. I have personally found it easier to just wrap the pertinent SDK calls using PInvoke. I seem to recall reading an article or two related to WMI and PInvoke/DACL stuff on this website. Try doing a search.
I have created a Windows Form control and also an application that uses it.
When I reference the control, if I don't choose "copy local = true", the it throws a System.IO.FileNotFoundException.
What may be the reason?
Yes, you are right...
In fact, the correct place for this assembly would be the GAC (Global Assembly Cache). However, I don't know how to tell my setup program to place the assembly into the GAC. (I am creating a Deployment Project)
Does anyone have any source examples that can read the metadata from a PE file? I have Serge Lidin's book _Inside Microsoft .NET Assembler_, but there seems to be a few errors in it, and some of the descriptions are a bit confusing.
I'm running on Visual Studio.NET 2003. Is there a quick way to implement an interface via a keystroke or menu option? Some of the interfaces in .NET have many member that need to be implementented, so what I'm looking for is some sort of keystroke or menu option that will fill in empty functions for all the members that need to be implemented.
Thanks in advance.
Kyosa Jamie Nordmeyer - Cho Dan
Portland, Oregon, USA
Now that this Dll needs to access and print from IE, I had to package as CAB file using VS.NET Setup and Deployment Project (CAB Project). Instead of DLL, I gave PrintCAb.cab. But now it is saying 'Object does'nt support this property/method'
How to refer the methods in the DLL if I give this CAB now?
When you declare a variable it gets created in RAM. If your available RAM is low then the system might swap some stuff to disk in order to free up some RAM, but even in that case your variable would stil reside in RAM. As far as I know you really don't have much control over that.