Steve1999's Q&A profile
.NET Development XmlSerializer deadlock/timeout in .NET 2.0
I have experienced problems with the XmlSerializer in my application. Instantiating it causes a 10 minute timeout because the csc process seems to be deadlocked. The error is new since .NET 2.0. The problem only occurs in a slave process, not in any of the main processes which are started directly as services or from the shell. So what special about the slave process It's a .NET console application started fom a .NET service with Process.Star ...Show All
SQL Server memory management
Hi all, I'm probably missing something here but I need to know why AS2005 is not using the maximum memory available on our production server. I have a 3.5 GB cube on our server and the process msmdsrv.exe is only using around 100 mb currently. When multiple users are hitting the server at the same time, msmdsrv.exe goes up to around 650 mb but will eventually return to 100mb. There is actually 4 GB of memory available on the server, is ...Show All
Visual Basic What's the point of Finally?
I was wondering, what is the point of having a "Finally" section in a Try-Catch-Finally block I was taught that a Finally block is for where you want the code to end up regardless of if an exception was caught or not. But if that's all we want to do, why not just let it continue after it falls out of the entire Try block For example, what's the difference between these two sections of code Sub FileCopyWithFinally() Try   ...Show All
Visual Studio 2008 (Pre-release) OnLeftButtonDown on TextBox - Exception
Hi guys, I have a "NullReference Exception was unhandled", In Troubleshooting tips - Use the "new" keyword to create an object instance. In Details - System.NullReferenceException when I try to put the Linear Brush to the text box. <Window x:Class="Temp.Window1" xmlns=" http://schemas.microsoft.com/winfx/avalon/2005 " xmlns:x=" http://schemas.microsoft.com/winfx/xaml/2005 " > <S ...Show All
Software Development for Windows Vista WWF Beta 1.2 not installing properly
Hi, I tried today to install WWF Beta 1.2. However, after starting the setup, accepting the EULA, checking all 3 boxes, and selecting Install the GUI goes immediately to the final page telling me that the installation was succesful. However nothing is installed. I have the VS2005 RTM version/Windows XP SP2. The log file stops at [11:51:45 AM Error] c:\depotsetupv2\private\common\setup\wizard\exe\progressdlg.cpp(1109): FAILED hr = 80070422 = ...Show All
.NET Development Ignoring native dll's memory problems
Hi, I am calling some native c dlls in my .net app. Sometimes due to bugs in the c dll, I get this exception in .net code: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Since we do not have access to the code of this third party dll and it will take a long time for them to fix it, is it possible to tell .net CLR to ignore memory exceptions in native dlls T ...Show All
Visual C++ Rebuild using shared precompiled headers doesn't work
To combat a long build time, I consolidated common headers across 20+ projects into a single precompiled header, to be shared. The pch file is generated from a separate project (pch.vcproj with stdafx.cpp/h), and it works with clean builds and incremental builds (from editing one of the files belonging to the 20+ projects), but I get compile errors when I choose Rebuild. Before presuming a bug, I'd like to ask the forum for he ...Show All
SQL Server Automatically Fire Trigger Or Procedure in sql server 2000
Hi Guys I want to automatically fire a trigger or Procedure every day 8:00 P.m. How can we achieve this is there any way in sql server which checks the time regularly and can fire the trigger or we have to write a batch which runs at the specified time and try to create a situation so that the trigger is automatically fired plssssss get back with solution.. this is very urgent.... thanks in advance... Krishna In Enterprise Mana ...Show All
Visual FoxPro Page count for report group
Hi, I am in need of counting pages for groups in my report. When I try to count this in OnEntry / OnExit events, it does not work for me... Can you please suggest me a way to do this Thanks for any help... Solved with custom reportlistener class and its AfterBand() and Render() methods... ...Show All
Visual C++ STL related Error:2664
error C2664: 'std::_Vector_iterator<_Ty,_Alloc> std::vector<_Ty>::erase(std::_Vector_iterator<_Ty,_Alloc>)' : cannot convert parameter 1 from 'CUndoAtom **' to 'std::_Vector_iterator<_Ty,_Alloc>' RangeUndoAtoms_t::reverse_iterator iter ; m_rgUndoAtoms.erase( &(*iter) );// m_rgUndoAtoms is of type std::vector<CUndoAtom*> Please suggest a solution. You need to use an iterator for the erase argument in order ...Show All
Visual Studio VSS to VS2005 - it did work, now it doesn't
Starting last week my VS2005 SSRS project stopped being able to interact with VSS. The first issue I noticed was VS2005 crashing when i made any change to a dataset. I'm being literal here... Open a report, click on Data tab, click to position cursor, hit space bar, get error and VS2005 restarts. Sorry, I don't have the exact error, it was related to VSS though. This behaviour doesn't happen currently since I've now monkeyed with it enough that ...Show All
Visual FoxPro Context sensitive help in VFP
Hi! I have a little problem with context sensitive help. I have a .hlp file(SET HELP TO MyHelp.hlp) and I assigned context Id's for calling the file. But it doesn't work. But if I set WhatsThisHelp Property to true and assign a WhatsThisHelpId all works fine, as I want it to (pop-ups appear when I press F1). I wonder what the problem is. Thanks ...Show All
Visual C# Order Matters
Today I found what was probably not the best of coding but for sure should have been flagged by the compiler and not the exception handler - especially the type of exception. Here's my class: public class foo { // ... other definitions here public static readonly Font CellStyle_UnacknowledgedAlarm_Font = new Font (CellStyle_Font, FontStyle .Bold); public static ...Show All
Visual Studio Express Editions MSAccess Database coding, OpenDatabase
Hi, I use to be quite good using recordsets and so to get to my databases. Any samples somewhere how to do the following it in vb2005: dim dbPictures As Database dim rsPictures As Recordset Set dbPictures = Workspaces(0).OpenDatabase(dbTxt) Sql2 = "Select * from Pictures order by id" Set rsPictures = dbPictures.OpenRecordset(Sql2, dbOpenDynaset) with rsPictures while not .eof .movenext wend end with rspic ...Show All
Visual Basic Radio Buttons within frames
I am trying to set several frames with radio buttons in each frame. I currently have two frames with 3 option buttons in each. I have the understanding that I can have one button in each frame with the value set to true. I can not make this work. If I select a button from one frame then go to select an other option button from the other frame the previously selected option button becomes selected. I have tried recreating the buttons and frame ...Show All
