ramesh_1031's Q&A profile
.NET Development GCHandle.Free explanation
Does GCHandle.Free dispose of the object being freed if the object implements the IDisposable interface Peter Ritchie wrote: No. A GCHandle is a garbage collector handle, not an object reference. Freeing a GCHandle does not directly free the memory occupied by the object for which it a handle for. I wasn't asking whether it freed the memory occupied by the object for which it had a handle but rather whether it called IDisposable.Dispose on that object. Obviously calling the finalizer and freeing the memory is done by the GC. However I take it from your answer that it wisely does not call IDisposable.Dispose, especially since other references still might exist for the object, and I thank you for ...Show All
Windows Forms Windows installer launch condition
Hi Guys, I am trying to create a setup and deployment project in VS 2005 for a windows form project. A couple of dependencies for my application are - 1) .NET framework 2) ActiveState Perl 5.8.8 I have been able to successfully add the .NET 2.0 framework check to the launch condition. I've also added the Active Perl check but its not working right. I mean, I get a "perl not found" error even on systems where the perl is installed. How should I correct this behavior Its probably something in the Condition check that I'm messing up. Here are the properties I have for perl launch check - (Name) ActiveState Perl Condition Installed InstalllUrl <url> Message Perl could not be found. Please install ...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 open it, i see that NOTHING was SAVED. i was testing and the problem only happens if i use an Access ...Show All
SQL Server sql connection
hello, Is it possible to use TELNET(from the client in LAN A) and access database instance at(sql Server at LAN B) . I meann to say is, can we use TElnet over the internet to access the instance. can anybody helps me Thanks in advance YOu can open a port to SQL Server via telnet, it questionable what you can do with telnet on the instance. You can also use any query tool to access the appropiate port on the SQL Server. If the Server is behind a firewall you will have to do a port fowarding, opening the firewall and redirecting the request to the sQl Server. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms how to represent 2 D data in Grid View?
Hello, Can anyone help me in this.. Is there any way out to display 2D data in a Grid... Means a data which depends on 2 entities... Sort of bar chart data... or let say Matrix form.... Of course it's possible to create different row headers for each rows.Maybe this thread make some sense to you. ...Show All
SQL Server Adding columns to a Matrix report that don't belong to the matrix columns groups
Can we do this Adding more columns in a matrix report that don’t belong to the columns drilldown dimensions… That is, for example, having the following report: Product Family Product Country City Number of units sold Then I would add some ratios, that is, Units Sold/Months (sold per month) and other that is the average for Product Family (Units Sold/Number of Product Family), for putting an example… some columns should be precalculated prior to the report so do not get into it, the real problem I don’t see how to solve is adding one or two columns for showing these calculated column that doesn’t depend on the column groups but they do for the r ...Show All
.NET Development PLEASE HELP-AuthenticateAsClient: A call to SSPI failed - error message not helpfull.
Hello People. I am trying to use SSL Stream to connect to a domain registrars EPP interface. I have created the correct certificates however before the code even looks for the certificate I get an AuthenticationException when I call AuthenticateAsClient() No matter how I use AuthenticateAsClient() I get the following error: A call to SSPI failed, see inner exception.The message received was unexpected or badly formatted. What does that mean I have tried: Stream.AuthenticateAsClient(server, clientCertificates, enabledSslProtocols, checkCertificateRevocation) and Stream.AuthenticateAsClient(certName) How can I find out what this error means no matter what Certname or server name i use I get the same error. Here is my code: Imports System Im ...Show All
Visual Studio Express Editions Script Control Help Please
Good morning, I hope to get some advice, council and wisdom about the MS Script Control 1.0. I have not been able to find a reference that deals with implementing this control in a VB 2005 application. In my application I want to evaluate an expression which has been entered in a TextBox and include a variable from VB. Here is the code that has been giving me a problem. Dim tbText As String = """String1 "" & V1 & ""String2""" Dim txt As String = "GrandpaB " ‘mScriptControl.AddCode("V1=" & txt) mScriptControl.ExecuteStatement( "V1=" & txt) TextBox1.Text = mScriptControl.Eval(tbText) In the app ...Show All
Visual C# Database best solution.
What is the best solution for a program, storing settings, logs...., is it MS Access database file If your app will not store to much data, you can use xml file as data store. Create xsd schema with all columns that you need in the table or tables, and use generated typed dataset to read and write xml data file . ...Show All
Software Development for Windows Vista Add/Remove Programs in Windows Vista
Add/Remove Programs in Windows Vista So you say you can't find the Add/Remove programs function in Windows Vista Well, in Windows XP Add/Remove Programs is in Control Panel under an icon of the same name. But in Windows Vista it has been changed to "Programs and Features". To locate the Program and Features function: 1. Click Start and choose Control Panel, 2. In Control Panel double click on the "Programs and Features" icon. 3. Here you can find all the programs and items which are installed in Windows Vista. 4. To remove any of them click once on the program you want to uninstall and then click on Uninstall/Change and follow the prompts. Now wasn't that easy! Yes that was very easy. I knew it was ...Show All
Visual Basic Question about BackgroundWorker
I have a small program that will allow a user to select a handful of files (installers) and it will install them automatically. I have it setup now like so: Dim Proc As New System.Diagnostics.Process Proc = Process.Start(Files(Int), "/VERYSILENT" ) Proc.WaitForExit() I have that inside a loop that goes through each file that was selected. This method causes a delay for my program as it freezes until the install has finished. I was thinking about using a BackgroundWorker to do the installing instead. The thing is, I cannot figure out how to only install one file at a time with the background worker. If the user chooses 20 files I don't want all 20 to start at once. I tried adding the above code in a DoWork event for m ...Show All
Windows Forms Problem with Automatic Text Wrapping and MeasureString
I've been trying to create my own Chart control, and I've been having a problem printing the labels against the x-axis. I divide the x-axis into the number of elements being displayed on the chart. I then measure the width of the text of the labels, to make sure they fit, using MeasureString and passing it a RectangleF to work out if all the characters fit in. My problem is that when I call MeasureString, the charactersFitted parameter comes back with weird information. Say I meaure the string "30th Birthday Celebrations", and "30th" and "Birthday Celebrations" are printed on 2 lines (the second only saying "Birthday Cel". The MeasureString returns 14 characters fitted and 2 lines I can't ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My 1-week XNA evaluation
Hi! I've been evaluating XNA Game Studio Express for about a week now. Writing this little report to get some thoughts and ideas out of my system. If you just want to download the game I made, here it is: http://www.artplant.no/Johan/XNATest.rar Everything is original and copyright (c) Artplant, except for the sound assets and the sound code, which was ripped from the SpaceWar sample in XNA. Someone please give me a heads-up if that's illegal for some reason, and I'll take it out. You'll need a shader model 2.0 GPU to run the game. Also, you'll need a 360 gamepad or similar. (Don't know if XNA is compatible with other pads yet.) Both of the thumb sticks fire cannons independently when pushed. Enough of that, here's a quic ...Show All
Visual Basic Can not open a form with a User Control on it.
I have a number of user controls setup in my class library and I have sucessfully using these controls, however I can no I have added one of the controls to a second form and now I am not able to open either of these forms in designer I have installed the Service Pack 1 for Visual Studio 2005 but this has not helped. I am not receiving any error message the application just comes back as Not Responding. This seems to be if I have a user control on more than one form only one form with the user control can be opened in design mode at any one time. Hi, Janine, Sorry about the inconvenience of this! Without understanding the nature of the specific user control, it will be hard to dig into th ...Show All
Visual Studio Team System Moving data-tier to SQL Cluster - any best practices or walkthroughs?
Hi. In the installation guide for Team Foundation there is a page titled: "Checklist: Team Foundation Server Cluster Deployment". One of the steps is: "Configure a single quorum cluster that supports two nodes configured for active/passive mode." Q1 : I assume this is supposed to be understod as "two nodes or more..:". Is this assumption correct We are planning to change our configuration from a standard dual server installation to a installation with a SQL Server cluster with three nodes. Q2 : Are there any "Best practices" or "Walkthrough" for moving the databases to a SQL Server cluster Regards, Carsten-S The "two nodes" refe ...Show All
