short of restarting our server, is there anyway we can get this memory released and our website up and running. Below is a trace from the event viewer
An unhandled exception occurred and the process was terminated. Application ID: /LM/W3SVC/17/ROOT Process ID: 14352 Exception: System.ComponentModel.Win32Exception Message: Not enough sto...
If I need to provide a DLL by using C++ or C# to somebody. How do I know if my code is managed or unmanaged code? If I use VC++6.0, that means unmanaged and if I use .Net Visual Studio 2005 or later it will be managed code?
...
I came across this code in some existing codebase:
double rad = ComputeCurviness();
double off = Math.Abs(rad);
if (rad < 0) off = -off;
It seems to be basically just making off equal to rad. The variables are used interchangeably later in the code. Is there any reason to leave this code in?
...
I have the following form on an .NET MVC View:
<form method="post" enctype="multipart/form-data" action="/Video/UploadDocument">
<input type="file" id="document1" name="document1"/>
<input type="submit" value="Save"/>
</form>
And the controller has the following signature that gets called:
public ActionResult UploadDocument(Http...
I'm trying to delete files created by current user when he/she clicks logout button
Protected Sub OnLoggingOut(ByVal sender As Object, ByVal e As EventArgs) Handles LoginStatus1.LoggingOut
Try
Dim folder As String = Server.MapPath("~/uploads/")
Dim files As String() = Directory.GetFiles(folder)
...
I just read through a 2002 article on MSDN called Calling a .NET Component from a COM Component to get a basic understanding of calling .NET objects from VB6 code. However, I still wondering what else I might be concerned about when referencing .NET objects from VB6 and if there's anything newer information than what was available when ...
I was gaven a C++ dll file, a lib file and a header file. I need to call them from my C# application.
header file looks like this:
class Clog ;
class EXPORT_MACRO NB_DPSM
{
private:
string sFileNameToAnalyze ;
Clog *pLog ;
void write2log(string text) ;
public:
NB_DPSM(void);
~NB_DPSM(void);
void setFileName...
Hi,
I am using telerik radgrid in my project. I have empty spaces on my column names. When I am trying to do groupby I am getting error. Is there any way that i can groupby column names even if i have spaces in column names. I cant change the column names in sql server. I am calling storeproc so i cant even change the query in program. ...
I've been scratching my head for the past 20 hrs or so trying to figure out what is wrong with my rudimentary WCF app but with absolutely no luck :(
I was following this tutorial:
http://www.c-sharpcorner.com/UploadFile/dhananjaycoder/RESTEnabledService05122009034907AM/RESTEnabledService.aspx
and for some reason the WCF is showing a bl...
Isn't it true that every assert statement can be translated to an Assert.IsTrue, since by definition, you are asserting whether something is true or false?
Why is it that test frameworks introduce options like AreEquals, IsNotNull, and especially IsFalse? I feel I spend too much time thinking about which Assert to use when I write unit...
I had originally created a windows form to be a dialog of my projects main form. Now the dialog is getting complex enough that it needs to be started in its own process. Is there a way to do this in code or do i need to create a new project and link my files to it?
...
Hello,
I've been trying to find a string in PHP that matches something like this:
Currently I've tried something like this;
<()\?php eval(^>>
but it dosen't seem to get the string correctly.
edit: I forgot to add that I need to grab all the text form "" and it spans multiple lines.
...
If you have an XSD with an includes reference.
Is it possible to generate 2 separate class files.
1 for the XSD, and 1 for the included XSD?
My Scenario
4 XSDs, each of which share 15-20 element definitions in common.
Rather than maintaining, I'd like to end up with the 4 XSDs all referencing a fifth file with the common definitions, an...
I'm trying to write a simple (stand alone) C# extension method to do a Fade-In of a generic WPF UIElement, but the solutions (and code samples) that I found all contain a large number of moving parts (like setting up a story, etc...)
For reference here is an example of the type of API method I would like to create. This code will rotat...
If I install framework 4 will it replace framework 3.5? I still work on many applications using framework 3.5 which I do not plan to migrate in the near future however I'd like to use framework 4 for new projects.
...
I need to find a way of converting Word Doc files to Jpeg of Tiff files using C#/.NET. I cannot use any virtual printing drivers such as Microsoft Office Document Imaging. I can only use C# and/or C++ Libraries. Are there any free methods or APIs to accomplish this?
...
I started looking into the designer file of one of my Forms and noticed that a lot of the old controls I thought I had deleted are still being instantiated but are not actually used on the form.
Is there any easy way to clean up these controls from the designer file that are not being used? Right now I've printed out a list of all the p...
.NET 4 includes new concurrent data structures. The Bag and Dictionary collections have obvious applications but I cannot see any use for the Queue and Stack data structures. What are people using these for?
Also, I've noticed that the design based upon linked lists incurs a lot of allocation and that destroys scalability. This is surpr...
Given an
Expression<Func<T, object>>
(e.g. x => x.Prop1.SubProp), I want to create a string "Prop1.SubProp" for as deep as necessary.
In the case of a single access (e.g. x => x.Prop1), I can easily do this with:
MemberExpression body = (expression.Body.NodeType == ExpressionType.Convert) ? (MemberExpression)((UnaryExpression)expr...
Does anyone have any experience with ODB-II codes (http://en.wikipedia.org/wiki/On-board_diagnostics) and/or have any .net code available for reading information from an ODB unit? I'm having trouble reading data from my car. I'm trying to follow the spec as outlined in various wikipedia articles and based have search for solutions on f...