shaw79's Q&A profile
Visual Studio How to Resume a single suspended thread?
Hi All, I am implementing a special purpose debugger package that works in conjunction with the VS Debugger Package (I'm not writing a new debug engine). When a program is being debugged, I load into it a special library that runs a thread (inside the debugged process) that reports data to the debugger using a socket communication. My problem is that whenever the debugged application execution is suspended (breakpoint /etc), my data reporting thread, that runs inside the debugged process, is also suspended. Any suggestions on how resume just my thread and keep it running Will the automation model be sufficient Grem I'll state the question once more since the thaw and freeze functions are not sufficient: I need to find a wa ...Show All
SQL Server Disabling SQLISPackage start/finish events sent to eventlog
I'm running my SSIS packages from a scheduler (WindowsService) that I wrote in .Net. For the logging of the SSIS events I only use te SSIS Log provider for SQL Server. Nevertheless, the package run start and stop events (and execution failures) are still logged in the Windows Event Log. Is there a way to stop SSIS from writing this event-log entries Yes the LoggingMode was set to UseParentSettings. I then tried to set it to enable and Disable but it still created an entry into the Event Log. Is there anything else I am missing ...Show All
Visual Studio Is it possible to change chart type at runtime?
I have a bar chart in Crystal Reports for Visual Studio 2005. Is it possible to change the chart type to Line at runtime. I'm writing the code in VB.Net but I can read C# code as well. Thank you in advance Bill ...Show All
Windows Forms If designer with new control crashes -what to do?
I modified control, that was already instantiated on the form. After rebuild solution, form designer can not open form - due to exception that it cannot deserialize control. how to handle this situation thanks To avoid losing work, you obviously need to find out what is wrong with the new control that causes the designer to crash. AFAIK, normal Windows controls persist in the CodeDOM generated code, not resources. I wouldn't know about the custom control that crashes of course. Deleting any reference to the control in the designer file should work. There's usually a line at the top of InitializeComponents to create the control and several lines below it to set its properties. Plus a Friend d ...Show All
Software Development for Windows Vista When does workflow instance released?
Hi, I wrote simple sequential workflow. The application sequence is very simple: 1. WebService gets a call and instantiates a processing object (that gathers parameters) 2. Processing object executes the workflow with parameters. Now the problem: I noticed that corresponding process (w3wp.exe) memory grows and hardly goes down (if at all) till the application pool's "idle timeout" reached and the process is shut down. I assume that workflow instances stay in memory and that's a reason why process' memory doesn't go down. Here is a only configuration I have in web.config regarding the workflow: <WorkflowRuntime Name="WorkflowServiceContainer"> <Services> & ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to define On Mouse Over eventin DirectX
I wish to create some onmouseover event function, can anyone tell me how to do it in DirectX, i've checked some example from DirectX tutotrial, the addbutton function got on mouse over event, but it's already preset in the library. If I want to set OnMouseOver event in my own code, what should I do. Thanks. kenneth1983 wrote: I wish to create some onmouseover event function, can anyone tell me how to do it in DirectX, i've checked some example from DirectX tutotrial, the addbutton function got on mouse over event, but it's already preset in the library. If I want to set OnMouseOver event in my own code, what should I do. Thanks. Look at the "CustomUI" sample in the DirectX Sample Browser. It shows ...Show All
Visual Studio 2008 (Pre-release) Supporting Readonly Properties
I have a problem with these... In fact, we often use readonly properties referencing other domain objects. It works well with DLinq when it comes to retrive data from the db and for insertions. On deletion, however, DLinq seems to try to dettach an entity from its related entities (even if on the left side of a n:1 relation) thus requiring a Set assessor which we lack : Bug. Ok, so searching the forum I read a workaround that proposed to map a protected field and expose it a public readonly property as are design requires it. But DLinq doesn't seem to want to map any of field to other entities... It's kind of a hard sacrifice for us to accept to add setters implementations because it's not the in the properties signature, and mainly : the ...Show All
SQL Server DtsBackup 2000 for SSIS??
Hi everyone, Day in day out I use this application in order to generate dts-backups but I wonder how do the same with our dear SSIS packages Jamie, any idea TIA The silence meant I was doing some work! I had no plans to produce a 2005 version. The way we work with SSIS, developing with local storage not on the server means we should always have copies. The easy integration with source control systems as well as the inability to edit packages in server storage just means that I cannot see the need for such tools anymore. ...Show All
Software Development for Windows Vista Run selective code in transaction
Hi, I am very new to this enterprise services based programming (COM+). I have created a Enterpriseservices based component with the TransactionOption property set to 'Supported'. Now, I would like to know the following things. How to handle database related queries which dont require any type of locking How to run a part of a subroutine in a transaction While in transaction, whatever tables I have queried gets locked until I commit or abort the transaction. Because of this I am facing deadlock problems. How to handle such situations where I am sure that a lock to particular table is required eventhough its under a transaction Thanx in advance. Regards, Ram. Hey Ram, ...Show All
Visual Studio Team System .dbproj files to be read inside a Developer Edition of VSTS?
At my workplace we have a number of editions of VSTS, one of those being the new Database Projessionals version for our DBA. We used to create a Database project, then had an app to combine all the .sql files into a master file for execution against our development server. It seems now that this new project type can better integrate into our build server and we will no longer need to use this sql joiner app. Regardless, all developers could view the standard Database project, but these new SQL Server 2005 (.dbproj) files are unreadable by the Developer edition of VSTS. While developers won't be doing many database changes, it's nice for us to be able to get latest and do small changes with code review on our databases, but moving to this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Calculating vertex normals
Hello there, I've been playing around with drawing primitives in XNA, and I've found it difficult to light my own meshes. I've tried using a BasicEffect with default lightning, but that doesn't work because I don't have any vertex normals. I need some more information on vertex normals because I'm having a little trouble understanding the difference from face normals. I just can't seem to get the normal calculations straight. I've used a custom vertex format called VertexPositionNormalColor that has normal information. Then, I've created a simple quad with 4 vertices and 6 indices to render it: // Init vertexList VertexPositionNormalColor [] vertexList = new VertexPositionNormalColor [4]; // Create vertices vertexL ...Show All
Software Development for Windows Vista Database Access within Activity
Hi, If some of my activities (such as Code Activity or Custom Activity) need to connect to the SQL database to collect or update some data. What is the best practice to store the Connection String I don't want to hardcode the connection string as it may change. Andy Ho Hi During some Activties like Design Time Activity the application cann't read information from Configration file, so we store information that is required in designe time in Registry and full these information when required. You can also create a file to put information but it is not a standered way of doing the job I think so., Because Microsoft Also use registery for information like this one, The store to retrive the registe ...Show All
SharePoint Products and Technologies Error when opening designer view in VS2005
I'm having a hard time trying to create a custom workflow for Sharepoint Server 2007 using Visual Studio 2005. I've installed the Sharepoint Server SDK as well as Visual Studio Extensions for Windows Workflow Foundation. When I create a new Sharepoint Sequential Workflow project, first problem I get is that the references to the Sharepoint DLL are not ok (exclamation marks in reference branch). So I copy those DLL files from my sharepoint server (I'm developping on a separate xp station) to my station and redo the references to the project. Then I'm able to build the project without problem. However, when I try to open the Designer view, I get the following error : Could not load file or assembly 'Microsoft.SharePoint.WorkflowAc ...Show All
Visual Studio VB .NET 2005 Solution Files + CVS
Hi, Im trying to import our new VS 2005 projects(ASP.NET 2.0 & VB) into WinCVS. Im having trouble though with checking the project out and then trying to open it. The problem comes from the fact that the solution files have the directories hard-coded into it. Is there a workaround for this I want to be able to put the project on CVS and then allow for other people to check the project out into a directory of their choice. Is this possible Any suggestions/workarounds Thank you. Eric Seidel In VS2005, directories are only "hard-coded" up to the relative path. For example, if the projects are in folders directly below the solution, only those folder names are written to the solution file. ...Show All
SQL Server For XML Path problems
Can anyone tell me how to add multiple columns with the same name Here is an example of the XML format I'm trying to create using For XML Path <TABLETYPE TYPEABBRV=“IDEADISAB” TOTALINDICATOR=“N”> <CATEGORY TYPE=“DISABCATIDEA” VALUE=“AUT”/> <CATEGORY TYPE=“AGESA” VALUE=“6”/> <CATEGORY TYPE=“EDENVIRIDEASA” VALUE=“RC80”/> <AMOUNT>10</AMOUNT> </TABLETYPE> Here is the query I was trying to use SELECT 'IDEADISAB' AS '@TYPEABBRV' , 'N' AS '@TOTALINDICATOR' , 'DISABCATIDEA' AS 'CATEGORY/@TYPE' , IdeaCategory AS 'CATEGORY/@VALUE' , 'AGESA' AS 'CATEGORY/@TYPE' , AGE AS 'CATEGORY/@VALUE' , 'EDENVIRIDESAS' AS 'CATEGORY/@TYPE' , EEC ...Show All
