Software Development Network Logo
  • Microsoft ISV
  • SharePoint Products
  • Windows Vista
  • Visual Basic
  • Visual Studio
  • Smart Devicet
  • Game Technologies
  • Visual FoxPro
  • SQL Server
  • IE Development
  • VS Team System
  • Windows Forms
  • Audio and Video
  • .NET Development
  • Visual C#

Software Development Network >> BarrySumpter's Q&A profile

BarrySumpter

Member List

FassaBortolo
Dave Perry
Zatoichi
Parker Lewis
Neotech
Dimitry
zapacila89
JackMit
Adrien Regimbald
Thomas Olsson
jankowiak
Dr.Gigabit
Patrick8639
Julien Couvreur
Rico Alexander
FS2K
maestro_h
parveenpanjla
MethMath
michael towers
Only Title

BarrySumpter's Q&A profile

  • Visual C++ Hangs at WaitForSingleObject()

    Hi all, in my code i have sth like this: try{ ...... CriticalSection.Lock(); ...... CriticalSection.Unlock(); CriticalSection.Lock(); }catch(exception){ do something here } At the very first CriticalSection.lock(), it will go into the lock() function shown below and seems to hang at the statement in red color. I have placed debug points after the red line but did not seem to even go to 'return false". Nothing got to do with my try and catch statement right I am working in VS 2005. Previously without the try and catch statement, program was working fine. inline bool Lock(const DWORD& dwMilliseconds = INFINITE){ if (::InterlockedCompareExchange(&m_lLockCount, 1, 0) == 0){ m_dwThreadID = ::GetCurrentThrea ...Show All

  • SQL Server Timeout in copy databases

    Hello and thanks in advance for help, I have configured several jobs in the SQL Server Agent which do a copy of databases from a cluster of SQL 2005 to another SQL 2005 server. I did these from the "Copy Dabatase Wizard". When I run these it works fine with "small" databases but with the two bigger ones I get the following error after 10 minutes since execution started: Event Name: OnError Message: An exception occurred while executing a Transact-SQL statement or batch. StackTrace: at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand) at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(StringCollection sqlCommands) at Microsoft.SqlServer.Dts.Tasks ...Show All

  • Visual C# MS Access database store at startupPath's application

    Hi all C# forum members I have a small database application using C# and MS Access.Here is my connection String "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test\mydb.mdb;User Id=admin;Password=;" It works ok but I m now want to change the datasource to the folder same as folder of application. I mean that when I make a deployment , the data source is same as application folder of user. I 'v know that I need use this method in my connection string datasource =Application.StartupPath +database name but I dont know how to use it, Could you repair it for me Thank you very much. DongMT, Vietnam string connectionString = string.Format(     "Provider=Microsoft.Jet.OLEDB.4.0;Data So ...Show All

  • Visual C# splitting a string into an array ... where a ' is involved...

    I have a string like this: "'IRE','ENG','SCO','WAL'" And I want to put it into an array like this: string[] countries = codesList.Split("','"); Well thats the idea anyway but I can't get it to split, nor can I just replace the char ' . Any ideas U can try this............... string compStr = "'IRE','ENG','SCO','WAL'"; string[] countries = new string[4]; countries = compStr.Split(new char[] { ',' }, 4); foreach (string country in countries) { Console.WriteLine(country.Trim(new char[] {'\'' })); } ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Hmm?

    Wait, now I'm confused... aren't the managed versions of DirectX now Deprecated I heard they were deprecated as of October 2006 in favor of XNA. Is this true, or am I smoking something =) I think it's true. Well, I think MDX 1.1 will continue to be supported, but it's basically dead. MDX 2.0 is toast. And my impression is that there will be no MDX3 or managed DX10. So yes, XNA seems to be the deal. I'd like to try it, but it requires VC express (what's up with that ). Do you know if one can develop DCC applications with XNA Cheers ...Show All

  • SQL Server Problem in Printing using SSRS 2005

    There is a strange problem with the SQL server 2005 reports when the users are trying to print the reports. - The end users are using Windows XP system and a Canon colored printer. - T he application is in VB.NET and all reports are SSRS reports displayed in the application using report viewer control. - User is Administrator on the PC from where he views the report User is able to view the report through the application. On click of the print button, he is able to select the printer and fire the printout. A small window displaying “printing” comes up. But only the first few pages of the report actually get printed at the printer. On the other hand, If the reports are accessed using ...Show All

  • Visual Studio 2008 (Pre-release) Basic WPF Question

    Hi, I just started looking at WPF, xaml. I am going though one of those Microsoft E-Learning courses. From that I see in my Visual Studio 2005. File/New/Project, that I do not have the .NET 3.0 Framework choice. What actually do I need to start projects like the above. I have VS 2005, Windows XP. I am guessing that I need to do some downloads, not sure what though. Thanks Jeff Hi Eddie, I did install both and everything seems fine. I think I am going to need these for the San Fran VS Live conference in few weeks. Thanks Jeff ...Show All

  • Visual Studio 2008 (Pre-release) Why can I not obfuscate a WPF app

    For some reason I cannot run any WPF app once it's been obfuscated (I'm using the latest version of Dotfuscator Pro). It can be run if renaming is disabled in Dotfuscator. Does anyone know of a list of items to exclude from renaming (rather than disabling it completely) in order to use obfuscation on WPF applications Thanks for any ideas. You may be running into issues because there is no obfscation support for XAML compiled to binary format. You see, this compiled XAML has type and assembly name references. When you obfuscate your assemblies, that changes the type names so the references in the compiled XAML are no longer valid. This is a problem that the XAML team in WPF is looking to fix. ...Show All

  • SQL Server Additional Problems with Reporting Services

    I am trying to use Reporting Services but is proving more difficult than I envisaged. Here's the problem, when I try to use management studio to change the Server type to a Report server, it is disabled. Hence I cannot change it. When I read msdn, it stated that this was caused by the fact that report services was not installed. However, when I look at SQL Configuration Manager, it shows that Report Services is running. Am I not understanding something What am I doing wrong I know that in computing, that you should not do the same thing over and expect to get different results! I may have now have to disagree with that tenet. Somehow, magically, I am now able to set up reports in Business Intelligence, but ...Show All

  • Windows Forms Help...windows xp now asks if i want to start vista?????

    I have 2 hard disk drives in my computer. 1 with my normal XP installation on it and the other which I'd installed the Vista Beta on. Now Vista final has been released I decided to remove the beta and carry on with XP for the time being so I formatted the drive with Vista on. The problem I have now is when i first turn on my computer I get a choice as to which OS I want to start, XP or Vista. vista isn't there though and automatically selected so unless I sit there waiting for the selection screen to come up and manually choose XP, a timer runs down and selects Vista as my OS and the computer just hangs. Vista has obviously written something onto the boot sector of the other hard drive but does anyone know how I can remove or modify it ...Show All

  • Windows Forms Disable automatic exception handling in DataGrid control

    Hi, I have a DataGrid control (the project was migrated from .NET Fx 1.1, and we don't use DataGridView). When the DataGrid commits a row to the data bound DataSet, if a constraint is violated, the DataSet throws an exception, and the DataGrid automatically shows a MessageBox. I would like to change that MessageBox but, if I catch the exception, the DataGrid doesn't roll changes back. Is there a way to ask DataGrid to handle exceptions, revert changes, and refrain from showing a MessageBox Thanks in advance Hi Ken, Thanks for your answer. The exception I'm trying to catch is a row-level validation exception, i.e., it is fired when the DataGrid calls EndUpdate on the DataRow and the ...Show All

  • Visual FoxPro convert memo field and contents to text file

    Hi, I have a table order.dbf in visual foxpro which contains of memo field. My table is as below:- order_no order_date prdcode order_qty remark B00000001 26/07/2006 2020173 10.0 memo When I double click the memo I'll be able to see the details. Eg. order has been cancelled. I would like to convert all the table information including order has been cancelled to text format with a specific alignment. I'm beginner user of visual foxpro. Kindly advice how to do that. Thank you. Hi, If your memo field value length not more than 255 characters, you can SELECT order_no,order_date,prdcode,order_qty, LEFT(remark, 255) as remark ; FROM mytable INTO CURSOR mycursor COPY ...Show All

  • Commerce Server Guidance on number of catalogs and number of products

    Hi All, In the CS docs there is the following page Performance Considerations in the Catalog System. In this page it says (underlining added by me)... Number of Catalogs The relationship between the number of catalogs and performance is very complex. However, a basic guideline is that fewer catalogs are bette r, depending on hardware and your specific scenarios. This guideline is valid up to around 500,000 products per catalog . Beyond that, more advanced configurations may be needed, based on your performance requirements. Now, in the Starter Site Performance guide the catalog config was... 15 catalogs with 1,000,000 products each 6 virtual catalogs with 700,000 products each This has me a little confused as I would ...Show All

  • SQL Server How to check whether SSIS is installed

    I'm using the import wizard to create a new table from a flat file source.  The table gets created but no data gets copied.  What's wrong   Here's the report: Operation stopped... - Initializing Data Flow Task (Success) - Initializing Connections (Success) - Setting SQL Command (Success) - Setting Source Connection (Success) - Setting Destination Connection (Success) - Validating (Error)         Messages         * Error 0xc00470fe: Data Flow Task: The product level is insufficient for component "Source - inSsrc_txt" (1).          (SQL Server Import and Export Wizard)      ...Show All

  • .NET Development Circular reference

    Hi, I have a webmethod returning a "tree" but each node has a reference to its parent. But the XMLSerializer doesn't support circular references. Is it possible to return such circular reference types from webmerthods Thanks, Kostadin XML, with its parent-child structure format, doesn't support circular references. What you can do is use the <XMLIgnore> attribute to prevent the XMlSerializer from the serializing that field, then on the client re-build the circular reference. http://msdn2.microsoft.com/en-us/library/system.xml.serialization.xmlignoreattribute.aspx You could also use a dataset as it supports circular references, not through pointers (ByRef), but through PK/FK (int ...Show All

©2008 Software Development Network