Jump to content
Xtreme .Net Talk

gicio

Avatar/Signature
  • Posts

    103
  • Joined

  • Last visited

Everything posted by gicio

  1. Do you know some other tools like FxCop to test code?
  2. Hi! Can someone tell me how do I must set up my C# windows form solution to get the feature: "Group similar taskbar buttons" + same application icon + a groupe name. Regards, gicio
  3. Hi! I am looking for something like image recognition in .NET. Short story what will I do: Imagine I have a jpeg picture with a man on it. The background is much brighter as the man on it. Imagine it so: You have a white paper and a black figure on it. I will automatically add 10 textboxes on the picture. But the 10 textboxes can not be positioned on any part of the figure. I need a framework or a sample code to recognize the image and set automatically the 10 textboxes of any position on the picture where the background is white. do you know any sample code or a open source framework that provide me this possibility? Regards, gicio
  4. Hi! where do you get new project as IT Freelancer ( software engineer )? I mean world wide :) or only in europe.. I know only one site in germany: http://www.gulp.de do you know others? regards, gicio
  5. BIG problem with huge storage procedure execute on SQL Server 2000 SP4 Hi! I have a big problem with one of my storage procedures. First of all some information about the server: Dual XEON 4 gig RAM Windows 2003 SQL Server 2000 with SP4 On the database work at the same time 30 peoples�. But not all execute storage procedure. The storage procedure with that I have problems is executed only one time a day. The storage procedure is so huge that the SQL Server needs 11 minutes to execute it. The storage procedure do some work with data on the DB and return no values. The problem: When I execute the storage procedure directly on the SQL server ( with query analyzer ): execute OC_Auto the storage procedure works fine. BUT when I excetute the storage procedure with C# doesn�t work fine. The storage procedure runs only 2 � 4 minute and do not his complete work. But I don�t get any error messages. To execute the storage procedure I use the newest version of �Microsoft.ApplicationBlocks.Data� and �GotDotNet.ApplicationBlocks.Data� And this is the code: internal void Auto() { SqlConnection currentSqlConnection = ADOConnection.Connection; try { SqlHelper.ExecuteDataset(currentSqlConnection, "OC_Auto"); } catch( SqlException ex ) { System.Diagnostics.Debug.WriteLine( ex.Message ); Common.Logger.Log(Common.Logger.ERROR_TYPE ,"SQL Error",ex.InnerException); } catch( Exception ex2 ) { System.Diagnostics.Debug.WriteLine( ex2.Message ); Common.Logger.Log(Common.Logger.ERROR_TYPE ,"SQL Error",ex2.InnerException); } finally { currentSqlConnection.Close(); } } public static DataSet ExecuteDataset(SqlConnection connection, string spName, params object[] parameterValues) { return new SqlServer().ExecuteDataset( connection, spName, parameterValues ); } /// <summary> /// Execute a stored procedure via an IDbCommand (that returns a resultset) against the specified IDbConnection /// using the provided parameter values. This method will query the database to discover the parameters for the /// stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. /// </summary> /// <remarks> /// This method provides no access to output parameters or the stored procedure's return value parameter. /// </remarks> /// <example> /// <code> /// DataSet ds = helper.ExecuteDataset(conn, "GetOrders", 24, 36); /// </code></example> /// <param name="connection">A valid IDbConnection</param> /// <param name="spName">The name of the stored procedure</param> /// <param name="parameterValues">An array of objects to be assigned as the input values of the stored procedure</param> /// <returns>A DataSet containing the resultset generated by the command</returns> /// <exception cref="System.ArgumentNullException">Thrown if spName is null</exception> /// <exception cref="System.ArgumentException">Thrown if the parameter count does not match the number of values supplied</exception> /// <exception cref="System.ArgumentNullException">Thrown if connection is null</exception> public virtual DataSet ExecuteDataset(IDbConnection connection, string spName, params object[] parameterValues) { if( connection == null ) throw new ArgumentNullException( "connection" ); if( spName == null || spName.Length == 0 ) throw new ArgumentNullException( "spName" ); // If we receive parameter values, we need to figure out where they go if ((parameterValues != null) && (parameterValues.Length > 0)) { IDataParameter[] iDataParameterValues = GetDataParameters(parameterValues.Length); // if we've been passed IDataParameters, don't do parameter discovery if (AreParameterValuesIDataParameters(parameterValues, iDataParameterValues)) { return ExecuteDataset(connection, CommandType.StoredProcedure, spName, iDataParameterValues); } else { // Pull the parameters for this stored procedure from the parameter cache (or discover them & populate the cache) bool includeReturnValue = CheckForReturnValueParameter(parameterValues); IDataParameter[] commandParameters = GetSpParameterSet(connection, spName, includeReturnValue); // Assign the provided values to these parameters based on parameter order AssignParameterValues(commandParameters, parameterValues); // Call the overload that takes an array of IDataParameters return ExecuteDataset(connection, CommandType.StoredProcedure, spName, commandParameters); } } else { // Otherwise we can just call the SP without params return ExecuteDataset(connection, CommandType.StoredProcedure, spName); } } /// <summary> /// Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbConnection. /// </summary> /// <example> /// <code> /// DataSet ds = helper.ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders"); /// </code></example> /// <param name="connection">A valid IDbConnection</param> /// <param name="commandType">The CommandType (stored procedure, text, etc.)</param> /// <param name="commandText">The stored procedure name or SQL command</param> /// <returns>A DataSet containing the resultset generated by the command</returns> /// <exception cref="System.ArgumentNullException">Thrown if commandText is null</exception> /// <exception cref="System.ArgumentNullException">Thrown if connection is null</exception> public virtual DataSet ExecuteDataset(IDbConnection connection, CommandType commandType, string commandText) { // Pass through the call providing null for the set of IDataParameters return ExecuteDataset(connection, commandType, commandText, (IDataParameter[])null); } /// <summary> /// Execute an IDbCommand (that returns a resultset) against the specified IDbConnection /// using the provided parameters. /// </summary> /// <example> /// <code> /// DataSet ds = helper.ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders", new IDataParameter("@prodid", 24)); /// </code></example> /// <param name="connection">A valid IDbConnection</param> /// <param name="commandType">The CommandType (stored procedure, text, etc.)</param> /// <param name="commandText">The stored procedure name or SQL command</param> /// <param name="commandParameters">An array of IDataParameters used to execute the command</param> /// <returns>A DataSet containing the resultset generated by the command</returns> /// <exception cref="System.InvalidOperationException">Thrown if any of the IDataParameters.ParameterNames are null, or if the parameter count does not match the number of values supplied</exception> /// <exception cref="System.ArgumentNullException">Thrown if commandText is null</exception> /// <exception cref="System.ArgumentException">Thrown if the parameter count does not match the number of values supplied</exception> /// <exception cref="System.ArgumentNullException">Thrown if connection is null</exception> public virtual DataSet ExecuteDataset(IDbConnection connection, CommandType commandType, string commandText, params IDataParameter[] commandParameters) { if( connection == null ) throw new ArgumentNullException( "connection" ); // Create a command and prepare it for execution IDbCommand cmd = connection.CreateCommand(); bool mustCloseConnection = false; PrepareCommand(cmd, connection, (IDbTransaction)null, commandType, commandText, commandParameters, out mustCloseConnection ); CleanParameterSyntax(cmd); DataSet ds = ExecuteDataset(cmd); if( mustCloseConnection ) connection.Close(); // Return the DataSet return ds; } /// <summary> /// Execute an IDbCommand (that returns a resultset) against the database specified in /// the connection string. /// </summary> /// <param name="command">The IDbCommand object to use</param> /// <returns>A DataSet containing the resultset generated by the command</returns> /// <exception cref="System.ArgumentNullException">Thrown if command is null.</exception> public virtual DataSet ExecuteDataset(IDbCommand command) { bool mustCloseConnection = false; // Clean Up Parameter Syntax CleanParameterSyntax(command); if (command.Connection.State != ConnectionState.Open) { command.Connection.Open(); mustCloseConnection = true; } // Create the DataAdapter & DataSet IDbDataAdapter da = null; try { da = GetDataAdapter(); da.SelectCommand = command; da.SelectCommand.CommandTimeout = 0; DataSet ds = new DataSet(); try { // Fill the DataSet using default values for DataTable names, etc da.Fill(ds); } catch (Exception ex) { // Don't just throw ex. It changes the call stack. But we want the ex around for debugging, so... Debug.WriteLine(ex); throw; } // Detach the IDataParameters from the command object, so they can be used again // Don't do this...screws up output params -- cjb //command.Parameters.Clear(); // Return the DataSet return ds; } finally { if (mustCloseConnection) { command.Connection.Close(); } if( da != null ) { IDisposable id = da as IDisposable; if( id != null ) id.Dispose(); } } } What is wrong? Why run this storage procedure only good with the SQL Query analyzer?
  6. HI! After I install sharepoint on a win 2003 server I get a strange phenomenon. When I type in the IE http://mySharepoint the default page don�t open. But a window come up an tell me: File download�. �Do you want to save this file� Why? But when I type http://mySharepoint/default.aspx everything is ok... the default page come up.. The problem exists only with the default web page where I host my sharepoint. The administration page that is host on http://mySharepoint:3034/ doesn�t has this problem. On the default web page I already set under Document: Enabel Default Documents: to �Default.aspx� What is wrong with my settings? Regards, gicio
  7. Hi! I am looking for an ASP.NET alternative to gallery.menalto.com. Does anyone know an alternative? regards, gicio
  8. Hi! I am looking for some GUI Test tools for a windows forms app. Do you know some good? regards, gicio
  9. HI!! Let say I have an object and this object has a property of the type short. How I can check if someone set this property? When i try to check this like that: if( myObject.MyShortProperty != null ) { } I get an null reference exception. How I can check this without a null references exception? regards, gicio
  10. Hi!! I have some code that get the contant of a site and display it... it's a windows form application.... but it's too slow ( BTW: my internet connection isn't slow ;) ) here is my code: textBox1.Text = String.Empty; WebClient currentWebClient = new WebClient(); string strURL = _txtSiteUrl.Text.Trim(); byte[] aRequestedHTML; aRequestedHTML = currentWebClient.DownloadData( strURL ); UTF8Encoding currentUTF8Encoding = new UTF8Encoding(); string strRequestedHTML; strRequestedHTML = currentUTF8Encoding.GetString( aRequestedHTML ); textBox1.Text = strRequestedHTML; the code problem is this part: aRequestedHTML = currentWebClient.DownloadData( strURL ); What can I do to get a better performance? Kind Regards, gicio
  11. HI! In my last project I use the cool Windows Forms Validator Controls from http://www.dotnetmasters.com/samples.htm ... this controls works fine with standard Microsoft controls� In my new project I use Infragistics controls�and the Windows Forms Validator Controls doesn�t work with infragistics controls�. Do you know any Windows Forms Validator Controls that work also with Infragistics controls? Kind regards, gicio
  12. Hi! Can someone tell me can I use MsBuild with NuNit today? Or is MsBuild only available for MSDN subscriptions ? Or what do you use for an automatic build process + automatic NuNit testing. I looking for a 2 in 1 solution (build + NuNit) gicio
  13. HI! I am currently at the beginning of a new project and I would like to start with something out of the box. As we started our Web project we used IBuySpy Portal and it worked fine because we did not waste our time on authentification, authorisation and all that but we were able to start right with the logic of the application. Is there something like that for SmartClient? I mean template solution containing the newest application blocks of Microsoft? Any comments or help will be highly appreciated. gicio
  14. Yes but only in the proxy class. Is this the only solution? can't I debug the normal class not the proxy class of it? regards, gicio
  15. Hi!! I have a proble with debuging me app! my application comunicate with a web service and this web service send a request to another web service... the 1st web service return the data from the second web service to the application. How can I debug the 3 projects (1. windows application / 2 . web service 1 / 3. webservice 2) in 1 solution?!? How to set the refereces in this solution to hit all breakpoints in all of this 3 projects?!?! Please tel me your best practise to debug web services?! regards, gicio
  16. Build an enterprise application for a customer with aprox. 100 Clients ??? HI!!! If you would happen to get the chance to build an enterprise application for a customer with aprox. 100 Clients (�and increasing) which technology and architecture would you choose. The security policy is pretty strong so we would have actually only port 80 available. Besides that no deployment effort on client side is desirable. There is a 100Mbit LAN and this new application would be deployed on the intranet (internal network). The GUI of this application should be very rich and fast like win32 applications. What would you propose in order to fulfil those requirements. It is an enterprise app� so inputing data, printing invoices, packing lists, reporting, etc Clients are win xp machines It processes data on the server mainly, the presentation is on the clients Data is stored in a database 100Mbit has to do with the access speed to the backbone resources from clients.(only port 80) Any hints, links and ideas will be highly appreciated Regards, gicio
  17. Hi!! Yesterday I find out that two dimensional arrays are not supported by webservices. :( Can someone tell me how I can anyway use two dimensional arrays and web services?! regards, gicio
  18. Hi!! does anyone have some experience with BITS (Background Intelligent Transfer Service) and SSL (Secure Sockets Layer (SSL) and .NET ???? can someone give me some code samples how to use it with .NET? regards, gicio
  19. Hi! does anyone have some experience with Jpeg2000 and .NET ??? can someone give me some code samples how to compress a picture to Jpeg2000 with .NET ??? and how to show a Jpeg2000 picture although the picture is not loaded complete??? (show the Jpeg2000 picture with a lower quality). how to send (upload) DICOM Header of a Jpeg2000 picture??? best regards, gicio
  20. Hi!! can someone tell me where I can gind some information to get this cool feature to hidde text as it's used in the ASP.NET Forums beta search ??? like here: http://www.asp.net/Forums/Search/SearchResults.aspx?q=development need I a special control??? best regards, gicio
  21. Hi!!! can someone tell me how to make Windows XP 200 % faster? any registry hacks? regards, gicio
  22. Hi!! Did Infragistics or some other company else provide a web calendar conrol with the features and look of Microsoft Outlook calendar? I mean that feature that you can choose Day / Work Week / Week / Month view of the calendar. regards, gicio
×
×
  • Create New...