Jayanth's Q&A profile
Visual C# Tcp Chat
hello , i have a problem. im developing a client / server tcp chat. the problem is that it works perfectly when i run de server and the client in loalhost, i can work with several insances of the client if the server is local,.,, the problem is that when i tr to work on lan or internet... (lan with same workspace) it dont work... i do the next on server static void Main(string[] args) { Program pr = new Program(); IPAddress localAddr = IPAddress.Parse("192.168.1.67"); listener = new TcpListener(localAddr, 5555); try { Console.WriteLine("Waiting for connections"); listener ...Show All
Visual Studio Team System Problem getting performance sessions from unit tests
I can't performance sessions from my unit tests when I right click on a unit test. Sometimes I get: Instrumentation error while processing file <dll>: Error VSP1018 : VSInstr does not support processing binaries that are already instrumented. Code coverage in-place instrumentation: The binary <path> was changed during the test run and won't be restored. It may be restored manually from this directory: <path> Code coverage in-place instrumentation: One or more binaries in <path> were not restored. They can be restored manually by running the file 'eqtrestore_7d867ba4-e4ae-4d92-a0c6-e8e6627af8a0.bat' in this directory ...Show All
SQL Server Animated Gif
Okay, I'm trying to be a bit flash. Is it possible to add an animated gif to a Report or is this restricted to still images only Thanks! Batty ...Show All
Visual Studio connections restrictions between shapes fail
hi, i want to restrict the connections between two shapes. I did this by using public override bool CanCreateConnection( ShapeElement sourceShape, ShapeElement targetShape, ref string connectionWarning) for the accordant connector class. e.g there is ShapeA & ShapeB. The problem is, that i can connect ShapeA with ShapeB, if i move the mouse over the "text decoration" of ShapeB although this is forbidden by the conncetor restriction. The restriction works fine, when i move over the shape area of ShapeB and not the "text decoration" of ShapeB. How can i define restrictions for the whole shape, includin ...Show All
Windows Forms how to: update a webform application from the web
Hi We are building a VS 2005 application which initially be deployed via a setup and deployment project. We want the users to be able to install updates by downloading them via our website - you know - select a menu item of 'check for updates' and if an update is available to download it and have it installed. How much of this function is available in VS2005 If so, any references to MSDN and/or advice appreciated... thanks Bruce None of this is built-in for apps deployed with MSI files. That's why ClickOnce is good for automatic updates. The kind of thing that's required is a call to a we ...Show All
Visual Studio Team System Error creating team project with RTM
I am having trouble creating a team project with the RTM of TFS from a client machine. I can create a team project from the server itself (logged in as myself), just not from my machine (also logged in as myself). My machine is XP Pro and I have Windows Firewall disabled. I have tried deleting my cache directory several times as well as uninstalling/reinstalling Team Explorer on my machine. I can also navigate to the following link successfully. I'm not sure it is related but I have seen a couple of posts suggesting to try out the url. :8080/WorkItemTracking/v1.0/ClientService.asmx wsdl" href="http:// :8080/WorkItemT ...Show All
Software Development for Windows Vista The program hang up at DestroyWindow when I'll shut down my camera-program
Hello I use Visual Studio.Net 2003 and W2K. The program freezes at DestroyWindow when I'll shut down my camera-program I use Vfw32.lib to get Pictures from a camera. The program runs without errors. But if the program runs more than one minute and I shut down the program, it stops at DestroyWindow. Here is the function: void V_leavevideo(){ if (V_is_capturing){ capCaptureAbort(ghWndCap); V_is_capturing=0; } // Disable and free all the callbacks capSetCallbackOnVideoStream(ghWndCap,NULL); if (fpV ...Show All
Windows Forms COM Interop - Problem while passing OBJECT type
Hi We have a COM object that accepts an argument of type variant and returns a byte array. The object works fine in VB and ASP. But, when we use it from VB.NET thru Interop, we receive the following exception:- {System.Runtime.InteropServices.SafeArrayTypeMismatchException} "Specified Array was not of the expected Type" We are passing the argument as OBJECT from VB.NET Any&n ...Show All
Software Development for Windows Vista Multiple requests clogs w3wp.exe
I'm running a workflow application from a Web application. The workflow does not scale well. When simultanious requests are made the results are: - 1 user. Response time around 10 seconds. - 2 users. Response time around 15 seconds. - 3 users. The Workflow Runtime appears to get stuck in a loop and the w3wp.exe process hogs all server resources. The only way to free the resources is to restart IIS or the server. Has anyone encountered similar problems or got any suggestions. Regards Parlster Could you outline your scenario and how are workflows being hosted in w3w ...Show All
SQL Server Backup of databases within SQL Server 2005 Express
Hi there! Is there any replacement for the missing SQL Server Agent which could be configured to backup "all databases" and fix minor errors in databases, rebuild indexes, etc. Or let's better ask: is there any solution/tool out there to create and execute maintenance plans without the need of SQL Server Agent (It might be a simple tool that enumerates the DBs and executes some T-SQL statements on them) Thanks Jochen Automating Database maintenance in SQL 2005 Express Edition Part I Automating Database maintenance in SQL 2005 Express Edition Part II Part I deals with creating scheduled tasks and using SQL ...Show All
Visual Studio Express Editions Text Drawing Error! Please Help!!
When trying to run this code, i get the error: System.NullReferenceException was unhandled. My Code (Very Simple): Public Class form1 Dim paints As System.Drawing.Graphics Dim afont As New System.Drawing.Font( "Arial" , 22, FontStyle.Regular) Dim x As Integer = 10 Dim y As Integer = 10 Private Sub form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'This Doesn't Work! paints.DrawString( "Arctic Games Programming" , afont, Brushes.Black, x, y) End Sub Private Sub form1_Paint( ByVal se ...Show All
Software Development for Windows Vista Device Emulator Connectivity with Virtual Network Driver to Web Server on Windows Vista CTP 1205 (Build 5270) Fails
Hi, I'm running Visual Studio 2005 RTM Team Suite on a Windows Vista CTP 1205 (Build 5270). Everything works ok for managed device application development. I can connect to the pocket pc device emulator se and deploy the CF 2.0 and my apps. My app uses a web service that runs on the IIS 7.0 Web Server of Vista. The web server works fine for desktop apps but when I try to request the WSDL of the web service from within the pocket internet explorer the device emulator can't connect to the host OS's web server. My gues is that the reason for this is that I can't get the virtual network driver working on Vista. I have installed the virtua ...Show All
Visual C# Context menu question
Hello Hope its the right place for this question. I have a win app that contains a treeview and a main window. When ever I click a node in the tree it displays the content of the node in the main window. I would like to add a right click menu to the tree. The problem is that the menu may change from one node to another . What is the best way to handle this subject Is there a pattern I can use On every right click I need to know which menu to load and to bind the items to the proper functions Thanks Avi I can suggest one possible design to this. It seems ...Show All
SQL Server Microsoft Access to SQL Server 2005
Hi, I have a database in MSACCESS 2003 that is 680MB (after compacting) and contains 41 tables. I tried to import these tables to SQL Server 2005 (express edition) using the :"upsizing wizard" provided in MSACCESS. The wizard works fine but all the tables are not being imported to SQL Server (only 19 tables are getting imported) and the size of the database in SQL Server (the ".mdf file") is 1.03 GB (I have tried using the "shrink" option also) . Further, when I try to open one of the tables (which has 625295 rows and 90 columns) , it takes lot of time to display all records. So, my problem is do I need ...Show All
Visual C++ Bug in narrow passing of arguments
Hi, I am using Visual C++ 2003 with full optimization. I am seeing a parameter passed to a function as a (16-bit) word, with the top of the stack slot junk, but then treated as a doubleword in the called function. I.e. mov si,array[edx+4] ; load the parameter push esi ; top word is junk call ... then in the called routine the parameter is accessed as word ptr[ebp+1 ...Show All
