NuclearChicken's Q&A profile
.NET Development Critical Finalizers are not called
Hi, I have tested the new CriticalFinalizer feature of .NET 2.0 to improve reliability. But so far I am less than impressed that if any normal finalizer screws up by throwing an exception the Finalizer thread dies. This behaviour is quite unfortunate when you try to do something in a reliable manner where you expect to be called even if somebody did screw up. More details can be found here: http://geekswithblogs.net/akraus1/archive/2006/10/30/95435.aspx Is there a way to resurrect the finalizer thread or at least handle the exception inside the finalizer thread and continue with the CriticalFinalizer list Yours, Alois Kraus < TaylorMichaelL@discussions.microsoft.co ...Show All
Windows Forms Fill in a Grid Freeze Problem
I have a question reguarding how to impove the perfermance to show data in grid! I have a lot of data to show up in a grid, therefore my app freezes for a little while until it finishes, what I did was excuting the fill method in a thread to speed up the process and make smooth, but it did not, here is my code: private delegate void GridCallback ( DataTable msg); private void GridFunction( DataTable msg) { dataGridView1.DataSource = msg; } public void GridThread() { dataGridView1.DataSource = null ; SqlConnection testConnection = new SqlConnection (connectionString); SqlCommand testCommand = testConnection.CreateCommand(); testCommand.CommandText = "Select * from Claims wh ...Show All
Visual C# Reading digits from String
Hi guys, I'm kind of new at this and I seem to have very small experience on the C# language... I hope someone can help me out. I need to built a console application that will read a card number with the following format ( 999-999999-9). The program needs to identify the la number which the verification digit . With the digit it determine if the card number is valid or not. I started out using a long variable but it wont accept the "-" so i decided to use a string which it can take the entire statement as the software requires. How i can read the digits ignoring the "-" and storing the last number on a seperate variable Thanks Guys thanks for replying I got the first part of the program done thank to a ...Show All
.NET Development Socket Listener on in use Socket
I am trying to construct a port listener that listens on port 445, which i believe deals with windows file sharing... I wish to display a message to the user that a network user has connected to there PC and retrieve the remote connection details allowing the local user to accept or end the connection. I have tried many things and can get this working on most ports except port 445 as it is already in use by the OS... Is there a way i can achieve this the listener sample below: try { IPAddress ip = Dns.GetHostEntry(Dns.GetHostName()).AddressList[0]; _listener.Bind(new IPEndPoint(IPAddress.Any, 445)); _listener.Listen(445); _listener.BeginAccept(ConnectionReady, null); return true; } catch { re ...Show All
Visual Studio Team System How to handle large numbers of projects and binary references
Currently we are in the midsts of moving from VS 2003 and VSS to VS 2005 and Team Foundation Server. Although we are a small development team of 4 developers, we manage and code over 200 projects which we currently have broken down into approximately 30 solutions. Right now our VSS has the following structure: $/ $/Company $/Company/Folder $Company/Folder/Solution1 $Company/Folder/Solution1/bin $Company/Folder/Solution1/scripts $Company/Folder/Solution1/Project1 $Company/Folder/Solution1/Project2 ... $Company/Folder/Solution1/ProjectN $Company/Folder/Solution1/refs $Company/Folder/Solution2 $Company/Folder/Solution2/bin $Company/Folder/Solution2/scripts $Company/Folder/Solution2/Project1 $Company/Folder/Solution2/Project2 etc... The ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Catch the Maximize
So, in our game the user can resize the window proportionally, since we catch the WM_SIZING event... works fine, and DirectX scales nicely (D3D9). But when the user clicks the maximize gadget, then after maximizing, the window resizing is then disabled by windows Is there a way to catch the Maximize event, so that we resize ourselves, or is there a way to 'unlock' the window, so the user still can resize the window normally (IsZoomed returns true) thanx in advance... Sodan2, Just to add to what waruwaru has responded, you would catch the maximize event in your message loop by trapping the WM_SYSCOMMAND messages. I have included a code snippet below to show how this would be done. Thanks. ...Show All
Windows Forms I cannot get designer view....
Hi, Yesterday I was stuck with my project, and decided to make a new one. I thought it can give me a fresh sheet to work on. However when I was trying to move my Form classes( I move the file to the new project's folder and add them as an existing item), I lose the designer view of them, I mean I (honestly) cannot design my Form classes only by reading the code, can someone help me please .... Thank you I change the namespace in the .cpp and .h file to the new project's namespace. But still I cannot get the designer view, It seem that the resx file doesn't want to combine with the .h file. Or is there anything I missed ...Show All
Visual Studio Express Editions How can I specify the location where a form pops up?
When I click the "Help" button, the Help form pops up at random locations. How can I specify the location where it pops up Private Sub HelpButton_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles HelpButton.Click Dim f20 As AccDragDropHelp = New AccDragDropHelp f20.Show() End Sub The following will specify the position of the form popup to a manual location at coordinates 100,100 THis gives you pretty specific control over the form - instead of setting the startposition manually you can use some fo the other options for this. http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.startposition.aspx With various se ...Show All
.NET Development BC30456: 'InitializeCulture' is not a member of FIXES
Windows 2003 Server SP1, ASP.Net 2.0 BC30456: 'InitializeCulture' is not a member of Have a bug in your code but throws this error instead of the actual error Or getting this error randomly Or a similar error complaining that an asp.net method is not a member of a class like 'Page' when it is! and mashing refresh a few times sometimes makes it go away... After 2 Days of extensive search on the internet and finding plenty of people with this error and very little replies and resolutions, I took upon myself to get to the bottom of this (unacknowledged ASP.net framework bug) and list some steps to help all of you work around it. 1. If you use Visual studio to publish your site, during the publishing stage ...Show All
Visual C# Time
Okay, so I am trying to make an alarm clock program for computer, to familiarize myself with C#. What I need help with, is I have the dateTimePicker tool for setting the alarm, and I have a label for displaying the current time. My coding problem, as it were, is that I cannot figure out how to make the label display the current time, or how to get my program to play the music when the time comes around. I already have the ability to open a file, and have set the file filters for WAV, WMA, MP3, MP4, and MIDI files. so, my program can open files, but of course, at this moment, it cannot use them. Any help would be greatly appreciated. well there will be ways for you to do it but it will take time a ...Show All
Internet Explorer Development How do you check if Javascript is enabled?
Does anyone have an example of checking if Javascript is enabled <noscript> <meta http-equiv="refresh" content="0;url=need_javascript.html" /> </noscript ...Show All
.NET Development impersonating the user initiating an action over the network
I am trying to write a simple server/client application that will perform operations on the server using the permissions of the person running the client. I have saught to do this by serializing a WindowsIdentity object representing the client and sending it through a NetworkStream that is connected to the server (which will run as a windows service). Then I attempt to impersonate the user on the server using the WindowsIdentity object. Well, aparently the WindowsIdentity object does not contain a full set of credentials because once it gets to the server it simply sais that the handle is bad. I can see how this situation would happen, but what to I need to do to transmit the user's security token to another computer so tha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting up dev environment for Directx 10 on Vista beta
Hi, What software do I need in order to build Directx 10 based applications Can I use free version of Visual C++ Express 2005 Thanks Yes, you probably need to download the Windows SDK . ...Show All
Visual Studio Team System Retrieving of images from picturelibrary
Hi friends, Hope everyone doing well... Here is my requirement: 1) Open a new announcement with url field 2) Think that some pictures are there in picturelibrary 3) We have to give the picture name in the description field. When we save this announcement we have to search the picture library with the given description name and store in the URL field.... we can do this one by creating a new webpart. But we can do this one by using javascript also. Please give me a good suggestion to implement this..... Hi, You should be able to find better webpart/SharePoint help in the SharePoint newsgroups. Check out the one on design and customization: http://www.microsoft.com/technet/community/newsgroups/dgbrowser/en-us/defa ...Show All
Windows Forms How to do it
like if i Click on the Button [ Memberlist ] or [ Monsters ] and so it will go to the Information about Memberlist on the Same Form and if i click [ Monsters ] it will go to Monsters Information. Is there a Sample or a Tutorial how to do that or can you show me here That works with Microsoft Visual C++ 2005 Express Edition I looked all over and Cant find any info about this I like to make a Program just like that one but in English and in C++: http://www.filewire.com/download.php id=a5e677c31c6e0fb6b33e8d8 Sorry for bad English ok thanks for replaying but i got to ask you this. sorry for stupid Question but you said : &nbs ...Show All
