Kamii47's Q&A profile
.NET Development Sticky SqlCommand session
Hi all, After executing a SqlCommand, and closing its' connection, and even manually disposing everything off... sp_who still says that the session is there, untill I close the whole application. It's a Big deal: because of the locking i'm creating in that SqlCommand, that never release... untill i close the application. how can get rid of the SqlCommand session and does this relates to connection pooling ... SqlConnection sqlCon = new SqlConnection(...); sqlCon.Open(); SqlCommand sqlCmd = new SqlCommand("create database foo", sqlCon); sqlCmd.ExecuteNonQuery(); sqlCmd.Close(); sqlCmd.Dispose; sqlCmd = null; sqlCon.Close(); sqlCon.Dispose(); sqlCon = null; ... I have my foo databas ...Show All
Visual Basic weirdbearmt. Why are your url's not active? Are you forgetting to hit enter?
i am having VB6 dll. i want's to get the source code, methods and whatever inside that dll. Is their any tool like reflector in .NET. Thanx in Advance. No, there isn't one because VB6 and VB5 compile to a native code binary (you can compile to p-code with them if you set that option although someone doing that is rare). You can view strings or do an assembly code level decompile but you can't get the same kind of specifics out of it that you can out of .NET executables. VB4 and earlier only compiled to p-code and could be decompiled back into VB code. ...Show All
Software Development for Windows Vista [BUG] Vista doesn't start application called "install" w/o being elevated.
Hi, I just encountered this really strange behaviour, which is definitely a bug in Vista. Consider the following situation. You're logged in as an administrator account. Start a CLI shell of your choice, start it normally, so that it's running non-elevated. Now consider a console application called install.exe. It's neither a GUI application, nor is it an installer application in the Windows sense. It's just called install.exe. In my case it's part of GNU coreutils and it's called install because it's usual task is to install software on the system. However, it's perfectly valid to call install as normal user and use it to install stuff into a subdirectory on which you have permissions. This is what happens when running under Cygwin (proce ...Show All
Internet Explorer Development How to add "Open in new tab" to custom context menu?
Hello, I am glad that there is a special forum for add-on developers :-) Here is my first question that was not answered on the IEBlog yet: I have customized the context menu of IE based on the standard menu that is located in the shdoclc.dll. Unfortunately, the dll resource does not include the "Open in new tab" item in IE7. What is the recommended way to add this menu item to a customized context menu Of course, it should also depend whether tabbed browsing is activated or not. Thanks Viktor -- http://www.quero.at/ The New Web Experience ...Show All
Customer Care Framework Where to download
Hi, Can someone please tell me where to download the CCF Thanks Matt, Have you got a more specific pointer to the CCF 2005 (.Net 2.0) version on MSDN. The version that I downloaded from MSDN Subscriber Downloads was the 2.5.1 version with the various QFE's. But I'm at a loss as to where to find the 2.6.0 versions. (Obviously my colleagues have it, as I mentioned in the other thread, but can't get at those systems at the moment) Best regards Alan ...Show All
Architecture Detecting internal calls in business object without using TLS or overloaded internal method
Hi Forum I have the following problem. I need to know whether a call to a business object was made from another business object or directly from the UI. I need this because of Security and Logging reasons. Security - Users might not have permission to call the method on a business object. But another business object might need to call it. - But it's the same method :( Logging - I often want to log when a user performs an action. Another business object might also perform that action but then I don't what to log it. But it is the same method. ;( The best solution I have found is to make an internal version of the method with parameters. Like this: public class BusinessObject{ &n ...Show All
Visual Studio Tools for Office Serious problem with permission/security while creating setup/installer file
Hi All, Actually I have created one VSTO project at my local. For BusinessLogic & DataAccess Layer I have used some external Dlls into this project. Now I have to create setup/installer file of this project & deploy it to client machine. I have done following things to make it possible: 1. Firstly I have added strong name to all the external dlls that I am using here. 2. After that I have followed all the steps as shown into the link provided for deployment. 3. At the end, I been able to create setop/installer file successfully by compiling the setup project with all other necesssary requirements needed. Now I wanted to check is the installer working or not. So I have instaled the setup file created & followe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Missile Commandeer Game (including Source)
First XNA game...done! It's an old school missile commander clone (only its CommandeEr, like pirates...ARRRR!!!). I spent extra time to maintain the original "cutting edge" graphics to make it a true classic. Check it out... (I just added the screenshots, game and source code to my website) Click here for the game Improvements to come: - MIRV missiles - Extra lives - High scores - suggestions Nice update, I especially like the MIRVs. I haven't played it much but my top score is 16440 on level 18. I'm pretty sure that other people have done way better :) I think the score penalty for hitting destroyed cities should be raised again. The problem that I f ...Show All
Visual Basic automation error The object invoked has disconnected from its client
There is an application which is consist of many independent application. When I try to execute one exe out of them from the main application. I get the following error 'Run-Time Error '-21474417848 (80010108)': Automation Error - The Object invoked has Disconnected from its Clients. I tried ot unregister and then register them but still I am getting the same error. I dont think the problem is because of circular reference because the same application is working fine on some other system. That's irrelevant ... have you checked to see whether you have any circular references in your project ... if so, eliminate them ... for one thing it's a bad architecture, and for another, it would ...Show All
Windows Forms Strange painting problem with GraphicsPath
Hello, I created a custom Windows Forms control that represents a coordinate system being filled with a timer-controlled GraphicsPath. The maximum y-value of the graph (say "100") maps to a clipping area Point y-coordinate of 40 (any maximal value of 100 is painted 40 pixel beneath the top of the whole control). Now the following strange effect occurs: While filling the GraphicsPath Point values I make sure that none of the points' y-coordinate falls below 40 (I don't like to paint outside the coordinate system), values that should happen to exceed 100 are "cut" to 100 (so y=40), however, when I paint the path with Graphics.DrawPath I notice that my maximal values are painted clearly above the 40px line, they seem to o ...Show All
Windows Forms Multiline tooltip for ListView control
How do I make the tooltip display the ListView item text in multiple lines when the mouse pointer is hovered over Hi It worked for me when i moved the mouse over the items in the ListView and not simply over the control. And also i tried in ListView control with View Property as LargeIcon, SmallIcon, List, Title. I didnt try for multi column listview. Let me try that also. Thanks ...Show All
Visual Basic Editing project in Vb.net
Can i edit the project while Debuging the same. If Yes, How Yes you can edit your code at debugging-mode, to do that, go to Tools => Options... => Mark Show all settings => Under Debugging select Edit and Continue => Mark Enable Edit and Continue HTH ...Show All
.NET Development C# 2D Array
If I create a two dimensional array like string[,] str = new string[5,9]; how do i retreive the value 9 back str.GetLength(0) retrieves the value 5... but how do I get the other value besides having to do str.Length/str.GetLength(0) ...Show All
Visual C++ Strange problem with a c file with subroutines
Hi everyone, I have a very weird problem with this program: with Visual C++ compiler it isn't compiled (the compiler says " missing ';' before 'type'" ) and with another IDE it works, but the return value is always 0.0. Could anyone help me Thanks #include <stdio.h> #include <stdlib.h> #include <math.h> int inCylinder_1( double , double , double ); double distance( double , double , double , double , double , double , double , double , double ); int main() { double x,y,z; printf( "%s" , "Insert point coordinates: " ); //scanf("%f%f%f",&x,&y,&z); x = 1.0 ; y = 1.5 ; z = 0.5 ; int inCylinder = inCyl ...Show All
SQL Server Running out of disk space during SSIS package execution
Hi all, I'm running out of disk space when running SSIS package. Is there any way to select where temp files are saved during package execution Yes, I had the same problem when using full cache with over 1 million rows. I change to partial cache and I was still able to process about 10 thousands rows per minute. I was testing the performance difference of using partial vs full cache. BTW, Indexes on the table helps lots. Carl ...Show All
