angle's Q&A profile
Visual Studio Team System AccessViolationException in Command-Line MSTest
We run our unit tests nightly and last night, a test which succeeds in VS got this exception: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at Microsoft.VisualStudio.TestTools.Common.Tip.Dispose() at Microsoft.VisualStudio.TestTools.TestManagement.Tmi.Dispose(Boolean explicitDispose) at Microsoft.VisualStudio.TestTools.TestManagement.Tmi.Dispose() at Microsoft.VisualStudio.TestTools.CommandLine.CommandFactory.DisposeTmi() at Microsoft.VisualStudio.TestTools.CommandLine.TmiAdapter.Dispose() at Microsoft.VisualStudio.TestTool ...Show All
Visual C# Is there a way to access child node by name instead of location in XmlDocument?
First I like to say that this is my first post here and I like to apologize if I post in the wrong place (please let me do where is the right place). I'm strugleling with this question for several weeks now and all my searches in google, codeproject, ic#code and tons of other forums didn't gave me an answer :( I have the following code: XmlDocument xdoc = new XmlDocument(); XmlNode settings = xdoc.FirstChild.FirstChild; switch ( settings.ChildNodes.Count ) { default : case 3: Settings.NextSerial = Convert.ToInt32(settings.ChildNodes[2].InnerText); goto case 2; case 2: Settings.LastUpdate = Convert.ToDateTime(settings. ...Show All
SQL Server unhandled exception when using management studio
Hi guys am getting unhandled exception when scrolling thru objects in object explorer in sql server management studio. it happens intermittently when i click different objects like diagrams,tables etc., any help on this much appreciated. BTW previously i had RC1 but now i have standard edition.i used get similar error with RC1 also. the error i get is "Unhandled exception has occured in a component in your application.if you click continue, the application will ignore this error and attempt to continue. InvalidArgument=Value of '6' is not valid for 'index'. parameter name : Index" following is actual log details See the end of this message ...Show All
Visual Basic running code on tab change
Hi All, i just need to know how i can run some code when a user changes tabs in a tab conntrol. Thanks, Mark use one of the following events: Private Sub TabControl1_Click or Private Sub TabControl1_TabIndexChanged ...Show All
Visual C# Conversion Problems VB Terms Not familiar
Hi everybody, I have problem converting this vb.net ocdes into C#. Terms like shared, synclock and friend. What is their exact equivalent in C# I got this sample from another forum. I try to attached the codes. some codes: Code: What is shared in C# in method and variable Private Shared Function CheckWindowsNT() As Boolean ' ritorna true se e windows NT o 2000 o XP If Environment.OSVersion.Platform = PlatformID.Win32NT Then Return True End Function What is Friend accessor in C# Friend Sub Add(ByVal zone As CustomTimeZone) _Zones.Add(zone.ID, zone) End Sub What is replacement for SyncLock in C# If Zones Is Nothi ...Show All
Smart Device Development infrared!
Hi. I want to be able to send data (hex codes or whatever) using the infrared ports. I have imported the System.Net.Irda reference and able to access the IR classes. However, I do not wish to connect to a device but rather send data. The device I am sending data to will be a dumb device really, just as a "reciever"... this can be a remote control recieving box or a TV IR reciever for example. IS it possible to do this how I cannot seem to find a way in the .NET classes as it seems you have to connect to the destination then write data to the stream. Thanks! I was working on conversion of the above article to C#, but eventually found th ...Show All
.NET Development How to pass an XML document
In the past I've used Web Services internally and I've always passed objects. But how do I pass an XML document to a third party We've agreed on a schema, but I'm not sure how to represent the XML document in the method interface. Although a string would work, I'd prefer to take the best approach. Thanks, Jake Hi Jake, The trick is to send and receive 'Bare' see below [1],[2],[3],[4],[5] [1]http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolssoapdocumentmethodattributeclassparameterstyletopic.asp [2]http://msdn.microsoft.com/lib ...Show All
Visual Studio Express Editions What form call me ?, if i have many of them....
I create 10 forms dinamically.... << dim f as new frmAny , f.show >>, well, any of these forms calls other form, here i create a value that i need return to the form who call these other form...... How i know who make(which of all the forms) that call to the other form...because only he must receive the value.... Thanks for everything..... Hans, When you show your dynamic forms specifiy the Parent form: In frmMain... Dim fr As new frmAny fr.Show(Me) -or- fr.ShowDialog(Me) Note: Parent parameter is new in .NET 2.0 for Show meth ...Show All
Windows Forms Winforms with Access DataBase ( it doesn't SAVE , modify records )
Hello. I'm developing an application using vb. NET and an Access DataBase ( the application is not big ). I ADD a DataSource, ( Menu/Data/Add new datasource) i select an Access Database, and i select the table i need ( dataset ).. everything seems to be fine. I go to the dataSource Windows to see my DataSets with its table, i drag and drop it into a blank winform, it creates a datagrid with its navigator, every seems to be cool. I run the app, and i start adding data into the datagridview.. i press the Save button to update the change... i close the windows and i open it, and i SEE the changes. BUT when i close the app, and i ope ...Show All
Visual Studio Documentation of RULES files
Is there any documentation about the possible tags in the RULES files for Custom Build Rules beyond the MASM example and the XML Schema The complete documentation is available at MSDN. Look at http://msdn2.microsoft.com/en-us/library/wea2sca5.aspx . Neil ...Show All
Smart Device Development Trouble downloading device emulator
I am unable to download the device emulator. When I click on the link, I get a null file approximimately 3k in size. Not sure what the problem is. Suggestions TIA rlk ...Show All
Visual C++ Semaphore Vs Critical section
What are the advantages of critical section over semaphore or vice versa Also, it should be pointed out that critical sections are visible within a single process only. Mutexes can be accessed across processes. I tend to think of critical sections as sync objects for threads, and mutexes for processes. Here's an interesting article that discusses a faster implementation of mutexes: http://www.codeproject.com/threads/opbmutex.asp ...Show All
Microsoft ISV Community Center Forums print out to .pdf or calling a macro with parameter
Hi, I created an .hta application that generates XML from Excel Sheets and the reverse, the thing is that when I do the reverse, generate Excel Sheets from XML files, i need to print that sheet to pdf. I try creating a macro that receives as a parameter the name of the final pdf file like this: Sub print2pdf(filename) ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, PrToFileName:=filename End Sub and then i call the macro in the .hta application with this command: ExcelAppA.run "print2pdf ""F:\ProjectoFCUL\OENG\PDFs\teste_disc_A.pdf""" (i tried a lot of combinations with double quotes or s ...Show All
Visual Studio Team System Why can't I create a report
When I want to create a report. I got a " rsLogonFailed " error message. The windows application event log is like below ================================================ Event Type: Error Event Source: TFS Services Event Category: None Event ID: 3031 Date: 2005-12-8 Time: 21:27:38 User: N/A Computer: MSRAIT-TRAINING Description: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 2005-12-8 13:27:38 Machine: MSRAIT ...Show All
Visual Studio MSDN Library - Empty Content Pane
Problem: Msdn library document explorer opens but the content pane is empty or the content pane don’t display anyting about VS 2005 documentation (other topics such SQL Server 2005 are displaied) if opened from within VS 2005. Context: I have installed MSDN Library for VS 2005 on a Network share in wich System and Me have Full Control permissions. Tanks for any help Jony Hi Jony, You will have to install MSDN library for VS 2005 on a local machine to work. "Run from source" feature is not supported in MSDN library for Visual Studio 2005. Please install MSDN library for VS 2005 on your ...Show All
