Cslom's Q&A profile
.NET Development networkstream read timeout problem
Here's my situation, I have a data listener thread - connected via TcpClient. I would like it to read and return data as it becomes available - ideally, I would like it to block indefinitely on the read() and return if it either receives new data, or if the other end closes the connection. So far, I can implement all this correctly, and everything is great. However, the last condition is that if an outside force (ie. a user) requests that I stop processing, I want to be able to exit the blocked read() method. From what I can tell Thread.Interrupt() doesn't interrupt the read() - is that supposed to happen Thanks in advance... How about NetworkStream ns = ... [...] ns.Close(); That'll close the ...Show All
Visual Studio Team System Multiple Web-Test iterations not executed
Hi all. I have noticed an issue with running a batch of (in my case coded) web tests repeatedly. I am running the RTM. I am attempting to run several tests multiple times in a row. I have set the localtestrun.testrunconfig Settings to default to 50 times. This config is selected as Active. When several tests are selected via the Test Manager Window, and I right-click to "Run checked tests", only the first test initiated is executed 50 times. Each subsequent test appears to only run once. As a workaround I have referenced a "false" datasource w. 50 rows and used the "once per datasource row" config setting instead. It works but requires updating each coded test with a datasource Aplogies if this ...Show All
Windows Forms clear all text box controls on a from
I have 10 text boxes on a from after they submit their data I want to clear all txt box controls. For Each ctrl As Control In Me .Controls If TypeOf ctrl Is TextBox Then CType (ctrl, TextBox).Text = "" End If Next VB.net 2005 not working I found the problem the text boxes are in a "panal" pnl1 so it was not reading in the pnl1 control For Each ctrl As Control In Me .pnl1.Controls If TypeOf ctrl Is TextBox Then CType (ctrl, TextBox).Text = "" End If Next ...Show All
.NET Development Problem with Transactions C# and Sql Express 05
Hello everyone I need to have a transaction with a select statement like so trans = cn.beginTransaction Insert into order table an order record select unique order Id from order table insert record 1 into orderdetails using the orderid insert record 2 into orderdetails using the orderid commit trans I am of course experiencing record locking after my first insert. I cannot select records from the order table even though I need the inserted OrderId in order to insert into the orderitemst table. I have tried switching the isolation level to readuncomitted on my transaction but sp_who2 still shows a block even with the readUncomitted Isolation level. A foreign key on the orderitems table prevents me f ...Show All
Visual Studio Express Editions form design error
Hello, I 've got a problem, when I try to open in design a form, an old or a new, I've got this error : One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. No data is available. Hide at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.GetValueNames() at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes) at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension) at Microsoft.VisualStudio.Shell.Design.Win ...Show All
Windows Live Developer Forums File Does Not Exist Exception on Zoom and/or Pan
I get a File Does Not Exist Exception on Zoom and/or Pan randomally on the VEMap control. To reproduce add the following html to an asp.net project and catch the exception in a global.asx file. <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml" > < head > < title ></ title > < meta http-equiv ="Content-Type" content ="text/html; charset=utf-8"/> < script type ="text/javascript" src ="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></ script > ...Show All
Visual Studio 2008 (Pre-release) 3D : One Graph, multiple viewport. How to deal with ModelVisual3D & Model3DGroup Limitation ?
I'm having a hard time figuring out how to implement a graph of 3d node and represent this graph in multiple viewport. basically, ModelVisual3D offer me everything i need so i could inherit from it to create my GraphNode class but once a ModelVisual3D is added to a viewport3d you can't add it to an other. I could inherit from Model3DGroup and figure out how to add a Content property but it is sealed and don't give hittest for nodes. i have read Daniel Lehenbauer's Blog about this, but still can't find any way. http://blogs.msdn.com/danlehen/archive/2005/10/09/478923.aspx Thanks Right, Model3DGroup is what you want because it can have ...Show All
Visual C# Problem with passing arguments in shell command
Aloha, I'm creating a GUI for a dos program I use a lot. Here i a sample of my code: [code] proc.StartInfo.FileName = "D:\\Program\\xyprogram.exe"; proc.StartInfo.Arguments = this.openFileDialog1.FileName; proc.Start(); [/code] This generates "xyprogram filename.txt" and it works. My problem is that I want the result to take another argument called -i so the result would look like "xyprogram filename.txt -i" I have tried [code] proc.StartInfo.Arguments = this.openFileDialog1.FileName + "-i"; [/code] but it don't seems to work. Any suggestions You'll need a space. Hard to make it visible so I'll do it like this: proc.StartInfo.Arguments = this.openFi ...Show All
SQL Server Dynamical XML as datasource.
Hi! I'd like to know if I can pass a datasource as a parameter or better, if a datasource can be set for a report dinamically. The reason is that we're generating an xml dinamically and we would like to use this xml as our datasource. Is this possible Thanks in advance!!! :) Are you looking for expression based connction strings, to have the connection string info for a datasource to be dynamic: http://blogs.msdn.com/bimusings/archive/2006/07/20/673051.aspx ...Show All
Visual Studio Team System From Workgroup Edition to Standard Edition
Hi, I've installed the Team Foundation Server Workgroup Edition (RTM Ver. 8.0.50727.147) And now what to migrate/upgrade to the Standard Edition. Because of the limit with the 5 "Team Foundation Licensed Users", but i read that i can't use the "TFSUpgradePackageRTM". Can i do this by running the TFS setup in maintenance mode and then enter the TFS Standard Edition key Thanks Will this upgrade also work if the TFS has been upgraded from RC to RTM (Workgroup) and possibly from beta to RC regards Dennis ...Show All
SQL Server SQL stored procs
can anyone help me out.... i need to compare a date that was retrieved from the database and the system date then it must be coded in the stored procs of the database.. help!!!! thanks a lot!!!! its a big help... it worked.... im trying the DATEFORMAT function now... and it doesnt seem to work.... here is my code i want to format the date in a way that it will display mm/dd/yyyy... help... by the way can i have your email address please... SET DATEFORMAT mdy GO DECLARE @sysDate as datetime DECLARE @pDate as datetime SET @sysDate = GETDATE() SET @pDate = DATEADD(day,5,@sysDate) SELECT @pDate as 'Due Date' GO ...Show All
Windows Forms trigger an event
HOw do I trigger an event from coding thanks. Regards Alu Here is a more complete example from the documentation: http://msdn2.microsoft.com/en-us/library/w369ty8x.aspx Michael Blome Visual C# Documentation Team ...Show All
Windows Forms How do i get the current app's font information
Hi, how can i get the current used font information in app I try to use GetDC and GetTextMetrics to get the information. However, it seems hard to get the realtime font information. For example, now we open Notepad.exe. The default notepad font size is 12. We change the font size from 12 to 48. How can i get this information Thanks for your replying in advance. You can always use this .Font to retrieve the font information. ...Show All
SQL Server How to generate reports from SSIS
Hi All, I want to know how to generate a report from SSIS, for example, a report telling what has changed to a table. Thanks, TPK TPK1216 wrote: Hi All, I want to know how to generate a report from SSIS, for example, a report telling what has changed to a table. Thanks, TPK Phil is right, this is nothing to do with SSIS. If you want to audit change to a table then look to utilise DML & DDL triggers. If you want to *really* get into auditing changes to tables then check out Japer Smith's DDL Audit apps: http://www.sqldbatips.com/showarticle.asp ID=113 Really really good stuff. Good luck. -Jamie ...Show All
SQL Server Error when issuing BACKUP LOG mydb with truncate_only
Hi, Following error appears in the SQL Server error log when I execute BACKUP Log db with truncate_only using a stored procedure. The stored proc I am using is as follows: CREATE procedure spm_tranlog as declare @DBName as Varchar(120) select @DBName = DB_name() dump transaction @DBName with truncate_only GO There are data import processes running in the night, before starting the processes we are executing spm_tranlog procedure to clear the transaction logs. The following error appears in log after executing the spm_tranlog: “BACKUP failed to complete the command exec spm_tranlog” This always happens after weekly server maintenance tasks. The scheduled main ...Show All
