Adriaanse B's Q&A profile
Visual Basic ContextSwitshDeadlock pain in the rear
ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x1b0a08 to COM context 0x1b0b78 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations. When I pause processing, and go into the immediat ...Show All
SQL Server Loading data at Both Ends of a Merge Replication?
Hi gang, We have a database that's using merge replication between two servers, and we need to insert a lot (about 1GB) of data into it. The servers, however, are separated by a 192k WAN connection, so it's impractical to rely on the merge replication to send the data across to the subscriber. Is there a way to insert the data at both ends I can get the data out there on a DVD or a laptop easily enough. Can I load the data into both copies of the database and tell the merge agent that it's not to be replicated Thanks, Matt Thanks Michael, That at least presents us with another alternative. Right now we're looking at unloading the source data to text files (using bcp) and using BULK INSERT t ...Show All
.NET Development Convert string to int
Is there anyway to convert a String to Int say if I have String width ="640"; I want it to assign to int dimension=width I don't want some conversion like String char="A" to integer which become 10. Just a straight conversion Is it possible Matt Sipes wrote: Don't make it so hard on the guy! Parsing Come on! lol string width = "640"; int dimension = Convert.ToInt32(width); Convert.ToInt32() just called int.Parse() anyway. :) ...Show All
Windows Live Developer Forums why adcenter is not available internationally ?
why microsoft adcenter is not internationally available like Google Adsense. At least adcenter will get more publishers like adsense and advertisers too.. do microsoft have plans to limit it only to US or to international availability This is not really an adCenter API question... Anyway adCenter is currently available in the US, UK, France and Singapore and we definitely plan to expand it to many more locations over time. Shai ...Show All
Visual Studio Team System TFSWarehouse not updating
Hi! I have serious problems with my TFS Server and the TFSWarehouse database. I can't get it to update, no matter what I try there is no response when I am in the warehousecontroller.asmx and selects Run. The status shows ProcessingOLAP for a second, but then back to idle. No errors is reported at all in the Eventlog either. Here is my story: This weekend I moved my TFS from one server to a another (Both environment is Single Server Deployment). And everything worked as expected, I runned a warehouseupdate manually during this upgrade, and everything seemed to work. When I came to work today I checked some reports only to find out that the last update of the warehouse was on saturday (the day I did the move). When I saw this I ...Show All
SQL Server There is no direct equivalent to Oracle's rownum or row id in SQL Server
hi, There is no direct equivalent to Oracle's rownum or row id in SQL Server there is any possiblity are alternate thing is exist then please reply regards santosh Both these pseudo-columns are not available in SQL Server. Oracle pseudo-columns do not take additional space in the database and only materialized at the time of query execution. If you want mimic something like rowid you will have to persist it. So you will have additional storage cost, possibly index storage etc. You can also get something like row id using DBCC PAGE command it is not what you are looking for and it is not in any easy queryable format. Others have posted about various techniques to get the information. But the real questi ...Show All
Software Development for Windows Vista Realtime performance of DAWs
I do a lot of audio recording, mixing and processing using Steinberg's Cubase SX 3. I also do a lot of midi sequencing work in the program. I am always on the search for more performance because i am always running out of CPU power and this is especially true for low latency real time sequencing. What i want to know is what approach Vista will have with the digital audio industry does it aim to make improvements to the way audio and midi is processed or how it is supported in digital audio workstations Windows xp has been a good base for DAWs but in my mind it has had some shortcoming as well. Midi timing can be notciably loose during heavy CPU usage and CPU usage can double when the buffer is dropped from 1024samples to 64 ...Show All
Visual Studio Team System Viewing a list of WorkItems from a Project Portal Site
Hi, I know this question might sound somehow strange, but we have a case in which we need to access a work items list for a specific project particularly bugs from a project portal. I know that you can access a specific work item through its id from the browser through the url format: http:// <TFS Server Name> :8080/WorkItemTracking/WorkItem.aspx artifactMoniker= <WorkItem ID > I know also that you can access the project portal through the URL format:: http:// <TFS Server Name> :8080/sites/ <Project Name> /default.aspx The problem is that there is no way to access a list of work items (i.e. Work Item Query) for a particular project from the project portal site !!! Please advise. ...Show All
Visual Studio Express Editions controlling volume level through code
Can anyone suggest a way to programmatically increase/decrease your computers volume level thanks for any help :) I also had the same kind of requirement ! thanks for sharing.. I have one more query , is it possible to get the current value of the master volume and Microphone. Because this sets the volume value but before that can i get the current value or status of the volume(ie between 0-650000) . Thaks in advance ...Show All
Visual FoxPro VFP & ASP.NET 2.0 COM/Interop Problem
hi i need help i developed simple website (just for test) that use Simple VFP Com (one class have one method get the string and returns it's length) i tested the COM in VFP IDE , it;'s work fine i tested the COM in VB.NET (VS 2005) windows project , it's work fine without problem i tested the COM in simple ASP.NET 2.0 , and tested it in the web developer server which comes with VS 2005 , IT;S WORK FINE WITHOUT PROBLEMS but when i turned to ISS , i have problem when i click the command button which called my COM, this problem doesn't appear in web developer server (vs 2005-IDE) the error message is : error retriving the COM Class Factory , 80005004 i use Windows XP SP2 , ISS Version 5.1 what is wrong Greetings ...Show All
Internet Explorer Development Simple Drop-Down Box Query
Hello all, I had seen a "heading" effect in a dropdown box somewhere before, but can't find it now. Its something like this: http://www.b3ta.cr3ation.co.uk/data/JPG/dropdown.JPG (heading1 in the picture) where you can create a heading inside a dropdown box with just a simple html tag, if I remeber correctly. I cant find the code for it now. What html tag or code should I use to display that type of a heading inside a dropdown box thanks in advance VatsaL I found it. It was the <optgrout> tag http://www.w3schools.com/tags/tag_optgroup.asp Thanks for directing me there. VatsaL ...Show All
Visual C# creating arrays
i need to create an array of objects to act as a simple database. So the task is to: Create an array of Student objects called Students that can store: Name, Course and Email of up to 50 students. i am having a little bit of trouble though with the actual array. this is what I have done so far: public class student { student[] students = new student[50]; //an array with 50 elements { new string name[50]; new string email[50]; new string course[50]; } } the details that the user inputs will be via 2 text box and one combo box. I think my syntax is badly wrong. could anyone point me in the right direction, thanks. I am also using MS visual studio .net 2003 I don't kno ...Show All
SQL Server Restoring database from MS SQL 2000 to SQL Express 2005
Hello, I tried to restore a database which I backuped from MS SQL 2000 to SQL Express 2005 but it always failed with the following error message. What could be the problem Restore failed for Server 'SERV\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo) Additional information System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing 'gtp' database. (Microsoft.SqlServer.Express.Smo) Thanks hi, I dont know what error that is How about doing an attach/detach instead regards, joey ...Show All
Visual Studio Express Editions String to number
Is there a quick way to convert the string "2.334.654,23" to the number 2334654.23 I have tried decimal.parse but does not like the format of the string (it works with 2,334,654.23). Thanks, Antonio got it! Decimal .Parse( "-59,23" , NumberStyles.AllowDecimalPoint Or NumberStyles.AllowThousands Or NumberStyles.AllowLeadingSign, nfi) ...Show All
SQL Server File Headers SQL Express
I apparently have corrupted my file header on my database, and then copied it to my backup database. Is there some way 1. to have the machine recreate the file header automatically and fix it so that I can use the database or 2. a back door into the database so that I can get the text files of my database to reconstruct the database from scratch. The error mesage I receive is: Database schema could not be retrieved for this connection. Please make sure the connection settings are correct and that the datase is online. the header for fil c:\inetpub\wwwroot\nappapfinal\APP_Data\ASPNETDB.MDF is not a valide database header. The File Size property is incorrect. Thank you well the ...Show All
