Any ole Joe's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. D3DX10CompileShaderFromMemory: meaning of pFileName argument
What is the meaning of the pFileName argument in the D3DX10CompileShaderFromMemory function The shader is not supposed to be in the pSrcData string It’s used to add a filename to the error messages if necessary. The shader need to be in pSrcData. Don’t forget to provide the right size in SrcDataLen ...Show All
Visual C# FreeAllUnusedJunk() ? any such method?
I've got a program that runs through a loop, and during this loop, consumes a lot of RAM. of course, .NET is smart, and auto-disposes.. so the RAM usage goes something like.. 40MB, 80MB, 115MB, 230MB, 307MB, then it drops back down to something small again. The thing is, when this loop is over with.. the process could be eating up 40MB RAM, or 300MB. Is there some kind of global method I can call that basically frees up ANYthing that's not in use Definitely will be different behavior. GC works really tight with free memory. It will start more often when free memory is really low. I suggest to test your code with FxCop, maybe will help you find some better cleanup solution. ...Show All
.NET Development Slow Opening Initial Internet Connection in console application
Hi, I have a console application which should read xml from the Internet at some point. I've noticed that it takes plenty of time (between 10-15 sec) for initially "setting" an Internet connection via the console application. The same code works instantly in a asp.net web project. The example below illustrates the problem: It takes 14 seconds for step 1 and 0,0 seconds for steps 2 and 3. All files on server are really small (about 1 kb each - 10-15 lines) using (System.Net.WebClient wc = new System.Net.WebClient()) { //step1 wc.DownloadFile("http://somedomain/test1.xml", @"C:\Test1.xml"); //step2 wc.DownloadFile("http://somedomain/test2.xml", @" ...Show All
Visual FoxPro VFP6: Problem saving data
Hi all The VFP database system is running in the server so that all the workstations can share it. The user complained that she could not save the data after amending. I tested to see whether I was able to save it on my side. It works successfully. I went back to the user’s workstation to verify it but still the same problem. I tried other workstations and found no problem so far. Assuming that there are a few possible causes: 1) Computer in the workstation is not maintained well. 2) Email virus will affect the database system if anti-virus software cannot detect it. 3) There is file caching problem in the workstation. The workstation will "hold" certain data and then release it to th ...Show All
.NET Development Can't figure out this error message
Good Day all, I seem to have hit a dead end. I am "attempting" to write a web application to retrieve, insert and update information in a SQL2000 database. I can retrieve information just fine but when I try to update it I keep getting the following message: System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'UDPATE'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataS ...Show All
.NET Development How to Insert/Update/Delete nodes using XPath expressions?
Hello, I have been using XPath expressions to iterate through a set of nodes (see example below). Can someone please suggest how I can add or drop sibling or child nodes using XPath expressions. Thanks, Tad code snippet: XmlDocument xd = new XmlDocument(); xd.Load("data.xml"); XPathNavigator xn = xd.CreateNavigator(); XPathExpression xe = xn.Compile(" //Assembly/Component/@cn ame"); XPathNodeIterator nodes = xn.Select(xe); while (nodes.MoveNext()) { MessageBox.Show(nodes.Current.Value.ToString()); } data.xml < xml version="1.0" encoding="utf-8" > <WidgetSettings> <Assembly> < ...Show All
Visual Studio Express Editions Copy, Cut and Paste Functions in VS2005
Hello-- I am trying to implement the copy, cut and paste functions in my program. However, it does not appear that Visual Studio 2005 supports getting the selected text by using the ActiveControl object like VB.NET 2003 did. Is there an easy way to copy the selected text of any control to the clipboard Thank you for your help, Dave Thanks for the response, but its not quite what I am looking for. I have several controls on a form, including a datagridview and some textboxes. I would like to create copy, cut, and paste buttons in the toolbar on the form so that I can copy, cut and paste the selected text from any control on the form. ...Show All
SQL Server Master and SubReports
Hi All, I am new to Rs2005. I have 4 seperate reports, r1, r2, r3, r4,.....etc. I want these reports to be called in sequence in a Master report. I want to make all 4 reports 1 big report. Can this be done, and if so can somebody please point me in the correct direction. Many Thanks in advance. Kenny Many Thanks for you reply but i need to implement the first option as the master report will be my table of contents. Rs doesnt support TOC functionality so i have to work around it, by creating my own custom assembley and writing pageNumDetails to database, then finally calling the master report to extract data back from the database. I am having fun at the moment. Hopefully it will be do ...Show All
Smart Device Development Differences between DotNet Compact Framework 1.0 RTM and 1.0 SP2
Can anybody help me with the following problem I have been developing a Windows CE 4.2 Symbol handheld device which uses Scanner and RF hardware. The application is written in VB.NET and uses .NET CompactFramework Version 1.0 RTM (2002 - version 1.0.2268). It communicates with a Server Application via Tcp/Ip Sockets. When using this version of the CompactFramework 1.0 RTM (1.0.2268) the device retains it's connection with the Server when the device is either turned off or if it timesout. When powering the device on again, the connection with the server is still maintained. When Cold Booting the device and loading all files as before, except with a newer version of the .NET ...Show All
Visual Studio 2008 (Pre-release) The remote server did not satisfy the mutual authentication requirement
I am trying to write a Client/Server program which needs mutual authentication between the server and client via Kerbros. Therefore I did the following: On Server side: Config file: < xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <services> <service name="Com.Service" behaviorConfiguration="ServiceBehaviorConfig"> <host> <baseAddresses> <add baseAddress="net.tcp://tako:8020/Com/"/> </baseAddresses> </host> <endpoint address="" binding="netTcpBinding" bindingConfiguration="MyNetTCPBin ...Show All
Visual Studio 2008 (Pre-release) Validation Rules and Converters - how to refer to a subclass
Can anyone help me with a quick question I'm creating a Custom TextBox control, by setting up a control template. I want to use Converters and Validation Rules. I have a couple set up and they work well - they're declared in the XAML in this form: <local:SentenceCaseConverter x:Key="SentenceCaseConverter"/> <Binding.ValidationRules> <local:RegexValidationRule Test="test"/> </Binding.ValidationRules> However in my .cs file I've had to set up "SentenceCaseConverter" and "RegexValidationRule" as classes sitting directly in the local: namespace I'm using. What I'd like to do is set them up as sub-classes of my main "CustomTextBox" class, so I can use dat ...Show All
Windows Forms MDI App: Multiple Excel files and Multiple WebBrowser controls
I'm writing an MDI winforms app that displays multiple excel documents in multiple WebBrowser controls/child windows. If I open just one excel window at a time, interaction with the spreadsheet behaves normally. However, if I open a second excel window while one is already open, interaction with the spreadsheet in the first excel window transfers to the second window. For instance, if I click on a worksheet tab on the first window, it is removed from the the first window and displayed in the second. Or, if I start entering data in a cell on the first window, the cell doesn't enter edit mode but the formula bar in the second window shows the text i've entered. What I think is happening is that the second window takes the Excel Applica ...Show All
Audio and Video Development IMFPMPHost help
http://msdn2.microsoft.com/en-gb/library/ms698995.aspx HRESULT IMFPMPHost::CreateObjectByCLSID( REFCLSID clsid, IStream* pStream, REFIID riid, void ** ppv ); Question: I'd like to understand what this riid & ppv actually return. Supposedly, Media Source is outside PE and the created object is within PE. I don't understand how I can use the return value ppv. I'll infer from your question that you're trying to call this from your Media Source. Most commonly, a Media Source that wants to play protected content will call IMFPMPHost::CreateObjectFromCLSID to get its Input Trust Authority (ITA) instantiated in the mfpmp process. You're correct that (in general) this Media Source will be in the application p ...Show All
Software Development for Windows Vista Windows DVD Maker won't work
I have a Benq DW-1625 DVD-RW drive that is happy to burn Data DVD's within Vista. However, everytime I try to make a video DVD using Windows DVD Maker something goes wrong. It goes through all the encoding until it reaches 99.0% and the progress box says that it is finishing the disc. Then another dialog box opens up to say that "an error occurred" and that is the end of it. No DVD, a now useless DVD disc, and an hour and a half of my life wasted waiting for the bloody thing to encode. I have tried several times, each time changing some of the (very meagre) options available in DVD Maker, but always with the same result. I am using Vista build 5384 and any solutions will be great, I am getting so damn frustrated with this thin ...Show All
SQL Server Changing network packet size doesn;t work
Hi. I have querry that exuecuted time is 4 seconds on server and 22 sec. on client computer. I trace communication beteew client and servere. There are about 9000 packed sent in both directions. To resolve problem I change network packet size from deault 4096 to max (32767). After this still there are 9000 connections .... Where is the problem ..... I have 100Mbit network between server and client computers Regards, Walter Also, the underlying transport protocol (most likely TCP/IP or Windows named pipes) is free to break of SQL Server network packets into smaller pieces. This means that when you're looking at network traffic you'll likely see packets in the size that the transport proto ...Show All
