Jstn's Q&A profile
.NET Development Bad design of ReaderWriterLock ?
The ReaderWriterLock provides powerfull locking scheme enable current readers and an exclusive writer. Nevertheless, IMO the .Net design for the class RWL is a bit weird. Indeed, the methods AcquireReaderLock or AcquireWriterLock require a timeout (either an System.Int32 or a TimeSpan) to be provided. I found this choice both inelegant (I end up writing Timeout.Infinite everywhere in my code) and incoherent with the design of the Monitor class (the method Enter does not require any timeout information). Also, contrary to the MSDN doc, I would strongly discourage the use of timeouts to fight deadlocks (deadlocks must be avoided by carefull l ...Show All
SQL Server Should this be an error rather than a warning?
If you have a package that uses an environment variable for an indirect configuration and the environment variable is not present when the package runs you get the following warning: The configuration environment variable was not found. The environment variable was: "Seer.ConnectionManager.CUECommonReference". This occurs when a package specifies an environment variable for a configuration setting but it cannot be found. Check the configurations collection in the package and verify that the specified environment variable is available and valid. IMO, if the package is expecting to find something and cannot find it then ...Show All
Visual Studio Team System Multiple workspace cloaking for configuration files
Hello, I have a simple web application with the development web.config. The configuration files contains settinngs that changes from the development to testing environment, then I created a branch of the web.config (web-test.config). In the "development" workspace I cloaked the web-test.config in order to not download it during the development. Then I added as active the web.config. When I need to switch the config file to the test one I cloak the web.config e uncloak the web-test.config setting the local file to web.config (map). This process is quite expansive since it requires to set the local path each time I clock/uncloak. Then, I tried ...Show All
Visual Basic Debugger is extremely slow
Has anyone else experiance really slow debugging in VB.Net Beta 2 Yesterday was the first time I used it to step through code line by line and I was shocked. It's a simple project with one form using a datagridview and it was horrible. We are talking a 3 - 5 second delay every time I hit the F10 key to step over... Thanks, Aaron I have found a workaround posted here: Would this be sufficient for your team to try out (or have 1 of them maybe try this out to see if it solves the problem) http://lab.msdn.microsoft.com/ProductFeedback/ViewWorkaround.aspx FeedbackID=FDBK31126#1 The other workaround is to reset y ...Show All
.NET Development variable name from string?
If I have an int like: int i = 1; and I have a string representing int i like: string name = "i"; is there a way I can turn the "i" into a variable name to access it's value Not really. You can put all int's into a dictionary and access them by name: Dictionary< string , int > numbers = new Dictionary< string , int >(); numbers.Add("i", 1); numbers["i"] += 41; Console.WriteLine(numbers["i"]); // prints 42 Why do you want to do this, anyway Maybe there's a better solution... ...Show All
Visual Studio Express Editions Help with TextBoxes
Hi, I'm a Newbie. Suppose I have 20 Text Boxes; say TextBox.1 to Textbox.20. How can I access or add data to these Text Boxes by using a variable (e.g. put 5 in Box 5, put 9 in Box 9, etc.) I don't want to write a separate piece of code for each individual Text Box. Thanks, David. Hi Mattias, Could you give me a hint about how to create such an array Something like : Public MyTextBoxes (20) ... I'm familiar with simple numeric arrays but I really have no idea how to create an array of textboxes. Thanks, David ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- Format of the initialization string does not conform to specification starting at index 0. --------------------------- OK --------------------------- And more, the Advanced button is dis ...Show All
Architecture biztalk as a workflow
I have started doing research on Biztalk 2006 for its BPM/workflow use. I need to know the answers to the following at the earliest.It is not possible without help from all of you.please contribute with your answers to as many questions as possible.You have to say only yes or no in most cases 1.Is it able to use .net classes created using VS.net as activities inside workflow. 2. Can we invoke workflow created in it being called from .net assembly 3. Are the workflows created in biztalk available as a webservice 4. Does it have logging support and reporting features for workflows. 5. Is transaction and entire rollback supp ...Show All
Windows Forms Problem with MS Web Browers control
I have a page loaded in my web browser control and I am try to allow the user to click on various pieces of text or inages and detect what they have clicked on. At the moment I am trying to do this my modifying the document class to add anchor elements. however when I run: mshtml.HTMLAnchorElementClass b = new mshtml.HTMLAnchorElementClass(); I get the  ...Show All
Visual Basic immed?
In vb 6 I could use the immedaite window to do something like form3.DataGridView1.Width to see the width of a column... then form3.DataGridView1.Width = 800 to set it and see if it looks right.. then I'd write a procedure to set up data grid appearance. How do I do that in vb.net Getting furstrated... Brian I'm back (or, most of me, anyway -- part of me is still 11 time zones to the east ). So, anyway, when you pause the application (if I understand correctly what you're doing), you're pausing it at an arbitrary location. The immediate window and watch windows are scoped to wh ...Show All
SQL Server Calculate Median Value
I am converting a report created using Crystal Reports 10 to Reporting Services. The report contains a list of items with dollar values. The original report displays both the Average and Median value. I can easily ( using avg(Field1.Value!) ) determine the average but cannot find a function to determine the median. How can I add the Median to the report Thanks in advance, Greg Thanks very much for that, I managed to get it working. However I was actually trying to get it to work for a graph - any idea where I would place the “ =Count(Code.addToMedianArray(Fields!Total ...Show All
Visual Studio Team System Unable to connect to SPS error when creating new team project in December CTP
TFS December CTP single server config installed according to inst. guide. Error when creating new team project Unable to connect to the Windows SharePoint Services at LSTST http://localhost:8080/services/v1.0/Registration.asmx/GetRegistrationEntries : < ServiceInterface > < Name > WssAdminService </ Name > < Url > http://LSTST:17012/_vti_adm/admin.asmx </ Url > <-- This link is working on client </ ServiceInterface > http://localhost/Reports/Pages/Folder.aspx <-- working on server http://lstst/Reports/Pages/Folder.aspx <-- working on client http://localho ...Show All
Visual Studio Tools for Office Error while locking columns & cells
Hi, I have one ListObject on ExcelSheet defined as: Microsoft.Office.Tools.Excel.ListObject myListObject = this.Controls.AddListObject(this.Range["A10", missing], "myListObject"); At the designing phase there is no column present into listobject. But when I run the application, data into listobject appears as following: ColA1 ColB1 ColC1 ColD1 ColE1 .............. dataA2 dataB2 dataC2 dataD2 dataE2 ........... dataA3 dataB3 dataC3 dataD3 dataE3 ........... I want that some column of this listobject should be locked to the user. Suppose I have locked column "ColB1" & "ColE1" of the lis ...Show All
.NET Development Stored Procedure parameters
Hello friends. I am a software engineer working for a software company. Recently I have developed a software for vb.net and sql server which reads database metadata, stored procedures, foreign keys, stored procedure parmeters and generates full featured data access code for vb.net and sql server. It generates full, bug free and highly optimized code for playing with database tables, stored procedures, etc. Now I am extending this software to support Oracle database. I am able to read table metadata, read oracle stored procedures but " not able to retrieve parameter information from stored procedure in oracle ." DeriveParam ...Show All
Visual Basic WebBrowser
How can I make my browser control loads local html files I tried Navigate but it asked for internet access (per my firewall). Is there anyway to make the browser offline at all times Would that work for any web page. Even if it had external images or css or js files I tried this also: Browser.Navigate("file:\\\index.html") That makes it not ask for internet access but it says it cannot find the file. And the file is in the same dir of the program. Any reason why it says that ...Show All
