Iago's Q&A profile
Visual Basic Managed memory leak
I am having a very strange memory leak that seems related to databinding. It is very hard to reproduce, so I won't post any code here to do so, but will just describe the problem. We have data entry forms which have controls which bind to custom business objects through a BindingSource object. On Dispose of the form, we call ClearBindings as described in: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwinforms/html/databinding_winforms10_11.asp#databinding_winforms10_11_topic11 However, our business object stay in memory after the form has been closed. Using a memory profiling tool, I can see that there is a root path to our business object: [Business Object] System.Collections Hashtable.bucket[] System.Collections ...Show All
.NET Development asp.net
HI: I just loaded vb.net ans attempted to run asp.net. I get the error that asp.net 1 is not installed, when I check, IT IS the correct version.Ran the executable in IIS, No Help Any ideas out there if you are sure asp.net is installed you may need to register it in IIS.... just run this in Visual Studio Command Prompt aspnet_regiis.exe -i Rgds Rodrigo ...Show All
Visual C# Object reference not set to an instance of an object.
Hi, I have this Code (I use .NET FrameWork 2 with Enterprise Library for Data Access and Logging) : try { DbCommand SpCommand = DB.GetStoredProcCommand( "CreateUser" ); DB.AddInParameter(SpCommand, "name" , DbType .String,name); DB.AddInParameter(SpCommand, "city" , DbType .String,city); DB.AddInParameter(SpCommand, "description" , DbType .String,description); result = ( int )DB.ExecuteScalar(SpCommand); } catch ( Exception ex) { Logger .Write(ex); throw ex; } I Get This Error : Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: Line 54: { Line 55: Lo ...Show All
Windows Forms DataGridView adds two new rows on 'escape'
DataGridView control is adding two new rows when I press escape key. Following is the scenario: I have a hidden column in DGV. 1. I enter some characters in first column and press tab. 2. Now when I am in second column I press escape without editing contents --> This adds two new rows (so after escape there are total three rows in my DGV) I have handled following events _CellEndEdit, _DataError, _DataError, _CellContentClick Can anyone help me Thanks, Amol. Mark, Thanks for your samples at http://www.windowsforms.net/TrackViews.aspx ID=220&Type=Samples& ...Show All
Commerce Server BizTalk collects orders via status or more?
When BizTalk collects from CS2007 orders does it just look at the order status or it also looks at the lastmodified field I need to understand this part to prevent BizTalk pulling in orders which it has already submitted previously. It is only via the status which BizTalk updates in CS2007 thru the Orders Adapter CodeDigger, I wrote an article for the TechNet website last August (I had some great help from Alan Faulkner on the CS2007 team) that outlines how to setup the orders adapter to pull only "new" orders only. There are only a few adapter properties that you need to set to accomplish this, "Incremental Export", "Status From" and "Status To". http://www.microsoft.com/techn ...Show All
Visual Studio Team System Delete label by Id, TFS API
Hi there. Is there a way to delete a Label or find a Label by LabelId The ways I found they all require the label Name and Scope --> VersionControlServer versionControl = tfsServerConnection.VersionControl; LabelResult [] results = versionControl.DeleteLabel(labelName, labelScope); or labelList.AddRange(versionControl.QueryLabels( null , null , null , false , item.ServerItem, VersionSpec .Latest)); But I found my self in a situation where I only have the LabelId or The ChangeSetNumber for that label. Thans! Alan D. Scheinkman You could concatenate them the way the command line does, i.e. labelName@labelScope. Or you could simply ignore the scope: so long as you don't create more ...Show All
Visual C# Request for Comment: M# Experimenal language: Extensions to C# 2.0 for Continuations.
A request for advice on the design of an experimental extension to C#. If someone can recommend a better forum for this, I'd be grateful. I'm writing a computer music language that really requires continuations (e.g. see http://pluralsight.com/blogs/dbox/archive/2005/04/27/7780.aspx for context on what a continuation is). Having discovered that the mono C# compiler is licensed under suitable terms, and that it can run comfortably on top of a Microsoft VM, with only minor tweaks (and also that the Rotor C# compiler license prohibits commercial use of music actually generated by a language constrained by the rotor license), I'm contemplating an experimental implementation of full continuations in C#, staring with ...Show All
Visual Basic Regarding files....???
Hi, In my form i have lot of pictures and these pictures can be changed by the user by replaceing them by there own pictures from there hard disk. Then when the user clicks the submit button i have to write all the paths and locations of the picture in a file.my problem is, after the user changes the picture and clicks the submit button i could't write the path of the picture file in a text file... its not writing anything. but if the pictures are not changed the path is written in the file. how to solve this problem... help me... this is the code i used..... Dim fsp As New FileStream( "Picture.txt" , FileMode.Create, FileAccess.Write) Dim sp As New StreamWriter(fsp) sp.WriteLine(PictureBoxLogo.Imag ...Show All
SQL Server Probably simple....
Hi, SQL Server 2005 (and Express). Some of our tables have primary keys which are nvarchar. What is the simplest way to prevent an empty string of any length getting into these columns Check constraints Modify our stored procs I'm leaning toward modifying the stored procs so that we can return a meaningful error message (user friendly) to the user rather than a constraint violation message generated by the server. Thanks. If it is not allowed to contain spaces at all, use this : GO ALTER TABLE [dbo] . [Testo] WITH CHECK ADD CONSTRAINT [CK_Testo] CHECK (( charindex ( char (( 32 )), [SomeCol] )=( 0 ))) GO ALTER TABLE [dbo] . [Testo] CHECK CONSTRAINT [CK_Testo] This wo ...Show All
Smart Device Development Using PocketPC serial port
Can anyone give me some advice about using serial ports in VS2005 beta 2 on a pocket_pc. At first glance it seems easy, just declare an object as System.IO.Ports.SerialPort with events and process the datareceived event. Simple enough. However, putting this code in a class and tring to generate an event based on the DataReveived event results in "An unhandled exception of type ' System.NotSupportedException occured in System.Drawing.dll" the Additional Information states "Control.Invoke must be used to interact with controls created on a seperate thread". This really has me confused since when you look at the code included, I am not even intentionally using threads. The application files included - opens as serial port when the use ...Show All
Visual Basic Server Explorer: Cannot Add Server Problem
Hi I am trying to add a server using "Add Server" Dialog Box from the Server Explorer Window. the server i am trying to add is an IP of a windows 2000 + SP4 machine located behind a firewall. I am getting a server explorer error : "An error occurred while attempting to connect to "servername"." Using the preformence monitor on my machine(XP OS) i can access the server i am trying to add and view it's counters, but i cannot add the same server in the VS2005VSTT I can add servers and worksations in my domain without any problems. Can you Help me With that thanks Udi i have found the answer myself unfortunately. and the soultion is to add the entry to the hosts file with ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there a Sprite object
Just curious if the XNA Framework has carried over the Sprite object from MDX. ...Show All
Visual Basic Object reference not set to an instance of an object.
Hi, I wrote a function and when i'm calling it i keep getting this error. Null reference exception was unhandled. Object reference not set to an instance of an object. Here is the code: -------------------------------------- Function myReplace( ByVal mytxtCtrl As TextBox) As String If Not IsNothing(mytxtCtrl) Then Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) Return myReplace Else MsgBox(mytxtCtrl.Name) mytxtCtrl.Text = "" Dim vartxt As String = Replace(mytxtCtrl.Text, "%" , "" ) myReplace = Replace(vartxt, "£" , "" ) ...Show All
SQL Server Attribute Limit of 5000 When Mining a Cube
I'm trying to build a association model in the Standard Edition based on an existing cube. I keep getting the error: Error (Data mining): The 'Product Recommendations' mining model has 60385 attributes. This number of attributes exceeds the attribute limit of 5000 allowed by the current version of the algorithm associated with the mining model. I created Cube Slice filters and those limit the Customer and Product dimensions (Product is Nested) to well under 5000. The error message also does not change. The number of attributes is equal to the number of rows in the Product dimension, but I expected the cube slice to reduce the number. I tested all the SQL used while it processes and with the MDXFilters the number of rows returned is ...Show All
Smart Device Development Who has a PPC-6700 Sprint AudioVox Mobile 5 (Can I use GPS?)
I have the Sprint AudioVox PPC-6700 and I know that it has the built in GPS chipset but everywhere that I search I can not find out how to actually access the API. There are a few of the GPS API references throughout msdn & msdn2 but none have an actual walk through. It is very easy to access the phone API's and contact lists/appointments and whatnot but the GPS is not to be found. As far as the GPS is conserned one could argue that it isn't ment to be programmed or something but the fact is that in all documentation it says that e911 can use the gps and also applications that need your location (such as movie times or resteraunts in your location). I really need to find out how to manage this out even with just a simple quord ...Show All
