Suricate's Q&A profile
Visual Studio VS2005 breaks on unhandled exception in asynchronous code
I am using BeginInvoke and EndInvoke on a delegate to call a function that throws an exception. There is no error handler in the delegate function, because I want to catch the exception when EndInvoke is called. This works fine with both .NET 1.1 and .NET 2.0, but in VS2005 beta 2, the debugger breaks in when the exception is first thrown warning me that I have an exception that is unhandled by user code. Is there a way I can stop the debugger from breaking in in this scenario VS2003 did not do it, and in any case it is debatable whether the exception is in fact unhandled. I've found that someone else report ...Show All
Windows Forms Focus of a TabPage
I have a tabcontrol that loads 6 tabpages on load. the first thing that I do is clear all the tab pages from the tab control and only add the tab pages back that work with the users request. The problem I am having is that when I began removing the tabs and adding them back it seems I have lost the ability to use th ...Show All
Smart Device Development help needed
i'm new 2 vb.. so there r lots of things i still don understand. i'm doing a project... i wuld like 2 delete an item which i've added in the listview wen i click "delete" in e menuitem, it is suppose 2 delete e item i selected.. though the item is remove from e listview, but wen i try 2 add e same data again, i cant add as the data is already recorded. so how do i completely remove the item n how do i delete e item which i select n not others i juz wan 2 delete the item which i've selected in e listview. erm... i hav 2 get the index of the item and each item hav 5 elements. so i ...Show All
Visual C++ VS2005 IDE Bug with static lib dependency
Before I report what I believe to be a bug in the IDE's dependency code regarding static libraries I will report it here. Maybe there is a workaround or maybe, even though the IDE's shows it as a bug, it is not really occuring as one in actual practice. As a simple example for a more complex actual problem, I create a solution with a C++ CLR Class Library and a Win32 static library. I then setup my project dependencies so that the class library depends on the static library. My solution, by default is setup for a Debug build. When I open the properties for the properties for the class library, the linker command line shows that the static l ...Show All
Smart Device Development Remote tools without ActiveSync
Hello, is it possible to use the remote tools of VS 2005 on a device without an ActiveSync connection Best regards Olov This should be possible. I have a blog entry pointing to the documentation for deploying and debugging from the IDE with a non-activesync device ( http://blogs.msdn.com/jeffabraham/archive/2005/11/01/487934.aspx ). I believe that if you substitute attempting to connect to the device from the remote tool for start debugging/deploying, everything should work. Thanks, Jeff Abraham Visual Studio ...Show All
Visual Studio Deploying CR IX with Windows Forms Apps
I needed to create numerous reports and started with the CR IDE within VS 2003. The UI is awful, so I purchased CR IX full version to get a decent UI to work with. The intention is to deploy the CR viewer and rpt files with the app and push data into the reports via ADO.NET dataset. All of this works fine. But when I build a deployment project, CR insists a merge module be used and it tops out at 63 MB. The merge module contains lots of *** thet I do not want to install. The merge module itself has user selectable components that will be installed, but from the 63 MB merge module which has to be deployed to the end ...Show All
Visual Studio Team System Visual Studio crashes running web test many times
I have built a web test with the view to running as part of a load test. For the most part I can run the test fine from Visual Studio and have done so with up to 250 cycles of the test (i.e. fixed run count of 250). As I had it running so well I decided to increase the run count and leave it running while I went on holiday so I set the run count to 10000. So it would be like a single user running this process over and over. In addition I figured it would give us a good amount of test data for subsequent tests. I just got back and found the dreaded software error message that was generated when Visual Studio crashed and the usual messag ...Show All
SQL Server How does replicaiton work in this scenario...please help.
Hello all, I am a newbie when it comes to replication. I have read the BOL but I was overwhilemed with the amount of information about replication. We are planning to have a server with sql server 2005 and disconnected laptops with sql server express. How would replication work in this scenario assuming we are using merge replication: Table AA [ a replicated table on the server and 9 columns] User #1 has table AA on his laptop... and has added 3 records, deleted 1 and update 1 record (5 transaction in total)... Table AA has 3 new records added after AA last sync his replica... Joe Admin comes and decided to make schema changes to table AA ...Show All
Visual Studio 2008 (Pre-release) Using custom base page in Browser app (February CTP)
Hi! I'm building a Browser app and would like all pages in my project to subclass my own implementation of Page (which is a subclass of System.Windows.Controls.Page). The only problem is that the class is partially defined in the "code behind" file of the XAML document, and partially in the .cs file generated by Visual Studio. If I specify my own base page as the base class of my page, the compiler gives me the folloing error: Partial declarations of 'WinFXXAMLBrowserApplication1.Page1' must not specify different base classes. How would one go about doing this Thanks for any help. ...Show All
Visual C++ Need help with SendDlgItemMessage(...CB_FINDSTRINGEXACT..)
I'm getting a "Unspecified Error" when my code got to the SendDlgItemMessage to retrieve the index that is a matched to the string that I sent. Can someone see how I coded this incorrectly Also, the index value is return through lResult. How do I get the index from lResult variable It's defined as IRESULT which is a long pointer. Thanks. PWSTR SR= bstrtSearchResult; //This is the content of syamrk-ComputerReference token = wcstok(SR, seps1); for ( int i = 0; i<2; i++) token = wcstok(NULL, seps1); //Find the 3rd forward slash token = wcstok(NULL, seps2); //Find the 1st comma and we got the symar ...Show All
Windows Forms "There is insufficeent memory or disk space.Word cannot display the requested font."
"There is insufficeent memory or disk space.Word cannot display the requested font." Above message coming when i open a word file in Webbrowser control. It is coming after opening 10 files sequentially. I colse the form every time which is having the Webbrowser control. Maybe the word is not freeing the memory. Here i am inserting the code also. Public Class frmFile Dim oDocument As Object Private Sub frmFile_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing oDocument = Nothing AxWebBrowser1.Dispose() End Sub ...Show All
Visual C# running a process from memory (as opposed to from the file system)
I have an embedded exe (gpg.exe) in a class library I'm writing. my problem is I dont want to extract the executable to the file system, but instead would like to run the process from memory. Process / Start Info take a file system string path to start the process. any clues as to how I might be able to replace some part of that functionality so that I can load the executable from memory into that Process object am I chasing a lemming, or does anyone think this is possible I don't know in what way you embedded the gpg.exe in your class library. But if you can get an Assembly reference to the ...Show All
Visual Studio Tools for Office KB 907417 & 908002
Hi; Asking new because I think this got lost in the message it was a reply to... Just to confirm, if I have run the latest windows update and it shows no updates for Word, then the fixes in KB907417 should be on my machine - correct I have never run the fix in KB907417 and on my dev machine it has version 7.10.5077.0 but my test system, which shows no pending office updates, has 7.10.3191.0. So it looks like I do have to install it. Do we run this same update for Word 2002 and Word 2000 Or is there a different update in their cases And for our customers, I assume we have to point them at this fix Or will it be included ...Show All
Visual C# Using Timers in a console application
Okay, so... I've only worked with Java so far, and never even understood multithreading in that, but anyway, now I'm REALLY lost. Yes, I looked all over for tutorials, but they were all talking about applications in windows forms which have their own threading thing going on apparently, and mine is a console application. So here's my question. I have this (using Syste.Threading.Timer): t = new Timer(callback, null, Timeout.Infinite, Timeout.Infinite); t.Change(0, Settings.FRAMERATE); //Start the timer Now what do I do If I just say while(true) { } nothing happens. If I say Thread.Sleep(500); this thread sleeps for a bit, then executes again ...Show All
SQL Server How to check the space actually used in a data file?
Hello, Is there a way in MSSQL 2005 to check how much space is actually used in a datafile Thanks (1) for tempdb files you can use sys.dm_db_file_space_usage. This DMV is not available for other databases.(2) You can use dbcc checkalloc to find space usage in the database but not specific to files (3) you can use dbcc shrinkfile() command and set the shrink target to roughly the size of current file, you will be able to fine the used/unused space. I tried this with reasonable success (4) you can used sp_spaceused to get the full information on database but not specific to files (5) you can use this link to get more i ...Show All
