Murtuza39's Q&A profile
.NET Development well format xml
Hi, I get an xml file, which is not well formed, it's structure is like: <groups> <group> <name></name> <desc></desc> <items> <item> <name></name> <desc></desc> </item> </items> </group> </groups> As you can see, the problem is, that some nodes are defined in different mapping types. I can't do anything with the xml input as I don't generate it. How can I well format it without much of work In fact I need to load it into a dataset. My personal idea was take a regular expression and ...Show All
.NET Development 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 ...Show All
Windows Forms This error comes in win 2000 but not in Xp!!
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Windows.Forms.Control.WaitForWaitHandle(WaitHandle waitHandle) at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at System.Windows.Forms.Control.Invoke(Delegate method) at Microsoft.VisualBasic. ...Show All
.NET Development Reg : Better option to move data into my Db
Hi, For my application, i have to move the other db structure into my db and check for changes. For this i am creating a connection to other db and fetching the data from there. Now these details are in my dataset. for moving the details into my db(MS SQL) i am using the following code: foreach (DataRow dr in ds.Tables[0].Rows) { i += 1; cn.Open(); string nullable = dr[4].ToString(); string defaultval =dr[5].ToString(); defaultval = defaultval.Replace("'",""); char chrnull = nullable == "YES" 'Y' : 'N'; string defaultvalue = dr[5].ToString(); ...Show All
Visual Studio Express Editions App_Data fails to open new item
I have installed the August CTP of Visual Web Developer 2005 Express edition, along with SQL Server Express and the MSDN Express edition. SQL Server seems to function properly and I am able to connect to it throught the Database Explorer pane. It is configured through the ASP.NET Website administration tool and a test of the AspNetSqlProvider confirms a connection to the database. When I try to open a data source or create a new item under App_Data in the Solutions Explorer, I get the following error: Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the insta ...Show All
SQL Server Newbie: "Compiling" a DTSx package
I have now created a few simple SSIS packages. In BIDS I right-clicked on a solution and selected "Build". I went to the "bin" directory hoping to find a standalone ".exe\.dll" file but found only a ".dtsx' file. Can BIDS can actually build a standalone exe\dll or is the .dtsx file all that's available (If so, I guess that another program is expected to invoke the .dtsx file.) TIA, barker In my SSIS package deployments, I've deployed my packages via file system files. Basically, all you get for this is a .dtsx file in your /bin folder. To the best of my ...Show All
.NET Development .NET Question.
Hi, im new to .NET C++ programming, and have a simple question to ask. When i create a simple application using Windows Form Creator and add a richTextBox to the form, i get the following code(see below). And Ive added a simple function (EditText()) at the end of the file which isnt in the name space. What i want to know is how can i access the richTextBox1(which i created in the namespace) outside of the namespace. Is that possible Because i'd prefer to have most of my functions in a seperate header file instead of being cramped up into one file. Thanks in advance for any help. #pragma once namespace test_app { ...Show All
Visual C# Accessing a DataGridView control from a thread that it wasn't created in???
This is the exception I'm getting: "Cross-thread operation not valid: Control 'dgvLogResults' accessed from a thread other than the thread it was created on." I'm trying to update a datagridview with new data that has been detected in a thread that is running and polling. But I can't seem to get this to work do I have to reference the original thread somehow then access the control // UPDATE DATAGRIDVIEW so this is the function I should use BeginInvoke() by putting it above by 7 or 8 lines like BeginInvoke(UpdateDataGridView()); where I should make up a delegate for UpdateDataGridView() ...Show All
Visual C++ about dll
I write a console application used to test the dll. when i press the F5 to debug it, it is suceeceful. but when it is running , throw a error this: debug assertion failed! program:..../legacy/debug/uselegacy.exe file:fprintf.c line:56 expression:str != null for information on how your program can cause an assertion failure, see the visual c++ documetation on asserts. (press retry to debug the application) who may tell me ,why what can i do thanks hehe,finally,I include a <process.h> to dll. It is not throw such a error. But i don't know why I sreach the msdn,can't find about process.h information. who may t ...Show All
SQL Server navigation on subtotal
I have a matrix and a subtotal footer summing up a group of numbers. Each row has a primary key. I use the primary key to drill-through another report through "Navigation". Unfortunately, the generated subtotal column also have a link but it has a primary key of whatever the first row is, which shouldn't have a primary key. So I can drill-through the subtotal but it returns the wrong result. I have not been able to override the subtotal to specify a new link with different paramters. Anybody can help would be great! Thanks. In the place where you define the drillthrough action with its parameters, ...Show All
Visual C++ passing arguments to a System(something.exe) function
Background : I have an MFC application and a c++ program (separate entities). I did a build on the c++ program, and copy pasted the resultant 'exe' formed in its debug folder into the MFC application's folder. Now in the MFC, I am calling the function "System(mt.exe)", which is a call to the exe that I had copy pasted. Question : This exe (ie the c++ program) uses a variable 'counter' at some point in its execution. Is it possible for me to pass an 'int' as an argument to the exe when its called from the MFC, so that the 'counter' within the exe takes that passed integer as its value So effectively, first time the exe is executed, ...Show All
Windows Forms Calling MsgBox inside a TabPage's Validating event
I have a form that contains a tab control. I want to perform (multi-field) user input validation when the user changes tab. If the user input is invalid, I want to display a MsgBox. However, whenever I call MsgBox inside a tabpage's Validating event, this seems to affect the behavior of the comboboxes on that tab page. To see what I mean: 1. Create a new project 2. Create a form 3. On the form add a tabcontrol with 2 tab pages 4. On the first page add a combobox with a few items. 5. Handle the first tab page's Validating event this way: Private Sub TabPage1_Validating( ByVal sender As Object , ByVal e As System.Compon ...Show All
Visual Studio Team System Treatment for Delayed deliverables(internal) - MSF Agile
How to handle delays in deliverales...(delays during iterations) currently I just edit my project plan and shift " finish date" of all dependent tasks. Do we have in MSF Agile some workstream to analyze "Delays" and producing reports etc Hi vinaymishra, Maybe the workstream "Guide Project" is what you are looking for. Pay special attention to the activity "Assess Progress" which talks about schedule, date problems and dependencies. Also the workstream "Guide Iteration" might help you. Cheers Mariano ...Show All
SQL Server using WriteNotifyEventHandler with tracefiles
I've a fined tuned trace running that outputs the result to a tracefile. Currently I'm using the TraceTable class to read back the trace, which works fine. However I'm trying to use the WriteNotify event to react when this file changes, but it never appears to fire. I'm using the beta2 of SQL 2005, does this work in it Would anyone having a working example if it does Thanks, Cathal Thank you Maciek, I was (stupidly) trying to do it all with 1 TraceFile, your suggestion worked fine. Cathal ...Show All
Smart Device Development Detect ActiveSync/Cradle Connection
Hi all, I need to sync data with a web service runing in my network when connect my device to PC. How can i detect if ActiveSync is runing in my device I'm using .NET CF 2.0 with a PocketPC 2003 device. I try to use OpenNetCF 2.0, but this release not includes "Desktop.ActiveSync" namespace. Thanks. Jose Miguel. In my forms I call this class on the form when a NEW Instance is created.. I found this info at : http://www.devbuzz.com/content/zinc_network_connectivity_pg1.asp In the form class... ---------- Public Sub New () ' This call is required by the Windows Fo ...Show All
