I'm analysing a deadlock that's occurring when using a native library alongside managed code. I'm using WinDbg to debug the problem with the intention of saving a dump such that the vendor might observe the issue on their premises.
When attaching to the problematic process I see the following message before any call stacks:
WARNING...
I want to convert date in english words in Vb.net.
For example: 26 May,2008 to Twenty sixth May 2008
What will be best approch, is any function in datetime data type exists?
...
I'm currently updating our software installer and have a few questions about getting the .NET framework installed.
What are the installer(s) (.exe or .msi) required to install .NET 2.0 SP2?
What are the installer(s) (.exe or .msi) required to install .NET 3.5 SP1?
Microsoft's download pages are slightly ambiguous. I belive I need .Mi...
I need to create HTTPS call a to remote server that return a data
the response of that server dose not include a valid HTTP protocol
and i am getting that error
System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine
i all ready did that
useUnsafeHeaderParsing
but that did not help probably be...
We normally follow coding / naming standard for all C# syntax. For Example, if we declare string inside the method, we use Scope-datatype-FieldName format. (lstrPersonName)
List<Person> icolPerson;
private LoadPersonName()
{
string lstrPersonaName;
}
i am kind of thinking how do we follow the naming standard in Lambda Expression. E...
I'd like to list as much information about all the threads currently running in .NET1.0 as I can. I don't have the luxury of adding threads to an internal list of my own when they get created; I just want to dump out a list of those that are currently in the system. Does any one know a way of doing this? I've been looking at the System.T...
How do you secure a UniData session using UniObjects for .net?
The documentation is severely lacking. The UniObjects for Java documentation has a whole chapter on SSL.
EDIT
The UniObjects .net documentation says this about the UniSession.EncryptionType property:
public int EncryptionType {get; set}
This property gets or sets ...
Whats the best way to zip up files using C#? Ideally I want to be able to seperate files into a single archive.
...
None of the search results for this are from stackoverflow, and many mention Cint() which 'does not exist in the current context'
Is int.Parse(String) the preferred method?
...
I'm trying to debug an application which gets an InvalidCastException.
The failing line is
decimal d = (decimal)row[denominator];
inspecting this in the debugger(see screenshot below), row[denominator] holds a double with value 8.0 as far as I can tell. Surly there shouldn't be any problem casting that to a decimal ?
(The 'row' type...
Hello,
I had successfully written a system that contained an order with child order lines, using cascade updates from the order to save the order lines. In the next iteration I want to associate the order lines with a despatch class. This seemed quite straight forward - add a nullable DespatchID column to the order line table as a for...
I am trying to register a winform user control as a COM Server so my MFC applications can use them. The winform control is written in C++/CLI and uses an unmanaged native dll. I want to make use of .net's terrific Interop services to register this user control as a COM server.
[ProgId("MyAx.MyAxControl")]
[ClassInterface(ClassInter...
Hi,
I have tried to create a simple app with .NET C++ (I come from C#) but I failed just on the beginning.
I have created winforms project and add Form2 to the project. The compiler keeps reporting that Form2 is not a member of my project. What I need to do in order to create an instance of that Form2?
Thank you!
...
The code below works as follows: a form is shown with a list of sorted names. When the button is clicked a new name is added to the list at the appropriate sorted position from the textbox . When an item of the list is doubleclicked it is prefixed with "AAA", which triggers it to be placed on top of the list.
When I change the Observable...
What is The Easiest, fastest Way to capture video stream from camera with C#?
...
In WPF, how would I do the following:
Every x milliseconds, underline 3 words at a time. After x milliseconds, underline the next 3 words.
Every x milliseconds, have 3 words appear and disappear from the window?
If I were to use Windows Forms, is there still a way of doing (1) and (2) above?
Thank you
...
I try to do static class, add to icollection but i got some issues i cant seem to overcome. that is how i get so i can pass a ICollection in the method? cause T is that say it can not be resolved.
and then i wonder is there a way to do AddRange on icollection?
i was thinking of something like this but maby i am way out of my mind with ...
When reading from a NamedPipes server using the .net NamedPipeClientStream class I can only get the data on the first read in C++, every time it's just an empty string. In c# it works every time.
pipeClient = gcnew NamedPipeClientStream(".", "Server_OUT", PipeDirection::In);
try
{
pipeClient->Connect();
}
catch(TimeoutException^ e)...
Hi,
I would like to know what are the best practices, if you have a quite long lasting process that ends up with a transaction timeout and which should definitely be possible to rollback if any exception is thrown within?
Imagine that all along the application set timeout duration is quite enough but for such a specific one it is not ...
I'm interested in any common routine/procedures/methods that you might use in you Program.cs when creating a .NET project. For instance I commonly use the following code in my desktop applications to allow easy upgrades, single instance execution and friendly and simple reporting of uncaught system application errors.
using System;
...