Arindam Biswas's Q&A profile
.NET Development The underlying connection was closed
All, I have done plenty of web searching on this and have found a lot of hits, but only one or two hits that were usable. I modified my code according to the advice but I'm still having a problem. I have a C# dll running on a powerful server (Windows 2000 Server is the OS). The C# dll is called by many other programs, often simultaneously. The C# dll simply establishes an https connection to another server, posts some string data, and retrieves a response. The problem I'm having is that under heavy usage (like 6 or more instances of the dll loaded in memory and all trying to post to the remote server), I start getting the following exception: "Error: The underlying connection was closed: Unable to connect to the remote server." ...Show All
Visual Basic Chat Clients in Visual Basic
I'm relativley new to programming in VB.net 2005, and i'm thinking of doing a project for work and making a chat client. I have been searching and the only way i have thought about doing it is with the port-listening function. Is it possible to do this using VB And what would i need to do to have this running in my project Thanks, Nick Rawe Hi Vikas, Thanks for the links, they have given me some useful ideas on ways to construct my project... Nick ...Show All
SQL Server Top-Variable-Case
Hi, I have something like the following in a stored procedure. SELECT DISTINCT top @rowCount a,b,c FROM tblA ORDER BY c DESC The @rowcount value is passed in by the user to the SP. It can be 0 or >0. Do I need to write two queries - one using the TOP keyword as above and another with no TOP as follows: IF @rowcount>0 SELECT DISTINCT top @rowCount a,b,c FROM tblA ORDER BY c DESC ELSE SELECT DISTINCT a,b,c FROM tblA ORDER BY c DESC Or...is there some other construct (such as CASE - which I tried but couldn't get to work) that can handle this condition-check from within the query Thanks much. I suppose there is always the "old fashioned way". set rowcou ...Show All
.NET Development CPU problem for multiple TcpListener's running on separate threads?..
I have a Windows Service which runs multiple TcpListeners, each on its own thread (approximately 200 concurrently). When I am running the service on my dev machine (XP Pro SP1), regardless of the number of client requests at any given moment, everything is fine. But on the other servers which have Windows Server 2003 Web Edition SP1, the same service sometimes consumes 100% CPU for half a minute to half an hour when there were NO requests from clients. This happens both in production (Release configuration) and when I run it in Debug mode from VS 2003 IDE. Then CPU usage drops (again, without any obvious reason), and can go up again in a few minutes. There is no pattern in that behavior. There are no other programs running on thos ...Show All
Visual FoxPro Cancelling Rendering of Report in VFP 9.0 when ESC is pressed
Hi All, I want to quit the rendering of report in the middle of its work in VFP 9.0 using report listeners when Escape Key is pressed. i tired using the SET ESCAPE ON and ON ESCAPE i was not sucessfull. Please advice me in this. Thanks in Advance Thanks Venkatram I am not very sure. i think it can be simply done with set escape on on escape do exitprg proc exitprg clos all clear return the above works in foxpro on dos and foxpro for windows. ...Show All
Visual Studio Express Editions Clipboard Help
Hello all, good morning :) need some help with this one please: I have 6 textboxes on my form. I need to assign each textbox with a shorcut key (eg. alt + 1, atl+2 etc..) and then copy the contents to the clipboard. I take it that I would have to put the code in a timer event & would the shorcut keys still work even if the form is not displayed on the screen Thanks, Stuart I would imagine that you feel you've clearly descibed what you want and perhaps I'm just dull, but it's still not clear to me. You are moving data to Webbrowser forms and filling in fields Is that any webpage or a page you control Is this your webbrowser of any webbrowser ...Show All
Visual Studio Tools for Office Drag and Drop Outlook Contacts with specific items (FullName, etc.)
edit (11PST 1-5-07) : OK! I figured out how to access the type as an outlook object for the DragDrop but my problem now is that it's just seeing the NeameName.msg that is the dragged contact as Text rather than an actual object (Microsoft.Office.Interop.Outlook.ContactItemClass). Anyone have any ideas how I can cast the data rather than just checking to see if it is that type for the DragEnter private void onDragEnter( object sender, DragEventArgs e) { if (e.Data is Outlook. ContactItem ) { e.Effect = DragDropEffects .Copy; } } original: I am trying to drag and drop an outlook contact onto a form so that the code grabs each object within the contact (FullName, BusinessAddress, BusinessAddressCity, BusinessPhon ...Show All
Visual C# Problem with slow screen update
I have a few winforms that are occationally being populated with data-intensive charts. I am experiencing problems with slow respons, and I think the root cause is a slow screen update that is handled outside my code. While other windows paint almost instantaneous, my windows form may need up to 3 seconds before it's back in shape when I toggle between this form and for instance Internet Explorer. I figure it has something to do with how .net redraws the form, because no code is running in my application when the subject winform is being refreshed. It may seem like .NET, CRL or whatever is rebuilding the form from scratch every time I have visited another window. In the same "spirit" the form has a similar response time when I am ...Show All
SQL Server Linked Server to MYSQL using OLEDB Provider for MYSQL cherry
Good Morning Has anyone successfully used cherry's oledb provider for MYSQL to create a linked server from MS SQLserver 2005 to a Linux red hat platform running MYSQL. I can not get it to work. I've created a UDL which tests fine. it looks like this [oledb] ; Everything after this line is an OLE DB initstring Provider=OleMySql.MySqlSource.1;Persist Security Info=False;User ID=testuser; Data Source=databridge;Location="";Mode=Read;Trace=""""""""""""""""""""""""""""""; Initial Catalog=riverford_rhdx_20060822 Can any on help me convert this to corrrect syntax ...Show All
Visual Studio Team System Visual Studio has hung. What is it doing?
Hi, I have set up a new VSTS4DB (sorry if that's the wrong nomenclature) project and am importing an existing schema into it. That schema* has over 1500 tables in it. It has successfully created over 11000 files under the project folder and they all have a Last Modified Date of approximately 12 hours ago. Since then Visual Studio has been in that oh-so-lovely "Not Responding" mode. CPU utilisation is consistently about 50% and it is devenv.exe that is using it - so its definately chugging away at something. Some extra info: My project is part of a solution that is managed by Team Foundation Server We use TFS source control so once it has finished what it is currently attempting to do I shall be attempting to add all these ...Show All
Smart Device Development /f 3 no go on CLZ - 0xC000001D (v2 beta)
Using /f 3 to start up the emulator and running a typical app on that emulator gets me a 0xC000001D on clz r2, r6 4.1.12 CLZ : Architecture version Version 5 and above I don't remember this happening in the original emulator. I ran it again in the original emulator and it died a similar death, but I can't be sure the correct (non-beta) DLLs are being used since I have 8.0.60317.00 (v2 beta) hooked up/registered, even though I started up the original vs8 emulator to run the app (outside of the debugger). Double-wide loads and dsp instructions seem to work, just not the CLZ (I haven't looked beyond these), so it's not a /f&n ...Show All
Windows Forms How to get more than one inputs from a textbox?
Hi, I have one doubt in using textbox control. How can I get more more than one inputs from single textbox for example abc, def, ghi is the textbox text. I want individual words(like abc , def or ghi) seperated by "," (comma) to store them in seperate datafields in a table. Is seperator "comma" only or we can use other chars, or spaces some body reply me, Bye Ananth... Use String.Split VB example Dim strWords() as String = textbox1.text.split(","c) C# example String[] strWords; strWords = textBox1.Text.Split(','); ...Show All
.NET Development accessing public properties in user control after calling server.transfer
hi there, i have a user control called "reports.ascx" that is dynamically loaded into "source.aspx". This user control contains a button that calls server.transfer("target.aspx"). Within the user control i have a public property called "reportQuery" I am trying to access "reportQuery" from "target.aspx" by using this: dim lastpage as object dim qry as string lastpage = context.handler qry = lastpage. reportQuery but it tries to get the "reportQuery" property from "source.aspx" page, and not the control within "source.aspx". How can I access the reportQuery property within my control I hope t ...Show All
SQL Server XQuery modifying element names
We recently made changes to our code that involve a XML data to be changed in the database. I would like to change this: <element> <text>hello</text> <text>good bye</text> </element> to: <element> <number>hello</number> <number>good bye</number> </element> Is this possible through XQuery If not, is there any way to do this via SQL Note: I cannot do a string replace as other valid nodes are called <text> . Thanks, Dave Try this: declare @x xml set @x = '<element> <text>hello</text> <t ...Show All
Visual Studio Express Editions Help,making visual basic right click thingy...
Hey,first of all,hapy new year 07' and i am creating a program in visual basic that will allow you to create "buttons" in the right click button,when all those options appear,if you click on one of them that has a file type or when you click on the desktop,how do i make it so it dispays the text is input and opens a program of file from the directory written on a text file in other words in case you did not understand,how do i make it when i right click something,there be a button i create that opens a program or file that i write on a text box textbox1.text = "c:/Documents and Settings/*******/Desktop/*****.lnk" for example Thanks in advance Thanks, happy new year ...Show All
