RSUser08's Q&A profile
.NET Development Getting process running when user is not administrator
Hello, I have created a VB.NET application. I want only one instance of application to be running on one machine at a time. It worked with Process.getCurrentProcess and checking FilePrivatePart of Module\FileVersion\ For accessing the process class User on that machine needs to be an administrator. But my application is runned even though user is not administrator. Could any let me know how to solve this ...Show All
.NET Development My.Settings linefeed serialization bug?
Could someone please double-check this for me Create a new application setting called "test", of type String, then try running this code: My .Settings.test = vbCrLf Debug.Print( My .Settings.test = vbCrLf) 'Prints True My .Settings.Save() My .Settings.Reload() Debug.Print( My .Settings.test = vbCrLf) 'Prints False Debug.Print( My .Settings.test.Length) 'Prints 18 Debug.Print( "String is: [" & My .Se ...Show All
Visual Studio VS C++ 2002 .NET problems
Hi all, I have been using this without problems for the past year but all of a sudden I can't open certain solutions anymore. I have 7 applications and 7 setup projects in this solution but VS always crashes while opening the solution. I have tried to recreate a new solution by adding the projects from scratch but that doesn't help. I then checked the Help - Check for updates from inside VS and it downloaded service pack 1, however this installe ...Show All
.NET Development Cannot Desrialize what i have serialized
Hi I have an object which inherits other object. My base object has few public properties of type IList. When i serialize my derived object, there is no problem. When i try to desrialize the xml back to my derived object, it throws an error which says "Could not deserialize global::System.Collections.IList. Parameterless constructor is required for collection and enumerators". The same works in .NET 1.1 and not in 2.0. ...Show All
Visual C++ Pause in action with MSVC++.NET
Hi. I am wondering if there is a way to make all action stop for a certain amount of time. For example, with a timer, when the timer is enabled, the code execution continues after the timer is started. It doesn't wait for the timer to finish. In pseudocode, what I want is this: ..... code code Wait 5 seconds before continuing code code code ..... So that the computer would execute the first two lines of code, then wait 5 seconds before executi ...Show All
.NET Development internet monitors interfere with my httpwebrequest
imon dll is nod32 internet monitor and nl_lsp dll belongs to netlimiter... i have a httpwebrequest async connection in my code...sometimes it crash and i find imon.dll or nl_lsp.dll in my stack... Exception is Unhandled exception at 0x100049fd in eren.exe: 0xC0000005: Access violation writing location 0x00000000. > nl_lsp.dll!100049fd() [Frames below may be incorrect and/or missing, no symbols loaded for nl_lsp.dll] ws2_32.d ...Show All
.NET Development Software protection problem with MSIL
Hi, I am developping a software protection with the Win32 API. My protection system run perfectly with standard .EXE file but failed with a .NET .EXE file. Explaination of my software protection : I extract and encrypt the code segment of the .EXE file and i replace the original code segment of my .EXE file with the encrypted. The program is also protected because it cannot be run as it is. A loader launch a CreateProcess of my protected . ...Show All
Visual Basic how do I compare two values in two dimensional array where one is different (date range)
I have two two-dimensional arrays, both of them have a part number, date, and amount the only field that is different in both of them is date. How do I add two array values and more precisely the amount for the two parts so that the date from one array (3/27/06) matches the other one even though the date (3/25/06) is different I want to join both arrays by assigning 7 day difference to the date, so that (3/27/06) accepts dates that range from ( ...Show All
Windows Forms Moving controls doesn't work after migrating to VS2005
Hello, I am experiencing strange problem with move controls in VS 2005 Designer. I have a 2003 project which uses .NET 1.1 designer functionality: DocumentDesigner derived form designer, ControlDesigner derived control designers and custom implemented services. The solution worked perfectly when compiled in VS 2003. As I converted it to VS 2005 I had no problems compiling, and dialog editor works in most parts (including some ...Show All
Visual C# AccessViolationException thrown now and then
Hello, I have an application which is stable for most of time but sometimes it unexpectedly crashes (usually after a few hours of running). I have never been able to reproduce it on my development machine. The exception is always the same: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& ...Show All
SQL Server sql replication
As a newbie to sql I am currently investigating a deployment across 2 branches. My idea is to have 1 database, replicated between the 2 locations for performance reasons. In other words users in site A modify the local database while users in site b modify their local database and somehow changes in each site are replicated each way over the wan on a daily basis. Is this possible with SQL server standard 2005 If so, my only other question is I ...Show All
.NET Development help me about shortcutkeys in vs.net2003
Is there any shorcutkeys to add a comment tag on selected area in visual studio.net html edit box I find it only offer one in c sharp edit box. thanks! Oh,thx, I heard about it can add comment tag in html editor box form my buddy,but i tried it before and proved it had no support in vs.net 2003.So i post the question to get help, and i haven't thought it only be supported in vs2005. Sorry. Thanks a lot. ...Show All
Visual Studio Tools for Office VS 2005 RC1, VS Beta3
Why is there a Beta 3 if a Release candidate is already out this is rather confusing...should we be expecting any features in Beta 3 to be included in the release, or should we stick with RC1 also, i heard there is a tool to automatically uninstall previous beta version. Can someone point me to that tool thank you The only BETA 3 version I know os for Team Fundation Server, not Visual Studio 2005.... Latest version of VS 2005 ...Show All
.NET Development Receiving Data
back when i used VB, i had the Winsock control which took care of making connections and stuff. but now im using C# and i need a little help with the socket Class. in VB, Winsock has an event called DataArrival which executed when packets came. but in C#, the Socket class doesnt have that. the closest thing i could see towards getting the data is Socket.Reveive(). now my question is, does Socket.Receive() execute when data arrives or do i have t ...Show All
Visual Basic vb express + winsock api problem
hello, i try to use the winsock api in my program but when i call the WSAStartup from ws2_32.dll i get an Access Violation Error (could not read/write protected memory). I want to replace the System.Net.Socket because it causes some problems with packet loss/fragmented packets. (when the remote server sends many packets, the socket puts them in one big packet which my program gets at the end of the async receive. This way the big packet has to ...Show All
