Christian.Lorenz's Q&A profile
.NET Development How do I debug handle leak?
Hello, I am experiencing a slow handle leak in my application. I can see this with Windows Task Manager over time and in the Performance console on the Process.HandleCount counter. It leaked about 30 handles overnight - 8 hours. The program is a two thread console application (or service) that periodically reads one database and either updates another database and/or sends a tcp message to a server. I use the background worker to wrap the second thread which does all the work. The background thread runs continuously with a 60 second pause between cycles. In my logging I can see the handles grow about every 34-42 minutes. They jump up by about 5-15 handles then it drops down by 1-5 handles, but never completely. The timing of ...Show All
Internet Explorer Development "Requested lookup key" IE7 Problem
Please help! I just set up my new PC with Windows XP and after installing IE7, when i try to go on any website it launches a pop-up, stating "The requested look up key was not found in any activation context" and doesnt launch any webpages. Yet Mozilla Firefox works fine. Please reply back with a solution anyone :o) -Callum help me too cuz i cant even reinstall it cuz it wont let me, it gives me the stupid error 'the requested lookup key was not found in any active activation context' like 4-5 times ...Show All
Visual Studio Express Editions Visual C++ 2005 express edition SDK info needed.
I've just downloaded the visual C++ 2005 express edition. The downloads say I needed to also download the Platform Software Development Kit for Windows Server 2003 SP1, so I did. My question is when I run the PSDK-FULL.exe it asks me where I want to extract the files to...before I did this I wanted to know if all its going to do is extract like a regular RAR, meaning once extracted there will be another exe to install it, or will do I have to extract it to were its going permanently If I have to extract it to a specific place please let me know, as I don't want to waste my time. Any info would be appreciated! Thanks in advance. House_Arrest wrote: I've just downloaded the visual C++ 2005 ...Show All
Visual Studio Cannot Debug in VS2005
I cannot launch the debugger in VS2005. I have a solution with numerous projects (1 C#, the rest VB). Whenever I run the solution and hit a break point, I get a message saying that Visual Studio has encountered an internal error. I have sent multiple error reports to Microsoft about this. This also happens when I just try and single step into the solution. Everything in the solutions builds fine and runs fine, until I try and use the debugger. I am running Windows XP (SP2) with a dual-core processor. I read some posts online that recommend setting up your startpage and I did that. I also set the project to run on x86 CPU and I am still having the same issue. Another developer in my environment can debug the exact same solution and the prim ...Show All
SQL Server Can't install Full Text Search Option
Hmn, this is a bit odd. I upgraded from SQL 2005 Express to SQL 2005 Express Advanced in order to have full-text search. I installed...full-text search service not there. Then I ran the install again and noticed that a option in the feature tree of things to install...included an entry for full-text search, so I checked it to indicate...yes install this to my hard drive. However, if I click Next, it shows that all modules have been installed and are "greyed" out and it cannot install because even though full text is not there, the installer doesn't believe this and says "everything you want is already there!" Any suggestions Do I have to (gasp) uninstall it all ....taking a working server down in the proc ...Show All
SQL Server What is the best solution for delivery of the big tables?
Hi! Well.. I've several big tables which take part in the merge replication (web synchronization is used) Is there any *painless* solution to delivery these tables to the subscribers Otherwise I've the snapshot with dozens of Mb.. Yes, the Parameterized Row Filters can be used, but sometimes it's necessary to get the whole table Thanks Paul if you are "replicating to sql server 2000" only check this option in the snapshot. If this is currently not selected it will save you lot of Hardisk space if you do choose this option if you have done so your only option left is to filter the publication. have a multiple publication-single subscriber topolog ...Show All
SQL Server SQL Query help
i have table "clubinfo" with following fields and data. ClubID FranchiseCode StartDate EndDate ------------------------------------------------------------------ 786 AAAAAA 2005-12-14 15:20:43.340 2006-06-14 14:40:53.270 786 BBBBBB 2006-06-14 14:40:53.270 2006-08-21 14:24:28.060 786 CCCCCC 2006-08-21 14:24:28.060 NULL above three rows describes franchise AAAAAA started on 2005-12-14 and sold on 2006-06-14 to BBBBBB so franchise BBBBBB started on 2006-06-14 and sold on 2006-08-21 to CCCCCC and Endate for CCCCCC is NULL so its a current franchise i wanted to write a sql query that will find franshisecod ...Show All
Software Development for Windows Vista Handling events when hosting workflow in ASP.Net or a remote object
I am looking to host workflow within ASP.Net and perhaps a remote object. In both cases it appears best practice to create the WorkflowRuntime once and reuse it for each call. However, having read Dino Espoito's article and looking at Matt Winkler's example I have some questions: In both cases their code registers with the WorkflowCompleted event on the WorkflowRuntime, but the handlers do not check that the workflow that has completed is the same one they started. Am I missing something here If the ASP.Net site was concurrently starting several workflows, how do you know which one you are handling the WorkflowCompleted event for Is it that because they use ManualWorkflowSchedulerService they only get an event raised that is relevant ...Show All
Visual Basic MySQL
Using MySQL to store my information on my server and I am writing a program to read/write to it. I am using an example on the web click here to setup my Login screen. Im having problems with the Imports MySql.Data.MySqlClient . I have gone to MySQL.com and downloaded the connector but I can't seem to get things working right. What am I doing wrong I just used the drivers from the MySQL site and everything attaches fine for me. I used the ADO.net driver and the Visual Studio Plugin. ...Show All
Visual Studio Express Editions Static Thread Call Non Static Method??
Hi friends, I've a question i'm working on C# Express Edition, Frame work 2.0. I made a Static thread, that call a non-static Method. private Thread thread = new Thread ( new ThreadStart (ThreadFunc)); public static void ThreadFunc() { rfdisp_fun();//Its a NON-STATIC method. } //Threadfunc end. But it gives error. And it should give error! Becuase static function can't call to non-static method. Could someone be able to throw lights how can i call a non-static methods. Is there any way C# provide us. Please help me. Khurram. ...Show All
Visual Studio 2008 (Pre-release) Set the SignedInfo id attribute
Hello, I am building a Client-side web service that must output the following SOAP Header. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"> <wsse:BinarySecurityToken valueType="wsse:X509v3" encodingType="wsse:Base64Binary" id="X509Token"> MIIEZzCcA9cgwaABQfd86afd2g... </wsse:BinarySecurityToken> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> <ds:CanonicalizationMethod> Algorithm="http://www.w3.org/2001/10 ...Show All
Visual Studio Express Editions Making Webrowser
Hello everyone,i have a few questions about making an WebBrowser in Visual Basic 2005 Express. Question 1 : I'd like to make an progress bar,but wich codes do i need to add to let it work,and let it only be visible when the page is loading. Question 2: Wich Code is Required to open a new window by clicking on : New Window( in the ToolStrip Menu) I just want it to open a new window of my own browser.(see code) And wich one is needed to let ip open an File( See code 2) Private Sub NewWindowToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewWindowToolStripMenuItem.Click End Sub Code 2: Private Sub OpenToolStripMenuItem_Click( ByVal sender As System.O ...Show All
Internet Explorer Development Accessing files on local drive from localhost
I use PHP or HTM files from my local web server (localhost) to view images from the local drive(s). This works fine in IE6. <img border="0" src=" file:///C:/Program%20Files/WallMaster/WallMaster%20Wallpaper.bmp " width="860" height="688"> IE7 does not "find" the file. "Properties" for the undisplayed file gives the file name, but nothing else - no url, size etc. Is there some setting I need to change Or am I condemned to have no access to my data Did you find an answer to this Juan I have been using local file system references to images for demos etc, and although I now see the error of my ways, and am switching over to http a ...Show All
SQL Server how to convert rows to columns
hi i have a sample data like patientno visit experimentdate 101 1 23-Dec-2004 101 2 23-Mar-2005 101 3 23-Jul-2005 102 1 23-Dec-2004 102 2 23-Mar-2005 102 3 23-Jul-2005 i want it to display like this patientno visit1 visit1date visit2 visit2date visit3 visit3date 101 1 23-dec-2004 2 23-Mar-2005 3 23-Jul-2005 102 1 23-dec-2004 2 23-Mar-2005 3 23-Jul-2005 ..please suggest how can we do it Nope, not without using dynamic SQL. It isn't too hard, you just build the SELECT clause dynamically based on the data. In this post there is a ...Show All
Visual Studio Start application after installation
I am new to VS 2005 and am trying to get the application to start after install. I have added a PostBuildEvent to start the new executable but when I build the installer I get and error: Error 1 'PostBuildEvent' failed with error code '1' 'Unspecified error' Is there an easier way to start the newly installed application ...Show All
