Groups | Blog | Home


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
May 2008
June 2008
all groups > dotnet framework > september 2007 > threads for september 22 - 28, 2007

Filter by week: 1 2 3 4 5

Asynchronous calls to a web service - 100,000 a minute
Posted by kebalex NO[at]SPAM gmail.com at 9/28/2007 1:50:55 AM
Hi, I've got a requirement to poll a web service for data but it needs to be done very frequently. The web service call is straight forward, it just returns a simple table of data with no more than 50 rows. It's a third party web service so i have no control over it. The problem is each ...more >>


benefits of unmanaged array vs. managed array? (visual c++)
Posted by buu at 9/27/2007 7:13:11 PM
are there any benefits? performance? ...more >>

Console.ReadLine with default text?
Posted by Martin Hart at 9/27/2007 6:05:07 PM
Hi: Is there a way I can use Console.ReadLine with some default text so that if the user presses Enter the default text is returned? TIA, Martin....more >>

Find Name of Function
Posted by Mick Walker at 9/27/2007 2:40:48 PM
How can I find the name of the current function being executed. For example, lets say I have the following function void Blah(int? y){ int z; try { z = y; } catch(Exception ex){ throw ex } } Which will throw an exception if y is null(Nullable). I am writing a class to log an...more >>

FileSystemWatcher moved files
Posted by wpcmame at 9/27/2007 12:12:02 PM
How do I detect if a file is copied or moved into a folder? I have a watcher set on the folder with NotifyFilters.LastWrite and a delegate on the Changed event. It works if I save a file in the folder but not if I copy, move or paste it there. ...more >>

Best way to design multithreading application
Posted by Dave at 9/27/2007 10:59:44 AM
Ok, I appreciate any help you can give me. I am somewhat new to threading, only understanding it conceptually, and I use the Threading namespace for the sleep() command. So, any suggestions with code would also be beneficial. Basically, I need help designing how my threads should interact. Cu...more >>

Backwards compatibility of System.Configuration.Configuration?
Posted by Mark at 9/27/2007 6:04:03 AM
Hi... I've got an old app config that I'm trying to work with using the new 2.0 config framework, e.g. <configuration> <configSections> <section name="Test" type="System.Configuration.NameValueFileSectionHandler"/> </configSections> <Test> <add key="test" value="th...more >>

.NET Framework 2.0
Posted by aroraamit81 NO[at]SPAM gmail.com at 9/27/2007 4:45:17 AM
just want to read all the related concepts throughly including Garbage Collector and CLR, but not getting any web links which are specific to framework 2.0 not even on MSDN. Any pointers to that would be appreciable. Thnx Amit Arora ...more >>



