We sporadically get errors when we try to update a tool tip, like this
ToolTip.SetToolTip(myLabel, customDataStructure)
The error we get is a NullReferenceException: Object reference not set to an instance of an object
Does anyone know the cause of this?
Is a simple Try/Catch that eats the NullReferenceException a feasible option? ...
I'm looking over .NET ORM implementations, and I have a major burning question - are there any .NET ORM implemenations that don't require public properties for every field in the database? When I see examples like this, a little bell goes off in my head. I firmly believe in encapsulation, and being forced to open the kimono of my objects...
Why does constructor ORDER matter in VB.Net? I am building a .Net type library which is meant to wrap an underlying COM library completely so that the consumers of the API can pretend to use a nice .Net library with .Net collections and whatnot instead of a COM library.
Currently most of my classes are just 1 to 1 wrappers built using R...
I'm migrating a solution from visual studio 2005 to visual studio 2008. When I build the solution in 2005, I don't have any issues. However, after I use devenv.exe /Upgrade and then use msbuild on the solution, I get the following warnings:
CSC : warning CS1668: Invalid search path '\vc98\lib' specified in 'LIB environment variable' --...
I have a remoting server hosted under IIS that is throws the following exception when I try and talk to it SerializationException Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.
If I host the server in my own exe I don't have any issues.
Searching Google, the solution for most people is to se...
It is my understanding that .NET runtime will always look for referenced assemblies in GAC first and then in the local folders. Is there a setting in Web.Config that would invert this order?
...
Not that I would ever need to do this, but I want to understand how it works/doesnt work. I googled quite a bit for max length of an array and can't really find anything.
long[] hugeArray = new long[long.MaxValue];
//No Exceptions
Console.WriteLine("Init");
//Overflow Exception
Console.WriteLine(hugeArray.LongLength.ToString());
huge...
I am reading a message from my network connection which is serialized as a series of null-terminated strings (and other binary data)
I could read a char at a time using a BinaryReader, until I find a NULL.
Is there a more efficient way that is still simple? I'm expecting strings less than 64 chars in length, but they could be longer.
...
I am trying to run a task in the background checking a database for a number of records in a table, and if the number has changed since the last check, get those records, and do some work on them.
Using the following code, I'm getting a stack overflow after about two hours. The application is doing nothing during this time, just chec...
I can retrieve the text of a web page, let's say http://stackoverflow.com/questions with some real and made up links:
/questions
/tags
/questions?sort=votes
/questions?sort=active
randompage.aspx
../coolhomepage.aspx
Knowing my originating page was http://stackoverflow.com/questions is there a way in .Net to ...
I have a .net WinForms 2.0 application that has an image library of about 3000 images currently. Currently I'm using SQLite and storing all of the images as BLOBs with a unique Ids that makes things easy to retrieve.
The benefit to this is that the end users don't have to worry about the installer unzipping a massive blob of images on ...
Hello,
I've been doing a lot of implementation in Linq recently, and it suddenly occurred to me that as great as it is, I haven't really explored any other options.
Any thoughts?
...
I am trying to create a document approval work flow without sending any email.how could i know that the document is approved .
...
Maybe I am just over thinking this and need to write some more prototype code, but I wanted to get some of your thoughts:
Basically the application is going to be displaying up to several hundred custom visual objects in an X/Y "grid". The position and attributes of some of these objects may change between updates; the application will ...
I have a winform program that allows users to upload Shockwave Flash movies to a server. To get the videoDuration I create an instance of the "ShockwaveFlashObjects"-activeX, loads the movie, and then read the videoDuration until it change from "0.0" to anything else. I get that by reading the GetVariable("videoDuration").
Often it work...
I want to compare two (same-sized) images and determine how similar they are. I can't just compare the images pixel by pixel. Is there a good (preferably free) library for doing this?
...
Is it possible to "Flag an email" for followup using SMTPClient/MailMessage classes in .NET?
...
So, I’m working on a project for my company that involves allowing users the ability to create their own web pages. So for example the real content managers that know what they are doing make all the mains pages. Then a user can make their own page describing what they do and share items with others. Now the catch is that these users hav...
Hi there,
What is the best way of using Excel as the client for reporting services via WCF?
I would like to do something along the lines of Excel calling a WCF service which sends back the URL of where the report is on the reporting server and then displays it.
How would I go about this? What excel add-on, if any, do I need and how ca...
I've instantiated a class that is serializable, and I'm serializing it to a file, but it is always putting the following attributes in my root element:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
How can I stop that?
...