AndreiR23's Q&A profile
.NET Development OutOfMemoryException and Garbage Collection doesn't work how I thought it would
I designed this code snippet to test garbage collection. It doesn't do what I thought it would do though. The idea was to allocate a chunk of memory, but to discard the reference to that chunk by letting the variable that holds the reference fall out of scope. When it runs out of memory on the heap, I expected the garbage collector to run automatically and that the allocation would succeed. But there are a couple of weird things that happen. First, here's the code: while ( true ) { int successes = 0; try { & ...Show All
Windows Forms dataGridView - RowHeader slection problem
If I select a row in my dataGridView by clicking on it or by navigating to it by kexboard arrows - the appropriate rowHeaderCell is also selected and an arrow appears in that row. However, if I select a row in my code via dataGridView1.Rows .Selected = true ; the row is selected but the appropriate rowHeaderCell does not display the arrow in that row. Instead, the arrow is displayed in the row that was selected before. How can I move the arow in my code Tnx for all the answers. If SelectionMode of your DataGridView is FullRowSelect then this will work: DataGridView.CurrentCell = DataGr ...Show All
Visual C++ How do you develop an interface for an existing C++ program?
Hello Everyone, I have a large and complex program, which to be honest I dont fully understand, that I have to develop an interface for. I understand how the program works to an extent, but the level of C++ used in the program is way beyond me. It has to do with genetic programming, programs writing programs, so I dont think that im going to be learning how to do that anytime soon. Although I am alot better with VC++ than C++ and can comfortably develop simple interfaces to perform a variety of functions. I have been working my way slowly through sams VC++ for beginners and have learned quiet a bit, although I am still mos ...Show All
Visual Studio Visual SourceSafe Internet... ?
Ok... I was just wondering... I need to implement the web pages of the SourceSafe all by myself ! Isn't any default pages for that Hopefully I'm wrong... Please tell me that there is some web-interface with SourceSafe without me having to do it all by myself... ok Moshe. I did install certificate either on the server or on the client. I tried to connect from another client machine and then I've got this error: "The SourceSafe web service was unable to preocess your request. The selected language for non-unicode programs in your computer doesn't match the one selected on the server" Regarding the SSL: I've done all this before. A ...Show All
SQL Server SQL Server express starting as NETWORK SERVICE!!
Hello All, I am installing SQL Server Express from the command line using the following parameters INSTANCENAME=MSSQLSERVER ADDLOCAL=ALL SECURITYMODE=SQL DISABLENETWORKPROTOCOLS=0 SAPWD=TEST After the install is done I start the service form the command prompt using start mssqlserver I see that the SQL Server service has started under NETWORK SERVICE account!!! when the documentation i Read on MSDN says it starts in Local System account Can any one explain me the possible reasons Thanks The default is Network Service which is a lower privileged account then Local System. It is a little safer by default this ...Show All
SQL Server Cursor with parameters?
Hi, I'm kinda stuck with my function I'm creating. I want to iterate over a cursor in a cursor. I've found an example in the documentation of SQL server. The iteration is no problem for the first cursor, because that cursor is built up with a plain sql-statement with no parameters...however the second cursor should be executed with parameters which were fetched from the first cursor. I'm coming from Oracle and there it's very straightforward. Come'on you can't be serious SQL server isn't capable of working with cursors and parameters Maybe I'm just doing it wrong Help SQL Server uses cursor based ...Show All
Visual C++ ClassView - missing classes
I have a project with ~250 classes and some of them are not displayed in the class view. Sometimes a class that I haven't touched for ages disappears. Sometimes a class that was not displayed - miraculously appears in the ClassView. If I add the .h and .cpp file of a class that is missing in the ClassView to another project - the class appears in the class view. But removing and then adding the files in my current project does not help. I am using Express Beta 2 Am I the only one who has such problems P.S. I am not posting this as a bug report cause this is hard to reproduce without giving my whole project. ...Show All
SQL Server Strange performance problem or bug in SQL 2005.
Hi, I execute a stored procedure in my database from code using DataReader or DataTable from my ASP.NET 2.0 application. No matter what object data are put into it take about 12 s! Performance is very slow even terrible, because before using SQL 2000 database it was 200-300 ms. I fought it is a bad execution plan, but when I execute the same procedure usinf Management Studio it takes 100 ms! I have tried many times to execute it in these 2 different ways and results are always the same. When I look into profiler it shows: for execution from my code: Batch, CPU about 12000, Read 602975 for execution from Management Studio: Batc ...Show All
Windows Forms WinForms and mini-database
Hi all, I want to build a small stand-alone VB.NET WinForm application to be sold to the general public. Let's say it will be something like Quicken bookkeeping, in that it will have user input forms, etc, and will save check entries to a mini-database. My question: What do I use for the mini-database MSDE I'm comfortable in building client-server  ...Show All
.NET Development DataLayer.Primitives Public Version Released!!!
Hi, It is my best post in my blog. DataLayer.Primitives is very useful code block oriented to DataLayer in .NET Applications. http://guydotnetxmlwebservices.blogspot.com/2004/11/datalayerprimitives-and.html Download source code!!! ;) Javier Luna http://guydotnetxmlwebservices.blogspot.com/ Hi, Those visitors of this post who dont speak spanish I reach the following link to them. DataLayer.Primitives - Readme! http://forums.microsoft.com/msdn/ShowPost.aspx PostID=1389 Of where they will be able to review the brief documentation of the DataLayer.Primitives in english language. Cheers, Javier Luna http://guydotne ...Show All
Visual Studio Replacement Disk - Visual Studio 6
How do I obtain a replacement copy of Visual Studio 6 Necessity dictated that U reformat my hard drive. When I tried to reinstall VS 6, i discovered that the 1st disk was damaged. I have the original box that it came in, but not the sales reciept. A couple of years ago, my office developer disk got scratched. MS sent me a new disk for the price of the media, US$5. Give sales support a call. ...Show All
Visual Studio Team System Why Cant I enter start date and finish date on tasks work items?
Those fields are disabled by default, and I would like to make some reports if I finish for example a task after the finish time. You can use the witexport and witimport tools found in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE to make changes to individual work items. Type in the tool name at a command prompt and you would see their usage. Hope this helps. Rahul (wannabe MSFT) ...Show All
Windows Forms Reading the Name from Value in ResourceFiles using Resource Manager
Hi I am aiming at reading the Name from Value in ResourceFiles using Resource Manager. Let's say I have an application which uses 3 Resource files say R1, R2, R3. These resource files have say 2 name value pairs. N1- V1, and N2-V2. Now I want to get Name N2 for Value V2. Generally , We use N2 to get value, V2 using Resource Manager. But is there any&nb ...Show All
Visual Studio Express Editions what's wrong with this?
WebBrowser1.Url = textbox1.text in vb6 i think it would be ok, so what's the prob in the 2005 Express Edition thanks. Shaul. oh yeah. . . WebBrowser1.Url = new Uri( "http://www.microsoft.com" ) ...Show All
Visual C# When Using a "C" style comment /**/ how do I disable the automatic * on every line?
How do I disable or stop the IDE from adding a new * on every line after hitting the enter key when I am creating a "C" style comment /* * I don't want this line to start with * * I don't want this line to start with * **/ Like This: /* My comment is now easier to read. Because, there is no * in front of every line */ First of all I must say that I sofar like the VS2005 environment a LOT! Good job! If you consider the possibility to modify the apperance of comments then I also hope that you consider the possibility to modify the indentation of the comment. I, for example, usual ...Show All
