Gordonn's Q&A profile
.NET Development XmlReader and schema caching
Hi, When you use XmlReader to load and validate a document against a schema specified on the file system - is there any caching of that schema managed internally by the framework Or will the reader open the schema from the file system every time Thanks Donal You can pass in a cached XmlSchemaCollection (.NET 1.1) or XmlSchemaSet (.NET 2.0) to the reader's Schemas property for validation. The reader itself does not do any caching of schemas. If you can post your code sample, i can better understand your scenario. Thanks, Priya ...Show All
Game Technologies: DirectX, XNA, XACT, etc. computer shuts down
In my application I use D3D. After using the application for quite some time the comuter shuts down. I have no idea why or what part of my code is responsible for it, but I'm almost sure it's because D3D. It happens only on my friend's computer - never happend to me. could it be the graphic card driver Does any body had this problem before Any ideas on what the problem is how do I fix it Liron. If it just shuts down with no warning; its probably over heating. When you run a typical directx program/game the CPU and GPU become very busy doing lots of work (calculations), this of course generates lots of heat. Most motherboards have a maximum CPU temp, if the temp goes above that, the computer wil ...Show All
Visual Studio Team System How to use the command line /rule option
I am simply trying to exclude naming from my check rules by writing FxCopCmd.exe ... /rule:-NamingRules.dll Is this not possible I would certainly prefer this instead of writing every rule to include in the check. This is a reserved command-line argument that's not supported for standalone use. If you use it today, you will likely break tomorrow. A better idea for you would be to create a simple project that has the rule(s) disabled that you don't want. Pull in this project file on the command-line via the /p: switch. You can add files to the session using f: as usual. Does that make sense ...Show All
Visual Studio perplexing persistent PLK problems post install of September SDK
I created a DSL project using the August CTP of the SDK. I requested a PLK and incorporated it into the package resources and it worked. More recently, I have installed the September version of the SDK and now Visual Studio refuses to load the package. It fails on the development machine with "devenv /noVSIP" and it fails on another machine without the SDK. The log contains several entries of "CheckPackageSignature failed; invalid Package Load Key". I know that I have not changed the company name, product name, or version of the package since I requested the PLK. Any ideas on why this might be happening One thing I've been wondering is how Visual Studio finds the PLK in the first place. I know that it uses the &qu ...Show All
Windows Forms Disabling the script debugger for an instance of WebBrowser
Hi everyone, I'm writing an application that uses the WebBrowser control to interact with web pages, but does so without a UI. I have enabled script debugging in IE, and occassionally the Just-in-Time debugger window pops up if an error is found in a page the control is executing. Is there any way to prevent this happening without changing the user's global IE settings thanks! Michael ...Show All
.NET Development Remoting connections following a server failover
Hi, I have a related question on the SQL Server forum, but this aspectpecifically about remoting in my app. I have a 3-tier app: 1) Client .NET 2.0 app using remoting connections to... 2) Host .NET 2.0 app using DAL layer with SQL connection string to... 3) SQL (currently 2000, planned 2005 mirrored) The question is... How do I cater for failover in the Host app's server so that client apps find the backup Host app - i.e. how does remoting deal with this I have a similar post at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=795965&SiteID=1 which is more concerned with the SQL connections. ...Show All
.NET Development 10055 error code
Hi... I get this error codd 10055 on my BeginSend code!! the code message is not very useful!! what does buffer mean! what buffer ! the sendbuffersize ! or the receive buffer size ! or the paging memory... and if any what to do to increase it or release any unused resources !! if queue what Queue! im not using Queues!! btw im sending frames from a client to the server which in turn sends it to all other clients connected to it.. frame rate is 20f/ps and frame size is no larger than 3500 byte.. please advise. thank you, as you can see ,, i was using asynchronous inside asynchronous calls... which lead to unmanaged increment in the non-paged memory,, so i just replaced the beginsend with send inside the asynchronous function, and ...Show All
Visual Studio Team System Coded webtest datasource problem
Hey all, I've generated a coded webtest from a webtest that works just fine. When trying to run the unmodified newly generated coded test, I'm getting this error: Error WebTest1Coded WebTests Could not run web test 'WebTest1Coded' on agent 'MachineName': Object reference not set to an instance of an object. I've found that the culprit has something to do with this attribute: [ DataSource ( "TestData1" , "Provider=SQLOLEDB;Data Source=ServerName;Integrated Security=SSPI;Initial Catalog=DatabaseName" , Microsoft.VisualStudio.TestTools.WebTesting. DataBindingAccessMethod .Sequential, "TableName" )] If I commit out this line, the test runs fine...but I can't access my test data. Any ideas ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Super Stickman Adventures (source included)
After doing some spriting, here's a "new" game, Super Stickman Adventures. I'll let you guess what type of a clone it is.. It includes 5 levels, some enemies, and a whole lot of bananas ! (I hope donkey kong won't kick my ***) Keyboard controls : arrows, shift, space, enter Gamepad controls: left stick, x, a, start Download/Screenshots - HERE If someone would like to contribute with their own graphics/sounds/music, just email me. Have fun! Heh... that's pretty neat! I thought the stickman's "skidding" transition animation was a nice touch, too. I think you're safe from donkey kong's lawyers. I only made it as far as level 2 though. If there's a mushroom at the end that says "Sorry Stickman, but the Stick ...Show All
Smart Device Development InTheHandPO
Hello, The sample in MSDN using InThehandPocketOutlook is famous to cause the error MissingMethodException. Searched for whole week but still couldn't find a perfect solution. Can someone point me to right direction please. I know only VB.net and Thanx for any help. I suggest getting a copy of Inthehand.WindowsMobile library as it supercedes the old MSDN sample. The library is free for non-commercial use and has very reasonable commercial pricing ...Show All
SQL Server SQL Express Import Using Transact SQL Statements
I have SQL server Express. How can you import a database, using transact sql code, onto a server from your local PC. Attach Example: The following example attaches files from AdventureWorks to the current server. Copy Code EXEC sp_attach_db @dbname = N'AdventureWorks', @filename1 = N'c:\Program Files\Microsoft SQL Server \MSSQL.1\MSSQL\Data\AdventureWorks_Data.mdf', @filename2 = N'c:\Program Files\Microsoft SQL Server \MSSQL.1\MSSQL\Data\AdventureWorks_log.ldf' ; Restore Example: RESTORE DATABASE MyDatabase FILE = 'MyDatabase_data_1', FILE = 'MyDatabase_data_2', FILEGROUP = 'new_customers' FROM MyDatabaseBackups WITH FILE = 9, NORECOVERY; GO ...Show All
Windows Forms Editing in Datagridview!
Wadup! I have a GUI with a datagridview . The user can select some data (out of an integrated table) and the selected data from this table will be automatically written into a row of the Datagridview. Now that the data has been entered in the datagridview row, i want to implement a feature in which the user can manually go to row( with a mouse click for example) and make some changes in the data (for example change age=23 to age =24) which was automatically transferred from the table based on user selection. so basically i want to implement edit functionality for a datagridview row on a mouse click event after some data has been entered in the row. Ho do i do it Cheers! The DataGridView de ...Show All
Software Development for Windows Vista Drag n' Drop files in Vista RC1?
Dear all, I find a very strange issue in Vista RC1. If we wanna add "requireAdministrator" in the program, (Ref http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/AccProtVista.asp ) The program will still fail to get the "WM_DROPFILES" message from Vista. Does anyone have the same problem ...Orz Best Regards, Shuyang p.s. The following is my manifest < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="Microsoft.Windows.XPStyle&q ...Show All
Visual Studio Express Editions Debugging only my code
Hi there, I'm new to Microsoft sw development tools (I use Borland ones since my first hello.c in 1992, and some TopSpeed e Watcom for short periods...) and I didn't figured out how can I trace/debug only the code under Source Files sector of a Console app project without entering on CRT or STL code. May anybody help me on this matter TIA, WB:: Have a read of the following url for more information on setting advanced breakpoints, which can be usefull if for example your line of code contains a reference to an STL class or method, eg within the parameter list of a call to your own functions: http://msdn2.microsoft.com/en-us/library/5557y8b4.aspx ...Show All
Visual Studio 2008 (Pre-release) Application.LoadComponent() problems June CTP -> RC1
The Application.LoadComponent(component, uri) is no longer working if the component and the resource pointed by the uri live in different assemblies. Unfortunately this change makes it impossible to have components from one assembly to inherit from components from another assembly. Say you have a custom MyWindow control that lives in a Common.dll assembly. Its generated InitializeComponent() code contains a call to Application.LoadComponent(this, new Uri("/Common;component/mywindow.xaml"). So far so good. Now in the Application.dll assembly you have another class AppWindow that extends MyWindow. When it loads it calls MyWindow constructor which in turn calls MyWindow InitializeComponent. The result is a System.Exception : T ...Show All