AccessViolationException from OSSOCK.recv when using WebRequest
Posted by Max Bolingbroke at 9/26/2007 9:37:28 PM
Hi, I have some extremely simple code using WebRequest (isolated from a larger application): static void Main() { WebRequest w = WebRequest.Create("http:// www.google.com"); // Works //WebRequest w = WebRequest.Create(@"http:// finance.yahoo.com");...more >>

Enumerating modules inside a process in a 64 bit system
Posted by Ramon N. Gene at 9/26/2007 3:03:07 PM
Hello: I need to detect whether certain addin is loaded inside Microsoft Word. To do this I am using Process.GetProcessesByName("winword") from System.Diagnostics and then enumerating all the modules inside the winword process using Process.Modules. This is working fine in a 32 bit ...more >>

WCF Solution
Posted by Demetri at 9/26/2007 2:17:07 PM
Problem: An External resource which I have no control over delivers data via TCP/IP. In addition, there are files delivered to specific folder locations on the network. There is a very poorly written system ("server") that uses Sockets to intercept the data that comes in via TCP/IP and I...more >>

SmtpClient.send error
Posted by Pavlovs Mouse at 9/26/2007 10:56:12 AM
I have a web page that sends emails to a mailing list of 700+ recipients. It ran to about 435 and quit, and was unable to make a connection to send again. I do not yet have verification that the 400+ emails actually arrived. I *think* but do not know for sure that my smtp server is exchange. ...more >>

System.Configuration.AppSettingsSection doc error?
Posted by Mark at 9/26/2007 10:46:00 AM
Hi... Perplexed about something I'm finding here. I just started experimenting with ConfigurationManager.OpenExeConfiguration() and ConfigurationManager.OpenMappedExeConfiguration(), and I've found what looks like a doc bug on MSDN. http://msdn2.microsoft.com/en-us/library/system.config...more >>

WSE 3.0 Large files - Error - Tried all but nothing helps
Posted by tobiwankenobi at 9/26/2007 8:26:26 AM
Hello everybody, I try to send big files to a webservice using VS 2005 and WSE 3.0 (mtom enabled). Up to 120 MB erverythink works fine. But if I try a 140 MB File I get the following exeption: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a sen...more >>

NUB Threading Question
Posted by Holysmoke at 9/26/2007 5:44:00 AM
Hi there, I have to do report generation application which works similar MS SQL Server Reporting Services. A user add to subscribed scheduling (Daywise, Monthly, Yearly). I must be able to generate a report for the specific timing. I think I should do this application as a windows service ...more >>

FileSystemWatcher make weird problem when I watch subdirectory of the Application?
Posted by mtczx232 NO[at]SPAM yahoo.com at 9/26/2007 2:48:27 AM
I met some strange behavior of FileSystemWatcher, when I try to watch subdirectory that place under application directory. sombody know about this? ...more >>

How can I give my code permissions?
Posted by Juan Dent at 9/25/2007 7:30:02 PM
Hi, I have an assembly which needs to create a file. I use: ---------- FileStream destStream = new FileStream(pathFileName, FileMode.Create, FileAccess.Write, FileShare.None); StreamWriter writer = new StreamWriter(destStream); XmlWriter xml = new XmlTe...more >>

setting KeepAlive - how can I use it?
Posted by liormessinger NO[at]SPAM gmail.com at 9/25/2007 7:18:56 PM
Hi, I wondered what are the implications of setting keepalive to true. can I detect, say, from a server, that a client crashed? and if so, how? thanks much, Lior ...more >>

Using interfaces for reflection-loaded classes
Posted by ctacke/ at 9/25/2007 4:17:08 PM
I am having problems with casting or converting a class to to an interface from which it derives. I'm certain that it's due to how it's being loaded, but I'm not sure how to get past the problem. Here's a general outline of the architecture. It's oversimplified, but I think it's enough in...more >>

Failed to generate code while converting from .Net 2003 to 2005
Posted by Maxsan at 9/25/2007 11:06:02 AM
I received an error while converting a windows application from .Net 2003 to ..Net 2005. The followinf error occurred in a dataset that was automatically generated: Error 18 Custom tool error: Failed to generate code. Unable to convert input xml file content to a DataSet. The following text i...more >>

Different setup for each client?
Posted by Empi at 9/25/2007 12:00:00 AM
Hi, I have a project on which I must do some different definitions for each client the installs it (how many channels etc) and lock it from him. What is the best way you recommend? Till current version, I used to send the clients a "signed" ini file with the information and a checksum I...more >>

Strange results attempting IDENTITY in LINQ
Posted by Kevin_E at 9/24/2007 5:30:01 PM
I tried to add an one-up sequence to a LINQ select such as: var i = 0; var tokenized = from line in lines select new { index = (i = i + 1) ,tokens = line.Split(new char[] {' '} } However, I get strange, but somewhat explainable results. It seems that every time I access 'ind...more >>

do you know if the new bz box is x86 or x64?
Posted by Daniel at 9/24/2007 3:56:17 PM
do you know if the new bz box is x86 or x64? ...more >>

Intermittent socket exception
Posted by QDL at 9/24/2007 3:23:12 PM
Hello everyone, i have a windows services (framework 1.1) that uses a socket to send Multicast UDP Datagrams. On one particular server (HP with Windows 2003 x64), sometimes i get an exception: SocketException: The requested address is not valid in its context. I believe the offending li...more >>

Event handler not responding on new instance of class
Posted by Mike Thompson at 9/24/2007 3:17:46 PM
The language for this question is C#. I have a class named client which derives from IDisposable; it contains several event handlers. In another class, I create a static instance of the client class and subscribe to two of its events, using standard += syntax, for example: client.Error ...more >>

Free Audio library?
Posted by mtczx232 NO[at]SPAM yahoo.com at 9/24/2007 3:17:21 PM
have some work around Sound for dotnet? I need to join mp3 files into large one? ...more >>

Application settings, when is it deserialized?
Posted by blekros at 9/24/2007 12:15:37 PM
Group, Using VS2005, VB.NET and .NET 2.0 Framework, I have a built a mylib.dll class library. It is registered for COM interop. I have an associated app.config. I build mylib project and get mylib.dll, mylib.tlb, and mylib.dll.config. So far, so good. I change the value of my setting i...more >>

My channels are unavailable.
Posted by Bex at 9/24/2007 11:30:25 AM
For 2 days I have been unable to access channels, I thought it was my aerial but I used a different one and still have the same problem. I have tried to scan for the channels with no success, used system restore and have tried to reset the settings but nothing has worked. I really don't know w...more >>

UICULTURE Thread context
Posted by sfear at 9/24/2007 9:34:19 AM
Hi all, I'm trying to create a multilanguage website in ASP .NET 2. I want to let users to set their preffered language. Using a listbox and the Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(selectedLanguage); postbacking the page the controls are lo...more >>

using stmt usage
Posted by AVL at 9/24/2007 2:44:01 AM
hi, i've seen in certain code snippets the following usage of using statement.. using(RegistryKey key = Registry.Users) { //code } what exactly is the usage of using stmt in this case? can anyone explain......more >>

Losing my parameters and fields?
Posted by MrGrundh at 9/24/2007 1:06:02 AM
Dear MSDN! I have designed a report in VS 2005 Report Server Projekt. The report connects to a Analysis 2005 server. Everything works fine in Layout tab and preview tab until i click data tab. After i have clicked the data tab the report starts to show errors in the output and error list wi...more >>

C# Object serialization
Posted by linuxfedora NO[at]SPAM yahoo.com.hk at 9/24/2007 12:00:00 AM
I know how to serialize a object into a file. But if i want to serialize several different objects into the same file and not at the same time, Then how can i do it?Thanks For example: i need to serialize ClassA object first, then after 1 minute, i need to serialize ClassB objec to the same f...more >>

System.Net.Mail is not RFC2821 compliant
Posted by John Allberg at 9/23/2007 7:58:00 PM
Hi! I'm playing around with System.Net.Mail in .Net 2.0 and noticed that it never sends the QUIT command. Using a network sniffer I checked and immidiatly after it has received the confirmation of the mail being accepted, it disconnects. RFC2821 4.1.1.10 says: "The sender MUST NOT inte...more >>

creating simple array... how to?
Posted by buu at 9/23/2007 6:37:07 PM
I'm trying to create a simple 2-dim array of integers, but don't know how to do that... in definition of class, I wrote: int *results; while in constructor: results = new int[256][256]; but, I got an error: C2440: '=' cannot convert from int{*}[256] to 'int *'. what is wrong? ...more >>

Process Issue
Posted by Barry at 9/23/2007 6:23:00 PM
Hi I have a console application which start a Windows Application, how will i know when the Windows Application has finished processing (it basically downloads some web info), i want to kill the Windows application when the download completes. I tried Proces.WaitForInputIdle() without an...more >>

Async File IO Implementation
Posted by Muj Beg at 9/23/2007 1:28:30 PM
Hi All, For various reasons, I have been trying to get a closer look into Async file IO implementation of the framework. Am I correct in assuming that the Rotor (http://www.dotnet247.com/247reference/System/IO/FileStream/__rotor) implementation is a fair (if not exact) representation of th...more >>

Problems running WMI code through C# as scheduled task
Posted by Ryan McFall at 9/22/2007 12:26:15 PM
I am running the following code as part of a scheduled task; the objective of the code is to determine whether or not someone is logged on to the workstation in an interactive session, and if so, if that person is the same one as the one running the task. ManagementScope ms = new ManagementSco...more >>


DevelopmentNow Blog