Umesh.Gandhi's Q&A profile
Audio and Video Development Additional requirements for a WMP plugin on Vista 64?
I have a WMP plugin (as a DMO) that works with Media Player 10 and 11 on Windows XP and Vista (32-bit). That same DMO does not work on Vista 64-bit. My DMO registers with IWMPMediaPluginRegistrar::WMPRegisterPlayerPlugin() and ThreadingModel = 'Both'. () My plugin will support IEEE_FLOAT as well as PCM audio, but it does not appear to get the chance. I usually see my DMO loaded into multiple processes on Vista 32, and the rendering always occurs in an MFPMP.exe process. I do not ever see my DMO getting loaded into the MFPMP.exe process on Vista 64, and I suspect that is where the audio rendering is occurring since I do see an MFPMP.exe process starting when audio playback starts. What more do I need to do to get my DMO picked-u ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Video/Animation Playback
Hi, I'm currently writing a library (for XNA/DirectX) for animation/soundless video playback, and I have a few design questions for the pros out there if you don't mind answering them : I'm having my animation class inherit from game component, and update the frame depending on game time in the overriden Update method, and render it in the overidden Draw method, but even when I preload my textures to render, playback is choppy. Not sure exactly why, but I notice this only when I have significant number of frames (I noticed it with 100 frames, but *not* with 10/15). This problem may be linked and solved by the 2nd point, so please read on. When I preload all the textures for the frames in the animation (and the no. of frames ...Show All
SQL Server Combining Output PDF files
Is there a way to output reports to the same PDF file. Basicly Appending several reports to the one PDF. Without combining the reports using subreports, I think you would use code & custom PDF components, unless you want to jump into writing a rendering extension. Softartisians Officewriter & abcPDF.NET are two possible options. You can also try automating Acrobat. http://www.planetpdf.com/forumarchive/84747.asp One alternative may be to export to a different format and then convert to pdf afterwards. cheers, Andrew ...Show All
.NET Development How to dispose TcpListener's holding port?
I am developing a chat programme using TcpListener and TcpClient.. In the server side form, I have two buttons one is "Start Listening",the other is "Stop Listening".. Now the problem is : when I re-enter the "Start Listening" button after stop listening ,i will get this error : the same port can only be used once, but i 've stop the Tcplistener after I enter the "Stop Listening" button, i don't know why who can help me thanks Two other point should be raised: 1. Are you closing any accepted connections too If the TcpListener has returned N connections via AcceptSocket/AcceptTcpClient, then all the N connections must be closed too. 2. TCP (the protocol) mand ...Show All
Visual C++ When I develop a protocol driver program, it can only build .sys file, I want to know how can I debug the program, can i set
When I develop a protocol driver program, it can only build .sys file, I want to know how can I debug the program, can i set break point to debug it Thanks. What kind of protocol driver are you talking about Judging by the file extensions .sys you are developing a kernel driver and usually kernel drivers are not built by using Visual Studio but by using Windows DDK build system. Additionally you cannot debug a kernel driver using Visual Studio, you need to use a kernel debugger like WinDBG or KD. ...Show All
SQL Server Custom Assembly Issue with HRESULT 0x80131418
I have used a custom assembly in all our Reports.Each Report references this assembly with alias Rs. I have copied the dll to the Report Designer folder and Report Server folder as well.The settings in the rssrvpolicy.config have been made to point to the correct locations on the disk.When I try to preview a report in Report Designer or generate it from the web app, I get the following error : "Failed to load expression host assembly. Details : Exception from HRESULT : 0x80131418." I deleted the exsisting reference and recreated it , but the problem persists. I also rebuilt the assembly and copied to the above mentioned folders, but still the problem persists. Is there any issue with loading the dll into some folde ...Show All
.NET Development validate IP
how can check if the given text was a valid IP format hi , i would prefer the IPAddress.TryParse instead of creating a whole regex expression. i feel Regex is more costly.Also it uses tryparse so no exceptions causing performance issues. thanks vinothkumar ...Show All
Windows Forms No Server Explorer or Data Sources
I hope I have done something simple and easy to fix. Nothing happens when I select Server Explorer or Show DataSources. Is there some setting that I have inadvertantly set Using Visual Studio 2005 creating a Windows form in C#. Thanks for any help. Shannon The windows may be not at the places you expect. (look again ) Try the build in function - to reset the settings of your Visual Studio 2005 . Tools - "Import and export settings" then choose reset all settings (or import selected environment settings) Try the VSWindowManager of the Power Toys for Visual Studio . If this doesn't help, a reinstall might be a solution. Not a real solution, but worth a shot to get the precious S ...Show All
Visual Studio 2008 (Pre-release) Generated proxy via svcutil.exe for self-hosted service problem
I was trying to generate client proxy for my self-hosted service using svcutil.exe. But I got some errors and the proxy can not be generated. Can anybody point out what was wrong Thanks! Following is the error message from svcutil.exe: C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin>svcutil http://localhost:7000/OrderProcessing Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4312.0] Copyright (c) Microsoft Corporation. All rights reserved. Attempting to download metadata from 'http://localhost:7000/OrderProcessing' usi ng WS-Metadata Exchange or DISCO. Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4312.0] Cop ...Show All
.NET Development ConfigurationManager.AppSettings not reading my app.config
I am having a frustrating issue that everyone tells me should be very simple to execute. I'm using the new ConfigurationManager object from System.Configuration.dll which I have referenced in my project. I do not have any compliation problems or warnings, yet I cannot get a single key value out of my app.config file. My config file looks like this: < xml version="1.0" encoding="utf-8" > <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <appSettings> <add key="KeyName" value="KeyValue"/> </appSettings> </configuration> and am trying to just assign this to a string like this: string path = System.Configuration.ConfigurationMan ...Show All
.NET Development Generic performance... benefit?
Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All
SQL Server Unable to load client print control
When you display a SQL Reporting Services report to the screen in the header there is a Printer Icon displayed. When we click this icon we get an error message "Unable to load client print control ". Does anyone know what we need to load or what we need to do to resolve this so that we can print the report directly to teh printer, rather than having ot prinnt the web page, which also prints all the Web headre information To manually install the .CAB file: 1. Download the .cab file and save it on your desktop. 2. After the file is saved on your desktop, right-click the Iuctl.cab file, and then click Open 3. Select all the files that are listed. To do this, point to the file list, and then p ...Show All
.NET Development Windows form that "eat" memory...
Hi I have built a windows form that use a System.Timers.Timer, the program itself runs just fine. But if I have the program open and check the task manager I can see that the program increase it's memory usage by 4-8kb every 10 seconds or so. What can a thi’ng like that depend on. What should I look for in my code, I mean this cannot be right that the program "eat" memory... The application is built in VS 2003 Best Regards M Hi Here's the code.... <code> Dim sbTypeOfExecution, sExecuteTime As String Private t As New System.Timers.Timer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load sbTypeOfExecution = Conf ...Show All
SQL Server Can't launch executable from SQL Server Agent Job
I'm trying to launch an .exe from SQL Server Agent Job and basically nothing happens. I created a job, with 1 step, type is Operating System (CmdExec), run as sql agent service account, and in the command box I typed "start notepad" (no quotes). The job owner is set to administrator. I manually start the job, it processes successfully yet notepad does not launch. I've tried with other .exe's and result is the same. Any advice Thanks! Thanks joeydj but I've tried xp_cmdshell method and that does not work either. I've also tried launching a batch file (.bat) that calls the .exe and that does not work. The batch call (job) is successfull but again the .exe does not launch. I would like to know if an ...Show All
Windows Search Technologies How to make search companion default while using wds 3
Hi, I installed WDS 3 and to my surprise I found the option to make search companion the default search in explorer missing and wds pops up whenever I select the search from windows. In my opinion, both have its own place as WDS still lags behind in many aspects and with limited choices. Yes, there is a choice to use search companion, but I dont want WDS to pop up when I hit search. I've uninstalled wds 3 and went back to 2.6.5. If somebody has any idea, pls let me know or else please take this as a request to re-introduce the option back. Thanks Does this help http://www.hanselman.com/blog/HowToDisableWindowsDesktopSearchExplorerIntegrationAfterInstallingOffice2007.aspx ...Show All
