tackett's Q&A profile
Visual Studio Visual Studio Hangs - Need to restart IIS
We have installed Visual Studio 2005 Professional on a development server. Occasionally VS hangs. The only quick fix we have found is to restart IIS. Obviously we do not want to have to do this each time it hangs. Any idea what is causing the problem VS hangs when I open an .aspx file. By default it opens in source mode. It always seems to hang when first opening the first file in VS. If it opens and does not hang, VS will run fine. TRU ...Show All
Software Development for Windows Vista Setting volume levels with IAudioVolumeLevel
Hello, I've been trying to set the level of a particular part by using the IAudioVolumeLevel interface of the API. I can Activate a valid instance of the interface, and when I call GetLevelRange on it, I get a min value of -34.5, a max value of 12, and a step value of 1.5. However if I loop through the valid step values and set them with SetLevelUniform, while comparing the value of the volume level slider in the Control Panel (which goes from 1-100), I get unexpected results. The number on the slider (and volume from the speaker) remains at 0 for the first 8 iterations of the loop until I get to a level of -24 for the SetLevelUniform call, at which point the slider value moves to 1, where it remains until the 8th iteration in the loop ...Show All
.NET Development How to make force my dll to be loaded in the beginning?
I have a .NET dll and I want every .NET executable referencing to this dll should load it at its start up. Assuming I dont have any controll over the applications built over the dll, is there anyway I can enforce this restriction from the dll side Assembly.GetEntryAssembly() will find the .exe assembly and Assembly.GetReferencedAssemblies() will find the referenced assemblies. Maybe this will help. ...Show All
.NET Development Serialport freezes
Hello, i'm developing app which reads incoming data from GPS receiver via serial port. The problem is that app freezes sometimes, even in Visual Studio IDE, when i attempt to close the app. Thank you for any kind hint. Yeah, at least until MSFT fixes this problem, that's a workaround that seems to be most practical. Windows makes sure that the handle to the serial port gets closed when your program terminates. ...Show All
SQL Server Need to insert parent/child relationship rows into DB
Hi I need to read a file and write parent/child relationship rows. I cannot seem to fugure out how I can generate keys that I an use for the relationship. I looked at using a variable, but have no joy - I cannot instantiate the variable and it errors - notsure wy. I also looked to see if I can write to a DB table that maintains key id, but not sure how to do that. I alo thought of setting up the parent table key to be auto-increment,but canot see how I can read this so that I can us it in the child row inserts. Help will be really appriciated Thanks in advance. Suresh, You can generate a surrogatekey in the dataflow by using a script component. With this method you will know right in the dataflow ...Show All
Visual Studio Express Editions VB 2005 Express asks always for registration
I am not sure what went wrong but VB 2005 Express Edition does not stop popping up on me via NotifyIcon Balloon Message, telling me that I should click there to register. I repeated this steps already several times and got even the THANK YOU email but when ever I open the program again I get the same ... I have no idea what to do about it! Any suggestions No, I used the download version (VB EXPRESS 2005) - I open the program every day several times but it does not stop telling me that I have to register! I registered in the beginning when I first started the program. Now I still get the message in the systray every time I open the application. Clicking on it and logging in for registering makes no s ...Show All
Visual C# Error when addin icon to project
I created an project in vs2005 C#. when tring to add icon to project -->properties --> open, error ecure and the project close. what wrong do i need to wait for spk1 If you get an error when opening project properties it sounds like there's something badly wrong with your system. Don't wait for service pack 1 - find out what's wrong with your system! First of all, what's the error (Secondly, why on earth would you post a message to a forum saying that "error ecure" without telling us what error just occurred It's incredibly difficult to help when you leave out critical details like that!) Second, try repairing your VS installation. If you go to Visual Studio in you ...Show All
Visual C++ CString corruption
This has happened before. I have data stored in a CString. I use atof to convert it. And I get this crazy number. And so I output using a message box and the number seems just fine as a string. So I then go to output it to a file as a string and a number and the string returns (null) and the number is all crazy. But write after I write the data to the file and I call messagebox the string is just fine. I'll post my code snippit. I have no idea whats happening. int count = -1; // Parse Data fin = fopen( "output.txt" , "w" ); for ( int i = 0; i < lines.GetCount(); i++) { if (lines [0] == '/' ) { // Start a new Data Series m_SeriesData.push_back(myData); myData.Clear(); ...Show All
Windows Forms How: Cross Thread Operations
Hello everybody. What is the way of accessing something from another thread.... For example, I create an instance of a form and show it... Then I create a new thread and start a method in it.... On the last line in this method I want to close the previously showed form.... Could you point me some directions about this .... thank you in advance! no the form does not have anything to do with closing the application it is just a simple progress form....when I press a button i show this progress form...then I create a new thread and start the "really big" function in it.... and what I want to achieve is whenever this "big function" is done....automatically to close the progress form ...Show All
Visual Studio Team System There are no tables in DB after database tier installation of TFS
I previously had a working installation of the TFS system, but was forced to rebuild the data tier, which wouldn't install with the old tables in the DB. To solve this I uninstalled everything from the data tier and began over from the begining. Everything goes well up until I install the database tier for TFS itself. The DT installs silently, as in no errors, but once it has run the DB looks the same as before, there are no new tables. I have tried adding the TFSSETUP account to DB admins and the same result occurs. This ultimately means the app tier can't find the DT installation on the specified machine. Why is the TFS install not creating the tables and is there another way to have them created or force the installer to try again ...Show All
.NET Development Out of memory exception (c#, .net 2003, large images)
Hi, I am developing an application (c#, .Net 2003, Framework 1.1) that deals with large images. The application captures multiple image frames and stitch them up into a large hige-res image. We are looking at 50+ frames and sometimes more than 100 frames of 1024x768 color images. I am also using double buffers for edit purposes. To get an idea of what this application does: beyond the image acquisition and stitching, it is very similar to Paint.Net ( http://www.getpaint.net/index2.html ) in providing tools to draw on top of the image. The program is hitting out of memory exceptions -- sometimes even with smaller images. Documentation on LOH seems to explain this observation well, especially with memory fragmentation a likely cause of ...Show All
Visual Basic DataSet Thread-Safety?
I have a multi-threaded application with several datasets that are read/written to from a couple threads. I have read that datasets can handle multiple readers and one writer. I have synclocks around all dataset writes and no synchronization around reads. I am experiencing random "Index was outside the bounds of the array." exceptions where a dataset item is in a conditional statement, for example: If CInt (CMPDAT.Tables(0).Rows(i).Item("ID")) = 0 Then Do I need to synchronize read operations as well Any help would be greatly appreciated. Thanks for the reply. I am still a little confused, for example I have a dataset that is only written to by one thread and read by an ...Show All
Visual C# How to delete a control during runtime?
Hi, I would like to know how to delete a control when the user presses the Delete key on the keyboard (For example, there is a label in the form, and the user clicks on it and presses Delete). I was trying to use the KeyEventArgs but it always gives me an error message stating that it is not set to an instance of an object.. I have a code that can select the control (RectTracker) it also can move and resize the control.. I kinda want a keylistener running in the background (if possible) to determine if a Delete key was pressed.. Is what i'm thinking possible ...Show All
Visual Basic Deleting all the records from an access database.
I have an access database that i need to empty before i import new records to it. I have tried filling the a dataset with the old data i need to get rid of and doing a table clear then a update but the change doesn't make to the database. I also tried to do a delete row but how do i get that to work for all the records in the database I have been look around all day and havent been able to find anything that works. I need some guidence please here is what i currently have Dim psrdCurrent As System.IO.StreamReader Dim pintCount As Integer Dim pstrLine As String Dim pstrFields() As String Dim tblEobData As New DataTable Dim pintrecords As Integer 'Need to clear database before putting in new records pintreco ...Show All
SQL Server sql script
Hello I want to create sql script for my database. I know about “ Generate SQL Server Scripts Wizard ” but it just give me script for structure of my database and I want all records of my tables too. And I’ve tried “Script table as / Insert to“via right click on my table too and it doesn’t give me a script to insert all records! How can I create script to insert all records of a table to another table with same column properties Thanks in advance. There is no funtionality for that, try to use this well-known script to accomplish your goals: http://vyaskn.tripod.com/code.htm#inserts HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
