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 general > november 2005 > threads for wednesday november 16

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

c# enum question
Posted by ps at 11/16/2005 9:41:01 PM
Hello , I have declared following enum color type. I am not sure why the Console.Writeline(color.white.ToString()) prints different outputs. public enum color {red, blue, white=red|blue}; public static void Main() { color c = color.red & color.white; Console.WriteLine((c).ToStr...more >>


System.Reflection questions...
Posted by Alex at 11/16/2005 8:00:34 PM
Hi all... Is there any way I can use reflection to get the complete "path" to the current object? So e.g. <objectA> creates <objectB> which creates <objectC>. Then <objectB> executes a method provided by <objectC> which returns something like "objectA.objectB.objectC". Similarly, if ...more >>

Compile and create exe
Posted by Seok Bee at 11/16/2005 6:58:02 PM
Dear Experts, I've completed my console application and now wants to compile the application and an executable file to be run at another location. However, I've tried compiling that program in the command prompt with the following command : vbc Module1.vb /out:OEAutomation.exe /t:exe ...more >>

Help with Visual Studio - use of CRLF instead of just LF
Posted by intrader at 11/16/2005 6:42:20 PM
I have found no way to control how VS determine the end of lines characters in the source. I have noticed that javascript files contain CRLF, when just LF would suffice. The extra baggage takes time to transmitt to the client. ...more >>

Windows Service
Posted by Jonathan at 11/16/2005 4:36:06 PM
I've created a Windows Service in VB.NET which globally holds an array of threads. Every second, it loops through the threads, and if any of the threads are set to Nothing, and I have an available job in a DataTable it spawns a new thread. When a thread is complete, it raises an event that ...more >>

Start new thread and User Interface
Posted by Glenn at 11/16/2005 3:23:49 PM
I have a dialog box with a progress bar and i want to fire off process all one after the other. Each process may take a while so i want the User Interface to be movable whilst this is going without it freezing, Each process must complete before the other starts so i can just fire them all off...more >>

Custom Membership Provider: aspnet_CheckSchemaVersion?
Posted by WB at 11/16/2005 2:13:05 PM
Hi, I am revamping my company's website with ASP.Net 2.0. In order to use our existing user data in our SQL 2000, I have written a custom membership provider. However, when I try to logon with the Login control, it gives an error: System.Data.SqlClient.SqlException: Could not find stored ...more >>

OT: VS 2005 option question
Posted by Marina at 11/16/2005 1:36:23 PM
When VS.NET opens up a new document, it creates the new tab as the first tab. Not the last like VS 2003 did. As I'm opening documents, everything ends up in reverse from what I actually wanted it to be. If I open up documents 1,2,3, then that is the order I want them in. I don't want them t...more >>



Determine if Preview or Print() in OnPagePrint Event?
Posted by Craig Scheets at 11/16/2005 11:14:40 AM
I have writting an application that prints fine, but I have to do a TranslateTransform on the graphics in the OnPagePrint event to get place output at exact X,Y (the application prints checks and must be placed accurately). However, when I do a print preview if I do the same translateTransf...more >>

spamming the spamers...
Posted by Rob R. Ainscough at 11/16/2005 10:29:12 AM
I'm working on some software similar to the "make love not spam" screen saver that was launched by Lycos back in Dec '04 that successfully crippled spam servers where it counts -- bandwidth. My question, I'm trying to put together a fairly comprehensive database of known spam servers as a s...more >>

Windows 2003, IIS6 and Com+
Posted by Vik at 11/16/2005 9:31:58 AM
I am getting this error when trying to connect to com+ which saves data to database. Please help. The description for Event ID ( 4001 ) in Source ( Application ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from...more >>

Permitting C access to managed .Net assemblies
Posted by Ken Allen at 11/16/2005 8:49:33 AM
I am in the process of upgrading an existing product code base from C++ to C#, converting the use of a named pipe for the client/server communication to using .Net remoting via C# classes. Things are going fairly well, and most of the plans are falling into place. One wrinkle that was intro...more >>

Cannot add assembly to the GAC althogh I'm administrator
Posted by okaminer at 11/16/2005 7:01:17 AM
Hi have restarted my server and now I can't do nothing with the GAC. Also many of my application which uses assemblies in the GAC have crashed, saying the assemblies cannot be found. when I try to add assembly to the GAC it tell me that I do not have enough rights in order to add assemblies....more >>

Service Problem - service on local computer started and then stopp
Posted by Grigs at 11/16/2005 6:35:16 AM
Hello, I have created Windows Services before using C# and have had no problems. Not to mention, the one I currently am having problems with worked great for the first 3 days. Then I added some more SQL code and went to test it again and now whenever I start the Service up I get the follo...more >>

Need Fast Track Example
Posted by Bill Sturdevant at 11/16/2005 5:57:43 AM
I have a SQL Server 2000 database. I need to create a web front end that will: 1. Allow a person to log in using an ID and password stored in the database 2. See a list of topics 3. Select a topic from the list and take a survey 4. Possibly enter comments at the end of each section of the sur...more >>

How to find via reflection if method is overriden
Posted by kavboy NO[at]SPAM nm.ru at 11/16/2005 4:34:25 AM
I have a base class A and two inhereted classes B and C. public class A{ protected virtual bool Method1(){ return true; } public bool IsMethod1Overriden{ get { ??????? } } } public class B : A { protected override bool ...more >>

Read-Only Constructor
Posted by Sathyaish at 11/16/2005 3:24:46 AM
So, is there something called a Read-Only constructor in the .NET framework? Someone mentioned the term to me and I've been trying to make sense out of it. I didn't get a link on the Web even. ...more >>

Debugging problems with multiple threads in VS 2005
Posted by rwaddell NO[at]SPAM gmail.com at 11/16/2005 3:18:09 AM
I'm using Visual Studio 2005 Pro final, and I've noticed some bizarre behaviour when I'm debugging programs with multiple threads. Specifically, if I set a breakpoint in one of my non-UI threads, and try to step-over a line of code, my thread aborts and pretty much breaks my application. I trie...more >>

Multiple FileSystemWatchers, monitoring the same path
Posted by Fredrik Johansson at 11/16/2005 3:10:08 AM
Hello, I have built a .NET remoting solution (SingleCall) that writes a file to disk, then waits for a second file in a specified folder (using the FileSystemWatcher.WaitForChanged method). When the component is called by two peers at the same time, two FileSystemWatchers are created (one f...more >>

SMTP messages staying in queue folder
Posted by Al Wilkerson at 11/16/2005 12:03:58 AM
Does anyone know why smtp messages stay in the queue folder? Every time I send a message using my local smtp server I get no error, but I never receive the message, and the messages just stay in the inetpub\mailroot\queue folder This happens with sending message through my ASP.NET program ...more >>

Problem in upgrading from .Net 2.0 beta to 2.0 professinal
Posted by Beenish Sahar Khan at 11/16/2005 12:00:00 AM
Hello, I am developing an application in C#, which was previously in .Net 2005 Beta, then it was working perfectly fine, but from the time I have upgraded it to .Net 2005 Professional, its continously giving me error on the following line, transaction = Connection.BeginTransaction(); Syst...more >>


DevelopmentNow Blog