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
all groups > c# > october 2005 > threads for saturday october 8

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 31

HttpWebResponse seems to hang
Posted by Nuno Magalhaes at 10/8/2005 11:39:26 PM
Hello, In a simple thread I have a code like the one below: public void ProtectionRun() { while(true) { //Sleep thread for one minute //Thread.Sleep(60000); HttpWebRequest wReq=(HttpWebRequest)WebRequest.Create("http://pipa.inov.pt/cgi-bin/camera"); HttpWebResponse wRes=(HttpWebRespons...more >>


Linking webpages from Internet to local folder
Posted by Zack Whittaker (R2 Mentor) at 10/8/2005 10:19:01 PM
OK, sounds like a stupid question but noone in the R2 beta is replying LOL. Is there anyway I could put a link on my site (eg. www.zack.co.uk/page.htm) and it link to a HTML document on the user's computer (eg. c:\progra~1\zack\test.htm) ? I've tried doing a simple link, but there seems to be...more >>

How to get Multi-Monitor Position?
Posted by slowram NO[at]SPAM nospam.nospam at 10/8/2005 6:38:41 PM
I know how to get the monitor dimensions, virtual monitor dimensions, but how do I get the location of the second monitor in relationship to the original? On the desktop when I go into my property settings for the monitor I can move around the monitors so if say the second monitor is lower th...more >>

How to use AllocateNamedDataSlot method
Posted by xzzy at 10/8/2005 6:37:12 PM
AllocateNamedDataSlot defined as: Threads use a local store memory mechanism to store thread-specific data. The common language runtime allocates a multi-slot data store array to each process when it is created. The thread can allocate a data slot in the data store, store and retrieve a data v...more >>

HttpWebResponse doesn't always return
Posted by Nuno Magalhaes at 10/8/2005 5:47:05 PM
In a simple thread I have a code like the one below: public void ProtectionRun() { while(true) { //Sleep thread for one minute //Thread.Sleep(60000); HttpWebRequest wReq=(HttpWebRequest)WebRequest.Create("http://pipa.inov.pt/cgi-bin/camera"); HttpWebResponse wRes=(HttpWebResponse)wReq.GetRe...more >>

DataView relation to DataSet
Posted by C Glenn at 10/8/2005 2:52:46 PM
I've created a DataSet subclass that includes a public DataView. The DataView is instantiated with the DataSet's DataTable in the constructor's parameter list. Is there a way to determine the DataSet associated with the DataView through the DataTable used in the instantiation of the DataVi...more >>

Getting time from an HttpResponse
Posted by Nuno Magalhaes at 10/8/2005 1:51:15 PM
This site: http://tycho.usno.navy.mil/cgi-bin/anim gives me the date at a specified moment but using HttpRequest and Response with this server is very bad. Does anyone knows how to get a high fidelity time in order to get my trial version software up and running? Give me some sites please ...more >>

Static type declaration in C# versus C or C++
Posted by Meya-awe at 10/8/2005 12:46:25 PM
Hello, Could anyone point me to an explanation or explain what the difference is between a static declaration of a variable in C# versus C or C++? thanks, BRAMOIN *** Sent via Developersdex http://www.developersdex.com ***...more >>



Handle Selected index change
Posted by william_dudek NO[at]SPAM _yahoo_com at 10/8/2005 10:31:13 AM
I am becoming extremely frustrated with the event handlingin C#. I need to handle the OnSelectedIndex changed event and am getting the following error message when I build the application. C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\RecipieGuide\FormRecipe.cs(59...more >>

C# with C++ DLL
Posted by Tim at 10/8/2005 10:18:02 AM
Hello all, I'm using a C++ DLL and I have a method that needs a "const char *buffer". What is the equivalent of this in C#? Any help would be appreciated. Thanks....more >>

Any Advanced Developers NNTP Around?
Posted by clintonG at 10/8/2005 9:37:34 AM
It has become painfully clear to me how useful it would be if it were possible to grab an entire topical tree from a specific newsgroup and archive it as XML enabling it to be republished in a webpage. I wonder if this is even possible? <%= Clinton Gallagher METROmilwaukee (sm) "...more >>

Global variables & arrays
Posted by Roy Gourgi at 10/8/2005 6:55:51 AM
Hi, I am new to C#. I am trying to create some variables and arrays that can be seen throughtout the whole program. I have no choice as they have to be seen by the whole program. Where and how do I declare them? I tried putting the variable gnSum and gaArray in my Main() method but the rest...more >>

How to test if a socket is connected
Posted by Nuno Magalhaes at 10/8/2005 5:03:15 AM
socket.Connected only gives the last access result but not the current status of the socket. What is the best way to determine if a socket is still connected? Because I want to cancel all my "output" in the client if the socket is not connected. What is the best way to determine if a socket...more >>

Threads
Posted by ShimiIL at 10/8/2005 3:40:02 AM
Im starting now to write a big chat server that is built to hold a max of 1000 users. Im having a trouble to find the best way to hold this users... i have 2 ideas, one is to create a thread for each user and each user thread socket will read/write in a blocking mode. or to create 25 threads w...more >>

decimal=int/int
Posted by orioth at 10/8/2005 2:50:54 AM
merhaba ben,int olan iki say=FDn=FDn b=F6l=FCm=FCn=FC decimal bi de=F0i=FEk= ene atamak istiyorum.sonu=E7 decimal mi yoksa int mi =E7=FDkar? ...more >>

sql connection
Posted by Mike at 10/8/2005 2:49:01 AM
Hi, I've added a new user as ASPNET in my laptop (where I am the only user) and I'm using this connection string: "Data Source=(local);Initial Catalog=Orchestra;User Id=ASPNET;Password=boby" but it's giving me this error when tring to access any table in my Orchestra database: "Not assoc...more >>

enums
Posted by Curious at 10/8/2005 1:39:20 AM
Hi, I am trying to create the following enum: public enum myEnum {First Come First Serve, Shortest Job First, Round Robin} Now when I compile, errors are given. The main reason is that each item in the enum is made of multiple words. How can I get around this problem Can someone ...more >>

Replacement of TcpListener.Pending on sockets
Posted by Nuno Magalhaes at 10/8/2005 12:05:31 AM
sock.Accept() blocks until it finds a connection. How can I implement a TcpListener.Pending method using sockets only? Thank you, Nuno Magalhaes. ...more >>

How to write like-as 'VB shared function' in Csharp?
Posted by ABC at 10/8/2005 12:00:00 AM
In VB, we can write the share function as Public Shared Function FnXXX() .... .... End Function How about on C#? ...more >>

Newbie: Values of a ListBox
Posted by Craig Lister at 10/8/2005 12:00:00 AM
I'm a Delphi developer, trying my hand at c# A simple question, I am sure: I'd populate a ComboBox in Delphi, with values from a table, and then at the same time, populate a TStringList with the corresponding ID's of the items going into the ComboBox. Eg: select id, description fro...more >>

integer array to a byte array
Posted by Nils Wolf at 10/8/2005 12:00:00 AM
hi, how do i convert an integer array to a byte array?? ...more >>

ListView-style column headers?
Posted by Danny Tuppeny at 10/8/2005 12:00:00 AM
Hi all, I need to build a Treeview/Listview control (none of those on codeproject do quite what I need!), and was considering using one of the existing controls as a starting point, though now I'm not so sure, and considering writing from scratch. If I decided to do this, is there any way t...more >>

TcpClient timeout?
Posted by Danny Tuppeny at 10/8/2005 12:00:00 AM
Hi all, I'm using a TcpClient to talk to a newserver. If I don't send any data for a while, will the connection timeout, or does something in the TcpClient keep it alive? If not, and it times out, how do I keep it alive without actually sending data? Thanks, ...more >>


DevelopmentNow Blog