SanK's Q&A profile
Audio and Video Development The 'priority' attribute is not declared.
In the samples and my own tests I get the error: ERROR: Invalid attribute "priority" at row 13, char 36: The 'priority' attribute is not declared. When running the validator. Is this a bug in the validator Here's line 13 for example: <PlaylistApplication description="Test" language="en" src="file:///dvddisc/ADV_OBJ/Manifest.xmf"> 13 <PlaylistApplicationResource priority="1" multiplexed="false" size="500000" src="file:///dvddisc/ADV_OBJ/Manifest.xmf" /> <PlaylistApplicationResource multiplexed="false" priority="1" size="500000" src="file:///dvddisc/ADV_OBJ/Script.js" /> <PlaylistApplic ...Show All
.NET Development .Net Web Services
Help Help Help. This will be an easy question for you veteran .Net developers. Here goes. I created a simple web service to add 2 numbers on machine A. I compiled it to create the .asmx file. In Visual studio 2.0 I did a "View in Browser and the service works great. I then created a windows app to call the web service on machine A. I created a web reference to the service from the windows app. I called the web service and it worked perfectly by instantiating the service to consume it. I then tried to create the same windows forms application on machine B. I can't get the windows application to see the web service on machine A even if I try to reference it using the ip address of machine A. Any Ideas. I've checked ...Show All
.NET Development How scalable are Multicast Events?
I have a control that has many controls. Let's say they can reach over ten thousand. (This is not an edge case for my app). My parent control wants to tell its children to toggle their state based on values passed into a function. The parent control has a collection of its children that are currently toggled on. However, the only way for it to know if a particular child in the list needs to be toggled off is by iterating through the collection and checking if it doesn't fit within the parameters of the function (or it can just toggle them all off and toggle them back on if they do fit). The function receives as a parameter a range numbers to iterate and the numbers match up with the child controls that need to be toggled on in O(1 ...Show All
Visual Studio Team System avg page time
I have run loadtes for 17000 & 2588 users for 1 hour. . and the avg.pagetime for 17000 is 14.5 sec and for 2588 users is 20.2. i have a clarification when we increase the load the av.pagetime will be high. but my reulst are showing these valus. what wil be the factors for getting thse results. Initally i have completed 17000 users . parameters(i.e counters selections are same for both the tests). Duration is 1 hour for both the test. Please let me know if any information is required. ...Show All
.NET Development Async File Copy
Hi everyone, I'm sure this has probably been asked before but I couldn't find it using the forum search. Is there a way to copy a file asynchronously (with a progress callback/delegate) I've tried googling, but just keep getting articles complaining how the File.Copy() isn't asynchronous. I managed to use the WebClient class to copy files how I want but it doubled the time it takes to copy files which is unacceptable since I'm copying large numbers of large files (100x 1 gig files). I believe it can be achieved using the WINAPI FileCopyEx but this results in unmanaged and messy code. Thanks in advance. Yes, use BackgroundWorker. But try using File.Copy(), using FileStream makes it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Possible that Update() is multi-threaded?
I'm getting a REALLY strange exception. It only occurs when I run my game via Ctrl-F5 (rather than F5) and even then I can't always reproduce it. It's in a bit of code that is simply a foreach-loop on a List<> of Particles and calling Update(elapsed) on each of them. The error occurs on the first line of Particle.Update() which is "base.Update(elapsed)" which calls the Sprite class' Update()... which has no indexes in it. At the end of the loop I look for any particles that need to be removed from the list and do so. Based on what little debug information I can get, it looks like it's an internal error in System.Collections.ListDictionaryInternal... Count is zero, which pretty much should never be the case... there's alw ...Show All
SQL Server Hidden member causes Excel to throw error
Hi, I have an AS2000 utility dimension that hold one calculated member and one 'dummy' member for the fact - dimension join. I use it in a virtual cube to achive currency conversion and I implemented the utility dimension to be able to use it with the aggregrate function that Excel uses on multiple filter selections. I want to prevent this dummy member to appear in my Excel pivot table. I have tried to use the setting 'Hide member if -No name' and it works great when I browse my cube in ASManager but when I browse it Excel 2007 I get a popup message saying something like 'member could not be found...' Any idea Thanks,Christer It has been some time since I have worked with AS2000 but I think th ...Show All
Smart Device Development How to hide start menu?
Hi I need to prevent user acces to system (running another application and system). I can remove minimize box, but system menu is still visible and user can do anything. Can I hide start menu or have you some else ideas how to do it (PDA WIN CE .NET 4.2) thanks Palo. 1. Make the app. full screen 2. Remove control box and minimize/maximize buttons 3. Hide/show the task bar with this code: private const int SW_HIDE = 0x00 ; private const int SW_SHOW = 0x0001 ; [DllImport( "coredll.dll" , CharSet=CharSet.Auto)] private static extern IntPtr FindWindow( string lpClassName, string lpWindowName); [DllImport( "coredll.dll" , CharSet=CharSet.Auto)] private static extern bool ShowWindow(I ...Show All
Visual C# Getting cpu usage...PerformanceCounter not working!
Hello all,<br>I'm trying to get the cpu usage using the PerformanceCounter class as described in the thread: <br> http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=774833&SiteID=1 <br> The problem is, whenever I run the program, it throws an exception stating that the category is not found. I don't seem to have the Processor or Memory categories on my system. I checked the Performance Monitor console, and neither category is present. I hope that made sense.<br>BTW: running fully up to date XP Pro SP2. Can somone please help me out and tell me what I'm missing! I seem to be the only one with this problem. Thank you Got it! Just a shot in the da ...Show All
SQL Server Analysis Services Calculations
Is it possible to group/ arrange Analysis Services Calculations in cubes into separate Folders In other words similart to measures which can be grouped in to folders I would want to know if we can group these calculated meassures into folders. Thanks In the calculations tab you can see a very small properties button, called calculation properties, that you can click on. This is in BI-Dev Studio. HTH Thomas Ivarsson ...Show All
SQL Server Simple Textbox question
I have a textbox that contains enough text to fill up 3/4 of a page. If i place the textbox halfway down the page (where the whole thing wouldnt fit) it will take the textbox and place it on another page. Is there any to way to make it use the whitespace on that page and continue the textbox on the next page ...Show All
.NET Development How can I make multiple regex check with string values?
I am using VS 2003 and Regex. I wanted to spilt the text from richtextbox if it matches newlines or semicolon or "/" or "\n\x20*\n" etc few sequences. If any of these matches, I need a split For single sequences, I use this Regex* regxterm = __gc new Regex(S"\n\x20*\n"); // very good \20=space, \u0020=unicode space String* array[] = regxterm->Split( this ->richTextBox1->Text); for ( int i=0;i<array->Length;i++) {MessageBox::Show( this ,array ,S"Test"); } How can I make multiple regex check with string values Thanks, I got the solution from http://www.dotnetcoders.com/web/Learning/Regex/regexobject.aspx Here is the code: private : void ...Show All
Smart Device Development Color a Cell in Datagrid depending upon its value (For Pocket PC)
As the Subject says, im trying to color a cell in a Datagrid depending upon its value, i have tryed to override the paint method with this code, but most of those functions doesnt seen to Work with the .NET Compact Framework 2.0 SP1. Function GetColumnValueAtRow doesnt work, LinearGradientBrush doesn't work too.. so, is there anyway i can Color a Cell using Compact Framework 2.0 SP1 Any Help is apreciated. using System.Drawing; using System.Windows.Forms; public class DataGridColoredTextBoxColumn : DataGridTextBoxColumn { protected override void Paint( Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, Brush backBrush, Brush foreBrush, bool alignToRight ) { // the idea is to conditionally set the foreBrush and/or backbrus ...Show All
Visual Studio Express Editions Program info
Look at this image. http://img239.imageshack.us/img239/937/1dp2.png see where it says Application1 \ Home how can i change this ...i looked all over but cant find Lolsi just found it ..thx to u i looked closely and found it ..but its in propertes->Application->Assembly information thx ;) ...Show All
Visual Basic FileLogTraceListener not writing to file beyond a constant max-size
Hi Friends, I've been using FileLogTraceListener class to write log data to files. Since the data being written is continuously generated, I set the file to be created on a daily basis. I do not set up the maximum size for the log file. The problem is - My log files do not seem to grow beyond a fixed size (4833 K). All messages are written to log file till the file grows to this size and then no logs are appended. Here are my settings - faultLoglistener = new FileLogTraceListener(); faultLoglistener.Location = LogFileLocation.Custom; faultLoglistener.CustomLocation = "C:\\"; faultLoglistener.BaseFileName = "FaultLog"; faultLoglistener.LogFileCreationSchedule = LogFileCreationScheduleOption.Daily; faultLoglisten ...Show All
