shelanman's Q&A profile
.NET Development Obtain a Stack dump ?
I would like to know if it's possible to perform a full stack dump in .Net Since the VS debugger is basically capable to navigating through the stack granting a visual access to all managed variables of the stack, this must be possible somehow. Such feature would be really useful for various purposes including debugging (post-app crash forensics) but also performance tuning (post-run stack analysis), etc... Does anyone know how to perform a st ...Show All
.NET Development Multithreaded Windows Service (C#)
Hi, I am trying to implement a multithreaded windows service using c# and .net 2.0. I have the Main() method call ServiceBase.Run(new ServiceClass()) which loads the service by instantiating the class and calling OnStart(string[] args). I have read a fair amount of multithreading tutorials but none of them seem to go into much detail. We are still early in the design stage and trying to figure out how this system is going to work. I am very o ...Show All
Software Development for Windows Vista Simple Newbie question
Would WWF be an appropriate way to handle loading data files into a SqlServer database In my job, we interface with the mainframe, and therefore deal with a lot of file-type interfaces. For example, I have a file that is FTPed over from the mainframe every night and needs to be processed. i.e. loaded into my applications database. Currently, I create a windows service that has a file watcher setup on the incoming ftp directory, and then f ...Show All
Visual Studio Express Editions Need Autonum feature in VB / SQL Express Table
Access has an easy-to-use feature for unique Primary Key called "autonum." I don't remember what I used when programming SQL Server 6, but believe there was something similar to autonumber unique ID integers for the PK field in a table. Created my first table in SQL Server Express through VB Express interface. Only item that looks close to Autonum is "UniqueIdentifer." So I used that plus designated the var as a Primary Key and started to ...Show All
SQL Server Funny problem (bug?) using MAX() on SQL Mobile
This sure looks like a bug, but I'm still new... First I create a simple database: SqlCeEngine eng = new SqlCeEngine ( @"Data Source=\My Documents\test.sdf" ); eng.CreateDatabase(); eng.Dispose(); Then I put something in it: SqlCeConnection conn = new SqlCeConnection(@"Data Source=\My Documents\test.sdf"); SqlCeCommand cmd = new SqlCeCommand("CREATE TABLE myTable (ID int, name nchar(10))"); cmd.Co ...Show All
Visual Studio Migrating compartments
Hi, I merged a DSL from the February CTP to the June CTP and I'm running into some problems with the compartment shapes. They are displayed like this . So the elements which are in the compartment are displayed, but the compartment itself isn't displayed properly. Also tried to create a new compartmentshape in a new solution from scratch but this results in the same strange shape. Hope someone can help me out, Gerben. ...Show All
Visual C++ Excel Chart in MFC Dialog
I have been researching this for some time without much luck, so I am hoping to find someone to point me in the right direction! I have a program that displays outputs as graphs in MFC dialogs. Right now, I write the code to draw the graphs, but I think it would be much better if I could display it as an excel chart. I have found ways to automate Excel, but I don't want the user to need to have Excel running when they use my program. What ...Show All
.NET Development update datetime problem even with parameters ...! please help!
I try to update or insert a record to a table with a dateTime type column DOB, my code is in below: DateTime dob = new DateTime(1980,11,21); string updateText ="UPDATE Patients SET FName =@FirstName , LName=@Surname , DOB=@DOB WHERE PatientID = " + lbID; this.UpdateComm.CommandText = updateText; this.UpdateComm.Param ...Show All
Visual Studio Team System Sharepoint Site based on Templates instead of Site Definitions
In the beta 2, the team site that gets created for a project was based on a site definition called TFS. I have a modified process template, where I instructed VSTS to create the team site using a customised site definition which was working fine until I moved to RC1. From what I can see, someone changed the sharepoint project creation plugin so when sites are created in sharepoint, the template that is specified must live in the "Central Templat ...Show All
.NET Development ADO.NET 2.0 bug
I have NullReferenceException when try to execute the following code in .NET 2.0: DataTable tab = new DataTable (); DataRow r; tab.Columns.Add( "ID" ); tab.PrimaryKey = new DataColumn [] { tab.Columns[ "ID" ] }; tab.BeginLoadData(); tab.EndLoadData(); tab.Clear(); tab.PrimaryKey = null ; tab.Columns.Clear(); tab.Columns.Add( "ID" ); tab.PrimaryKey = new DataColumn [] { tab.Columns[ "ID" ] }; ...Show All
Visual Studio How to pass dataset to formula fields in crystal report
hi my crystal report has a formula field,i didnt write anything in the formula editor now i need to pass the dataset values to the formula field i tried like this crystalreport1.DataDefinition.FormulaFields(0).Text="{dataset.columnname}" in that case i got an error saying "The remaining text is not the part of the formula field" Plz any one help how to solve my problem it very urgent Thanx in advance Tinu Hello, Your code ...Show All
Visual C++ How can I download a file???
I want to write a program which donloads a file which is entered by the user. How can I do this in Visual Studio .NET by using C-C++. Can you help me Look at this sample http://www.codeproject.com/internet/urldownload.asp ...Show All
Visual Studio Team System Unit Test Creation Hanging...
I have a project that I try to generate unit tests for (C# project, right-clicking in file to select Create Unit Tests, No test project exists as part of the solution). The Populating Unit Test window revolving progress bar comes up and it never goes away. i've let it sit for an hour and it never finishes. It's a small project with about 15 classes - nothing complicated. I can zip and send the project to someone as it happens every time. Thanks. ...Show All
Microsoft ISV Community Center Forums Problem sorting dates!
Hi, apologies if this is the wrong thread, I have Access 2000 and am running a queyr that conaints the following field: Date, Time, Site, Data Date is in the format dd/mm/yyyy, time is hourly from 00:00-23:00, Sites are Various fields and Data is the values for each hour. The day format I work in runs from 06:00-05:00 the foillowing day, thereby for running over two days. This wouldn't be a problem if it wasn't for the site field. ...Show All
SQL Server Getting data from Access database and copying to SQL Server dataset - Data Type problem
I am collecting data from a number of sources, including an Access database, and merging the data into one dataset that I am then storing in SQL Server using an ADO.NET DataSet object. I am using an Access View to build a DataSet and then merging it into the "main" dataset. The problem I am having is with one of the data types. My dataset has a string column but the Access table has it as numeric. So the merge process does not work. ...Show All
