Does anyone know of any reliable (and, hopefully, extensive) books/websites that discuss GDI+ performance (beyond the obvious)?
For example, I recently came across this excellent experiment. I also recently noticed that Graphics.FillPath() is way, way faster than Graphics.DrawPath(). I'd love to know what other vital bits of information...
I want a method to only work on types which implement the /, +, -, * operators. Is there any "clean" way to do this?
...
I'm using MSBUILD macros in my .csproj files for AfterBuild events mainly just to copy files. I'm doing this by example, so the only ones I know of are the ones I've seen in use: SolutionDir, ProjectDir, OutputPath, and Configuration. Is there a list or good info page online anywhere so I can read up on what's available, what point in ...
Hi all,
We currently have a rapidly growing C# codebase. Currently we have about 10 projects, split up in the usual categories, common/util stuff, network layer, database, ui components/controls etc.
We run into the occasional circular dependency where project x depends on something in y and vice-versa. We are looking at maybe collap...
I'm investigating a possible memory leak which is causing an "Error creating window handle" Win32Exception in my .NET 2.0 WinForms app. This is related to number of Handles and number of USER objects (most likely) so I'm trying to log these metrics the next time the exception is thrown.
HandleCount is easy to find: Process.HandleCou...
I have one form called:
MyControlContainerForm ccf
and a main form called:
SolidForm sf
and I am adding all the controls inside an instance of new MyControlContainerForm () to SolidForm, using:
sf.Controls.Add ( Control )
but when I remove them using:
sf.Controls.Remove ( Control )
they are gone from MyControlContainerForm in...
Hi,
I'm building a .NET 3.5 app that uses a System.Windows.Forms.WebBrowser component to render a timeline, courtesy of the awesome JavaScript timeline code at http://simile-widgets.org. In my C# code, I create a string containing the HTML and JSON to render, and assign it to the DocumentText property of the WebBrowser control.
The HTM...
Hi,
I am working on asp.net application
when i run using http:\\localhost:1322 i can see the site.
but if i give my ip address http:\\111.111.11.11:1322 , i get page not found. even in my desktop
Is there any change in setting to be done. because of this i cant send the url to other people in the team.
the ip address i am typing is ...
In our project we're using TransactionScope's to ensure our data access layer performs it's actions in a transaction. We're aiming to not require the MSDTC service to be enabled on our end-user's machines.
Trouble is, on half of our developers machines, we can run with MSDTC disabled. The other half must have it enabled or they get th...
I'm looking for reporting solution for .net, my company has used Crystal Reports XI (and its Server edition) and SQL Server Reporting Services for our previous projects. However we're going to develop a new product and we want a fast, easily deployed/managed assemblies,programmable report document object, and has runtime report designer....
I'm converting some C++ code to C# and it calls std::map::lower_bound(k) to find an entry in the map whose key is equal to or greater than k. However, I don't see any way to do the same thing with .NET's SortedDictionary. I suspect I could implement a workaround using SortedList, but unfortunately SortedList is too slow (O(n) for inserti...
After watching the latest hanselminutes on 9 video, I went to our dev environment and grabbed a dump of a few different services.
After opening the dump file I noticed that some were able to be debugged in Mixed mode and Native mode, and others in Native mode only. Being that every service is written in managed code, why wouldn't mixed ...
Is there a built in gray code datatype anywhere in the .NET framework? Or conversion utility between gray and binary? I could do it myself, but if the wheel has already been invented...
...
I was looking for a built-in attribute to specify that a type is immutable, and I found only
System.ComponentModel.ImmutableObjectAttribute.
Using Reflector, I checked where it was used, and it seems that the only public class that uses it is System.Drawing.Image... WTF? It could have been used on string, int or any of the primitive ty...
I'm working on a program that includes speech synthesis. A few weeks ago, I wrote the introductory
using (SpeechSynthesizer s = new SpeechSynthesizer())
{
s.SetOutputToWaveFile("file.wav");
s.Speak(textBox1.Text);
}
program. It worked just fine. I crossed off "research speech synthesis" from my task lis...
I am looking for specific examples of vibrant, acquirable (or acquired) tech concerns, especially startups, that chose to build on the Microsoft stack and either succeeded or appear likely to.
Writely is an obvious example, as is NewsGator, PageFlakes, and StackOverflow itself.
I don't mean this to be a language debate. I hope the que...
I have an ADO.NET data service exposed by a .NET app (not IIS) which is consumed by a .NET client app. Some calls to this data service return large amounts of data.
I'd like to compress the XML data on the wire to reduce payload and improve performance. Is this possible?
...
I'm relatively new to .NET and have being using Linq2Sql for a almost a year, but it lacks some of the features I'm looking for now.
I'm going to start a new project in which I want to use an ORM with the following characteristics:
It has to be very productive, I don't want to be dealing with the access layer to save or retrieve obje...
I thought the GC would call Dispose eventually if your program did not but that you should call Dispose() in your program just to make the cleanup deterministic.
However, from my little test program, I don't see Dispose getting called at all....
public class Test : IDisposable
{
static void Main(string[] args)
{
Test s ...
I have installed Oracle 11g r1 64 bit on Windows 7. I am able to connect to it using Sql Developer and a command line tool written in .Net that is 32 bit. I am using Visual Studio to create an ASP.Net application. The solution has 4 projects all of which are compiling for "Any CPU" I installed the 64 bit version of Oracle client and...