Pad's Q&A profile
.NET Development VS 2005 DataTable performance problems?
Hi there, I have a app built in .NET 1.1 that I have recompiled in VS 2005. I've noticed that some highly iterative loops are now many orders of magnitude slower in 2.0. My loops process several thousand rows in a couple of seconds in 1.1, and in 2.0 they take about one second per row. Since I don't have a way to profile my code in VS 2005 (I used to use DevPartner for that), I'm guessing that this is caused by the DataTables or DataRows that I'm using through these loops. Mostly I'm doing .Selects and then reading data from the resulting DataRows. Are there any known conditions under which DataTables or DataRows would be SLOWER in 2.0 than ...Show All
Smart Device Development TextChanged/KeyDown/KeyUp etc on NumericUpDown
Why can't I hook into this event... It doesn't seem to fire for a NumericUpDown contorl. Any ideas ValueChanged works, but none of the others. Anyone know of a work around Thanks! The articles mentioned here on the .NETCF team blog site might be of hlep to you. http://blogs.msdn.com/netcfteam/archive/category/9118.aspx ...Show All
.NET Development WSE/DIME - ResponseSoapContext.Current = <undefined value>
Why isn't the ASP.NET runtime providing a valid reference to the ResponseSoapContext object to my WebService I'm trying to use WSE and DIME to send attachments via Web Service. I created a brand new WebService project and added in the reference to WSE. I didn't modify the Web.Config file myself, but when I looked I was pleasantly surprised to see that all entries were added automatically for me (see Web.config file below). Here is the Web Service method which I've defined: [WebMethod] public int DropDIMEOnMe(string FileSpec) { SoapContext respContext = ResponseSoapContext.Current; &nbs ...Show All
Visual Studio Express Editions Reading and Writing ListView's to file, with a twist
Hi, I need to be able to save the contents of a listview (with a single subitem in each item, which has multi-line text) to a file and then be able to read it back into the listview. I tried the basic approach, which led to incorrect reading, since the subitems contained multiple lines and my code treat any one of those lines as a subitems text rather than treating all the lines as the text (no simple way of knowing where my subitem text began and ended), so... I tried serialization, which seems to work on the save side of things, but when i try and load the info back in, i get a casting error on my BinaryFormatter. Can someone please write ...Show All
SQL Server SQL Server Thrashing CPU
We have a client with a SQL Server 2005 installation that has started thrashing the CPU. The server houses a BizTalk installation and a database for a mobile application. The thrashing seems to be continuous and just started today - no changes have been made. Synchronisation to the mobile devices has gone from about a minute to anywhere from 10 to 50 minutes. The BizTalk tasks continue to run and don't appear to be slowing down at least no significantly. Admittedly one of the BizTalk orchestrations creates a lot of deadlocks as it gets fed a bunch of files at one time ...Show All
SQL Server Using Datasets
Can we use ado.net datasets to populate the reports There are several options: Do you know about the reportviewer winform and asp.net controls that report off ADO.NET DataTables http://msdn2.microsoft.com/en-us/library/ms251671.aspx If you want to add an ADO.NET dataset as a report data source, you would need to implement your own data processing extension. There's an example for a simple implementation documented here in "Using an ADO.NET DataSet as a Reporting Services Data Source" (published a couple of years ago, but you can still upgrade the code files in Visual Studio 2005 and compile and run this): http://msdn.m ...Show All
Windows Forms unbound gridview and combo box
let me explain my problem with the example. i have a Table called Order Table. Two fields ProductId OrderName (for simplicity i took only two fields) i need to show gridview one combobox ,showing product names (it is from product table) and text box showing order name i need to add/modify/delete i tried with unbound columns . but i could not set the datasource ...Show All
SQL Server Login failed for user'(null)'
In VWD 2005EE Beta 2 I was able to connect to my SQL Server 2000 database with the below code in green: Sub BindMxDataGrid1() Dim connectionString As String = "server='ccsserver'; database='castsql'; trusted_connection=true" Dim CommandText As String Dim filtervalue As String = SearchField.Text.Replace( "'" , "''" ) If filtervalue = "" Then CommandText = "select Code, Name from Portfile ORDER BY Name" Else CommandText = "select Code, Name from Portfile where (Name Like '" & filtervalue & "%') Order By Name" End If Dim myConnection As New System.Data.SqlClient.Sql ...Show All
SQL Server not able to login in other computers!
I'm developing with Visual Studio 2005 Standard Edition and SQL Server 2005 Express Edition, my problem is that as default SQL Server Express uses windows authentication. Since I develop in my own PC and install the software in another PC, my SQL Server Database is useless cause it still tries to log in wih my computer name and windows user. I'm using a conventional intallation project in which I include all the files (fonts, project output) that the computer should have, and I also included the .mdf file for the Database to work. I tried using SQL Server Management Studio CTP to help me create a user for my Database, but the users I c ...Show All
Visual Basic Displaying a file if hexadecimal format.
I am a beginner at BASIC and I am using Visual Basic 2005 Express. This is what I am trying to do: I want to open a file, the file can be any format or size. I want to open it kind of like a hex editor would, except I want to be able to read the values of certain addresses in decimal format. Here is an example: I have 3 textbox controls: txt1,txt2,txt3. When I open the file I want to take three values from it. The first value is from address 10 and I want it to be 8-bits. The second value is from address 14 and I want it to be 16-bits. The third value is from address 26 and I want it to be 32-bits. Value 1 will go in txt1, value ...Show All
Visual C++ Heap/Stack Overflow/Overrun Issues
I am running a simulation program in VC++ 6 that requires arrays (dynamic or otherwise) that will eventually have as many as 200,000 entries of type "double". The program works fine when I use small arrays (with a few hundred entries) but fails when I increase the array size to say several thousands. The error code is "Unhandled exception in sim.exe: 0xC00000FD: Stack Overflow". I guess the main question is, if possible at all, how do I increase the stack or heap size so that the program can accomodate arrays with 200,000 "double" entries Other advice most welcomed. Thanks in advance! ...Show All
SQL Server SSIS setup for team work
I would like to setup SSIS project so that multiple developers can work on same project. I am having issues with protectionlevel properties while another developer opens the package created by other developer. Can anyone guide me on setting up project so that multiple developers could open the package and run (not simaltaneously though). Also tips on setting up source safe or team foundation will be appreciated! Thanks Mahesh User-level protection level only work if a single developer work on a package, so you need to either 1) switch to password-based protection level, or 2) switch to do-not-save-sensitive protection level an ...Show All
Game Technologies: DirectX, XNA, XACT, etc. using texture to store data
i am passing a texture (type: D3DFMT_G16R16) to the pixel shader which is supposed to store the value 0.3 in the green channel of some texels. here is an excerpt from the pixel shader: PS_OUTPUT Main (PS_INPUT input) { ... output.accumulation.g = 0.3f; output.accumulation.r = 0.0f; ... return output; } in the next run of the pixel shader i pass the same texture (where some of the texels are set to 0.3) to the pixel shader again. depending if the current texel's value is 0.3, the output color of the pixel shader should be green, otherwise black. PS_OUTPUT Main (PS_INPUT input) { ... float4 a = tex2 ...Show All
.NET Development Processing Binary (GRIB) files
Hi, I am looking to develop a product that reads binary GRIB files (files that contain gridded weather forecast data - http://www.wmo.ch/web/www/WDM/Guides/Guide-binary-2.html ) and displays weather data for certain sites around the world I have been developing in .net for about 3 years (fairly well!) but have no idea of: 1. how to process these binary files 2. extract the correct data 3. how to understand how the data is organised a description of the files can be found here - http://polar.ncep.noaa.gov/waves/products.html#grib and an exmaple file is ftp://polar.ncep.noaa.gov/pub/waves/latest_run/nww3.HTSGW.grb i have experimented wi ...Show All
Visual C# DataGrid programming
Hi All I have got problem to datagrid in C# I have created a datagrid and its datasource is a table having quentity, price and total. So what need is when i enter price and total it should be calculted the total . And later i edit the price or quantity total should be reclaculated. I know that i should wite code in a particular event in the datagrid. I worote some code for cellcahnged event. But it is not working it gives the stack overflow error. Can anyone have experienced about similar task please give me a hint for me to continue the work Best Regards Niroshan DataSet ds; publ ...Show All
