AlexBB's Q&A profile
.NET Development Failure in background thread is not terminating my application
Hello, I have Windows form which launches background thread, failure inside that thread (unhandled exceptions) and not crashing main application. If it would crash I'll at least see what was error message but now I have no idea how to find the reason for exception in background thread. The only way for me to see the issue is to do processing on main thread and then unhandled exception will in fact crash application and will tell me what happened. How do I properly debug in this scenario except for attaching in VS to running process So you do start that thread and give it a thread function to execute. Is that Thread function a method of the main form class or a separate class If seperate give it a ...Show All
SQL Server Spurious Errors With Package Execution on Local Machine
I am having strange errors with a package when running locally that has not been an issue before. The main symtom is that several Data Flow Tasks are either not inserting records on the destination or are only inserting 1 single record before the package errors with the error shown below. Strangely, the debugger will show X # of records from source and destination, but either no records are actually written or, again, in many cases, only 1 single record is written. This is very strange. App, System and Security logs yield no indication of security or other errors. All I have to go on is the above anomolies and the error message provided below. Below is the error message, can someone help me decrypt it Many thanks, Rick ...Show All
Microsoft ISV Community Center Forums Dimensions in BSM
Hi We are building a scorecard to report the sales. We need the rows to display the time, ie., by year, quarter and month. And the columns to display the autaul sales and its target values for a particular time dimension.My datasource is SSAS cubes. Is there a way by which I get the Actual and the target value for a year and by drilling it will I get the values for a quarter for a particular year, and by drilling through the particular quarter, will I get the values for the month of that particular year and quarter.I get all the values in the format that I wanted in my cube. Can I achieve the same using Business scorecard. I have created 3 KPI's. One for year, one for Quarter and another for Month. After adding them to my scorecard a ...Show All
SQL Server Wrong totals in named sets
Hi In BI Development Studio I create a name set with this sintax: [CATALOGO].[CATALOGONIVEL3].[Tiempo Mantencion] [CATALOGO].[CATALOGONIVEL3] has another two members instead of [Tiempo Mantencion] After that I create a calculated member with this SUM ([SET Tiempo Mantencion] , [Measures].[HORAS JUSTIFICADAS]) It works fine in almost all cells in the cube, but when I ask for the others two members of [CATALOGO].[CATALOGONIVEL3] it does NOT returns NULL it returns the same total of [CATALOGO].[CATALOGONIVEL3].[Tiempo Mantencion]. When I open one this members (it exists a sub level named [CATALOGO].[CATALOGONIVEL4]) the cube show a null cell in the subitems (thats right) and the [CATALOGO].[CATALOGONIVEL3].[Tiempo Mante ...Show All
Visual Basic WebBrowser will not work with Flash. ANYBODY HAVE A FIX
I have created a web browser and after like 2 clicks on any flash enabled web page it disables and i cannot click any type of flash anything it doesnt work. Does anyone know a fix to this That didnt work at all, the problem is that after a few clicks on a flash application it will not let me click it anymore. This happens inside the webbrowser1 control ...Show All
Visual Studio Custom Add Item
Hi All, I will try to be as brief as possible. I've been making a DSL project for 2 months now. And somehow my application need to access the inner-structure of Visual Studio. I went to DSL forum to solve my problem, but someone pointed me to this forum. I hope there is someone here who can give me some ideas, or point me to some related threads. It goes like this, when I run my DSL project I can add an item in Experimental Window by left-clicking the Debugging in solution explorer and then a window with templates appears. There I can choose my DSL template for the file I want to add. My question is, how can I perform this by only clicking a button I made by myself How can I show the Add New Item Template window by clicking my button ...Show All
Visual Studio Team System Sampling method of Performance Tool does not generate any report!?
After successfully tried using Sampling method of Performance tool on a small console application, I applied the same skill on a larger WinForm application. But this time the tool does not generate any report under the Reports folder. Is there any limitation on the tool Or any special configuration needs to be set Hey John, I was just scrubbing the forums when I noticed that your question had not been answered. After collecting data with the profiler it should always generate a report or give you a warning that no data was collected in the profiling run. I've never seen an example of it not doing one or the other. One thing to check is that in the session property page for the performance session yo ...Show All
Visual Studio Express Editions Control Key Problems
How can i make my program preform an action when the control key is hit for non-character keys you must use the keydown or the keyup events.... Private Sub Form1_KeyDown ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyEventArgs ) Handles Me . KeyDown If e . Control = True Then ControlPressed = True Else controlPressed = False End If End Sub Private Sub Form1_KeyUp ( ByVal sender As Object , ByVal e As System . Windows . Forms . KeyEventArgs ) Handles Me . KeyUp If e . Control = True Then End If End Sub ...Show All
Visual Studio 2008 (Pre-release) DataBound TreeViewItem
I have some troubles when I'm binding a TreeViewItem. I can't retreive the TreeViewItem from the ItemContainerGenerator . Here is a simple test case: <TreeView x:Name="tv"> <TreeViewItem x:Name="tvi" Header="RootNode" ItemsSource="{Binding ElementName=t, Path=Col}"> </TreeViewItem> </TreeView> TreeViewItem tvi0 = (TreeViewItem)tvi.ItemContainerGenerator.ContainerFromIndex(0); //tvi0 is null !!! but this one is working <TreeView x:Name="tv" ItemsSource="{Binding ElementName=t, Path=Col}"> </TreeView> TreeViewItem tvi0 = (TreeViewItem)tv.ItemContainerGenerator.ContainerFromIndex(0); // ok Does anyone know a workaround I want to use bin ...Show All
SQL Server Package Runs in 1 minutes in Visual Studio but takes 5+ (sometimes hanges) as Job
I have an SSIS package that when run from Visual Studio takes 1 minute or less to complete. When I schedule this package to run as a SQL Server job it takes 5+ and sometimes hangs complaining about buffers. The server is a 4 way 3ghz Xeon (dual core) with 8GB ram and this was the only package running. When I look in the log I see that the package is running and processing data, although very very very very very slowly. Has anyone else experienced this Thanks for your help Marcus Please share your connection strings... Could it be that the user running the job (the user assigned to the SQL Server service account) doesn't have access to the remote server/database ...Show All
Visual Basic Progress Bars
I am wanting to display a progress bar while my program is loading data from and access Db using the DataAdapter.Fill method. Does anyone know if this is possible thanks tattoo Dear All, I am using .net framework 1.1 (C# web application) but backgroundworker component is available only for .net framework 2.0. How will I calculated background work using .net framework 1.1 I just want to display some image or animated pic(% is not required for me) while some work is going on. Can any one help me to solve the problem Thank you, Regards CT ...Show All
SQL Server Connecting to SQL Server Express from an ASP Application
I have an ASP application which is currently using a SQL 2000 Database, attaching via SQLOLEDB. I am getting ready to migrate my ASP application to .NET using SQL Server 2005 Express. The only problem, is that I am unable to connect successfully from my ASP applcation to my DB under SQL Express. I have taken all of the steps that I have read, including the blog by Ming Lu. I still cannot be through. I have included both the messages that are thrown and comments about the drivers and connection strings. I have enabled TCP/IP and Named Pipes for SQL 2005 EE. I have also included the executable, port 1433, port 135, etc. in the firewall exceptions. I have defined the DB in ODBC using both the Native Sql driver and the SQL Driver. ...Show All
SQL Server SSIS data Convertion ??
Hello all Ho can i convert Integer to String in SSIS Derived column. Thanks in Advance Raj Lakamana Yes, you mentioned ' derived column '. But I already used ltrim(rtrim( )) before 'Data Convertion'. The same problems happened. What is "The data value cannot be converted for reasons other than sign mismatch or data overflow." Thanks ...Show All
.NET Development can i make the socket wait before sending data!?
is there a way , a method, or a property that enables me to make the socket wait before sending data! to explain my question more.. im sending data from the client to the server.. the server then distribute the data to all other connected clients.. now another client send some other data.. i want the server to hold sending the data received from the first client untill the data received from the last client is sent.. thnx You could put the data to send to the clients in a stack. Another thread(s) would take it from this stack and sent it to clients. When new data comes from a client you would push it on the stack and this means it will be sent before the data already in the stack. Of course proper thread synchronization is required ...Show All
Visual Studio Express Editions Parallel Port access... At the end of my rope!
HEEEEELLLLLLPPPPPP!!!! This is getting silly now. I have tried everything i can find on the net about Parallel port I/O but just cannot get my head around it. All the tutorials and guides are great up to a point but then say "just do this" and it is one or two steps above my level of knowledge. Ive played around with WinIo.dll / .sys etc but just cant get it to work. WinIo keeps giving my loads of errors about default-int, missing ; and syntax errors when i havn't even writting any code - just #include "winio.h"!!! Ive tried using inpout32.dll as well but got no where with that. Please!!! If anyone can point me in the direction of a step by step, beginners / dummy / simpleton's guide to sendi ...Show All
