Software Development Network Logo
  • Microsoft ISV
  • Visual FoxPro
  • Windows Forms
  • SQL Server
  • Visual J#
  • .NET Development
  • Game Technologies
  • VS Team System
  • Windows Live
  • Visual C++
  • VS Express Editions
  • Visual C#
  • Visual Studio
  • Architecture
  • Windows Vista

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

halfasleeps

Member List

Waldis
supagu
Izzy Gryko
Luc123
Liamas
TonyMarques
John Hennesey
Rubal Jain
John UK
Kryor
talay
Alexan
Yury K
Frustrated_in_Boulder
Embedded Developer
SG2005
dsaddan
zeroXML
SysDev
kicke_
Only Title

halfasleeps's Q&A profile

  • SQL Server Stalled restore? SQL 2005 Standard Edition

    Hi we are trying to do complete restore from a SQL 2000 bak file. The file is 95GB. After running restore database statement, which took about 5 hours, the database shows status "Restoring..." And it's been the same for 12 hours so far. I checked perf mon and it shows zero activity in processor, phy. disk tranfer, and SQL restore throughput. If anyone can confirm this is normal please let me know. I may have to call MS support tomorrow morning if this continues. I guess it should complete the restore within 2 hours, as we have restore 100gb database in the same time on a normal compaq DL380 serv ...Show All

  • Visual C++ Unmanaged allocations in mixed code

    I am writing application using C# UI level and C++/CLI libraries which internally work with legacy unmanaged C++ code. Making stress tests I found that after long time unmanaged memory allocations (C++ new) fail because there is no memory available. My guess is that GC is too lazy to make collection, so it allows to managed objects to take all available memory. So I added GC.AddMemoryPressure call for every new operator, and GC.RemoveMemoryPressure call for every delete operator. However, it didn't help, and application still crashes in situation when unmanaged application successfully works. What else can I do Is there any way to contro ...Show All

  • Visual Studio Express Editions Adding a data source

    Finally got the Northwnd.mdf file to work.  Now when adding it to an application, the dataset doesn't appear in the "Data Sources" window on the right.  It is listed in the Data Explorer on the left but not on the right.  So,,,, no drag/drop feature on a form.  This is with the latest download, not the beta version. Drag and drop is not supported from the server explorer onto the form.  I understand why this seems like an obvious feature to have, but I think that there are a few good reasons for not having it: Adding a new data source to your application is not a very common event.  You only need to ...Show All

  • Windows Forms HowTo: Launch Browser window from winform usercontrol ?

    Hi, How do I launch an URL from inside a UserControl in Winforms. I can Launch using Process.Start("http//Msn.com/"); but the problem is it opens in the same usercontrol window  I need to open a new window   (lke javascript window.open) Thanks for the Help. Varadhg Hi, I've tried the above, but unfortunately I'm getting a security exception.  Do you have any idea how I can solve this issue Thanx ...Show All

  • Windows Forms How can I use double buffering?

    Hi! How can I use doublebuffering in C#. I've made a program wich draws an ellipse every 1/10 second. When the ellipse is very big it flashes badly and it's not so nice to watch. Could someone help me on this and tell how doublebuffering works in C#. Thanks Timo (Moved to Windows Forms forum) It depends if you're using .NET 1.1 or .NET 2.0. In both cases you will need to derive from a control. For .NET 1.1, set the controlstyles: SetStyle( ControlStyles.Doublebuffered | ControlStyles.AllPaintingInWmPaint, true );   .NET 2.0 improves on this: The prefered method is to use the DoubleBuffered property: ...Show All

  • SQL Server Using VB2005 Express to access a SS2005 Express Edition DB: O/S Error 32

    Looking for help in diagnosing this error: Unable to open the physical file "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\cartracker.mdf". Operating system error 32: "32(error not found)". An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\cartracker.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. I am using Visual Basic 2005 Express Edition along with SQL Server 2005 Express Edition. Now here's what I did: Rather than use the Database Explorer within VB2005 EE to create my database, I th ...Show All

  • Visual Studio 2008 (Pre-release) An unhandled exception('System.Runtime.InteropServices.COMException') occurred in Xws_reg.exe[2572]

    When I installed "winfxsetup-Runtime-3.0beta2-September(CTP).exe", it was blocked by this exception"An unhandled exception('System.Runtime.InteropServices.COMException') occurred in Xws_reg.exe[2572]". Would someone tell me what has happened and how to fix it Thanks a lot! My PC details:           WinXP sp2 (Simplified Chinese )         .Net Framework 1.1         .Net Framework 2.0         VS2003(Professional Edition)         Visual Studio 2005 Beta ...Show All

  • SQL Server Report Publishing broken

    I work for a large school and we use Reporting Services 2000 to produce various confidential reports for staff on our secure web server so that they can be accessed at home. Students have access to a different part of the web server. Recently we found that students could access part of the site they should't be able to: it turned out to be caused by Front Page Extensions (on Server 2003) adding the 'Network' account explicitly to all directories with 'Read' - very annoying. I dutifully removed front page extensions and the extra permissions and this fixed the access problem. However, now we can't do certain things with reporting services. ...Show All

  • Windows Forms include external executables in setup

    hello one of my application's classes, calls some external executables (.exe files), for example the 7Zip command line tool 7Za.exe to decompress some files. how do I include these files in my installation thanks paul One of the easiest ways is to simply add the exe in question to your project and in its properties set the Build Type to Content. If you are building a ClickOnce installer that is really all you’ve got to do as it will automatically be added. If on the other hand you are using a Setup Project, in addition to grabbing the Primary output from the project where you are ...Show All

  • SQL Server Convert UTC time to local time

    Hello, I am new with the reporting services. I am creating a report and I need to display date/time on the report. But the servers stores those date/time in UTC. How can I convert them to the local time in my report.   Thanks for your help.     You need to use System.TimeZone.ToLocalTime(UTCTime). See http://msdn2.microsoft.com/en-us/library/system.timezone.tolocaltime.aspx . You should be able to use TimeZone.CurrentTimeZone if you want to convert using the server time zone. ...Show All

  • Smart Device Development VS2005 always deploys framework files

    I am developing an application for SmartPhone 2003 using VS2005. When deploying the application VS always copies the standard framework files (System.dll, etc) to the target application directory even though these are already in the GAC.  The app runs fine on the GAC files if the files in the app directory are deleted.  Any way to stop this download (to save time and space on the target machine, especially if multiple apps are under test) What do You hit build or deploy because if you hit deploy it should only copy the program files and send them to your mobile device but if you hit build it will s ...Show All

  • Visual Studio 2008 (Pre-release) DLinq Database Creation

    Hello everybody! Just some suggestions: 1) I'd like that .CreateDatabase() method from DataContext creates the Indexes by something like class attributes thus I would not need to do nothing on the Database IDE I think that database it's only to store objects and I prefer to parse manually objects also because can it have custom constraints. It has some plans in these scenario for next version 2) I'd like also of the DataContext translate types changes to the database througth something like "AdjustDatabase()" method. 3) It has some plan or research in Microsoft to an OODB product If no, Why not Thanks and ex ...Show All

  • Smart Device Development Making bluetooth and GPRS communication in Pocket PC

    Hi all, I'm trying to make bluetooth and GPRS communication in a Pocket PC. I defined the connections in port COM4 (IN)+COM5(OUT). The connections for external devices, one with bluetooth connection and another with GPRS connection. When I build an application to talk with the two devices it connected the bluetooth one but faild with the GPRS one. What can be the problem What is the right way to make the connections Please help... Hi, GPRS may be using on of the COM ports you've specified.  Try changing the COM ports for Bluetooth to something different and see if that does the trick. -Anil. ...Show All

  • Windows Forms BUG: Focus for a MessageBox

    I'm pretty sure this is a bug of some sort, but if this is by design, then my suggestion would be to change it!  :p  If I have one TextBox on a form and have a method that handles the KeyUp Event.  In the event, I have code to check for if the user hit enter.  When they hit enter, it goes out to a table and& ...Show All

  • Visual Basic Ping and detecting loss

    Hi, I've looked through the ping class and was wondering if there is way to determine the packets sent and received (packet loss) Thanks in advance! Well, yes... Just run the Ping.Send() n times and check its response... Private Sub pingHost( ByVal source As String , ByVal numOfPackages As Integer ) Dim p As New System.Net.NetworkInformation.Ping() Dim pReply As System.Net.NetworkInformation.PingReply Dim validPackages, invalidPackages As Integer For index As Integer = 1 To numOfPackages pReply = p.Send(source) If (pReply.Status = ...Show All

©2008 Software Development Network