Following on from my previous question, what useful information can you retrieve from a .net assembly about the build process? I know I can look at the AssemblyVersion to get major and minor application version, and when the build took place.
Can I find:
Who did the build? i.e. user name.
On what machine?
Which O/S version?
Anything ...
We have a bit of a battle going on in our development team over this. I would love to hear what others think about this.
...
Hi,
I have a WCF application, running on .NET 3.5 SP1, hosted in IIS7, on a Windows Server 2008 64-bit.
In our architecture, there is 1 instance of the application per client, DLLs are copied in a separate directory for each client. In IIS, we host 5 or so clients per application pool, each client having its own application/virtual dir...
Hi There!
I created a ATL Server Web Service With Visual Studio 2005 Wizard and chanded the project settings to support CLR:oldSyntax.
Generating WSDL Web Service and consuming it works fine on XP width IIS 5.1.
On Vista with IIS 7, only works fine when i compile the project without CLR option. With the CLR, the WSDL isn't generated.
I ...
How do you register a COM object written in Managed C++ to be SingleUse? Regasm does not appear to have the option. I am guessing it may be a s simple as defining an attribute in AssemblyInfo.cpp but I can't find it.
I have written a VB6 ActiveX EXE and it works as I want it to - that is every request for an Interface creates a new runn...
Hello There,
How can i convert interoperatability between a c++/CLI Array and a native c++ array AND VICE VERSA.
array^ Cpluspluss_CLI_ManagedArray;
unsigned char* UnmanagedArray;
I found the System::Runtime::InteropServices::Marshal; (IntPtr) there is so much of information for a first timer like me (to CLI) So I'm not sure about wh...
I have two tables: a schedule table that contains information about how an employee is scheduled and a numbers table in which each number corresponds to a date.
The tables look like:
[Employee Schedule]
ID Employee ID Project ID Day ID
----------- ----------- ----------- -----------
1 64 2 168
2 ...
Should I read Effective Java, 2nd Edition to learn .Net CLR 2.0 practices? If so, what sections of the book are not well suited for .Net?
Note: My preferred language is C#3.
...
I'm just getting into using VS2008 to write clr stored procedures for SQL 2008. When writing c# code I am used to having a separate 'Test Project' where I would place all my unit testing code, however it appears at first blush that I can't have the same setup with a clr sql project with stored procedures. It 'feels' like this can be do...
In Delphi, if there was an exception during construction of an object: any allocated memory would be released and an exception would be thrown. For example, the following was guaranteed to either return a valid Camera object, or throw an exception:
Camera c = new Camera();
You never had to check the resulting variable for null:
Camer...
I've written an abstract base class for unit tests that sets up just enough environment for our tests to run. The class exposes some of the runtime environment bits as properties whose types vary test by test (the property types are type arguments specified in the inheriting, concrete test class).
This is all well and good, except a co-...
I am working on an Outlook Addin where I create a lot of COM objects(Outlook mail, Outlook folder etc). My understanding is that since these objects are COM objects,CLR won't release memory from these objects and i'll have to take care of releasing memory from these objects.So to release memory from these object I use
Marshal.ReleaseCo...
Hey,
I want to convert 'System::String ^' to 'LPCWSTR'.
for
FindFirstFile(LPCWSTR,WIN32_FIND_DATA);
Please help.
...
Hi all
I work on applications developed in C#/.NET with Visual Studio and very often Resharper, in the prototypes of my methods, advises me to replace the type of my input parameters with more generic ones. For instance List<> with IEnumerable<> if I only use the list with a foreach in the body of my method. I can understand why it look...
As I understand it I can use reverse P/Invoke to call C# from C++. Reverse P/Invoke is simply a case of:
Create you managed (c#) class.
Create a c++/cli (formerly managed c++) class library project. Use this to call the managed c# class (presumably via a reference).
Call the c++/cli code from native c++.
Questions:
Is this correc...
For instance, parameters in a method that use the "out" keyword in C# will show up in the metadata signature preceded by an ambersand "&". I'm trying to create the signature for a generic method but I don't want to use the metadata APIs to figure this out, surely it's documented somewhere?
Here's an example of what I mean for BeginRecei...
Does anyone know of real (i.. no vaporware) implementations of ECMAScript targeting the .NET CLR/DLR? Ideally something like what Rhino is for Java. A solid port of Rhino running on .NET Framework / Mono Framework would be perfect.
I've only seen a handful of projects mentioned but never seen any come to light or in reality anything tha...
Is there a method of configuring the .NET CLR RAM usage on my machine?
Suppose I have 64GB of RAM and I want to limit it to 4GB? It this possible?
Edit - The root of the problem is that I have a 64-bit application that runs fine on a 64bit - 4GB machine but when run on a 64bit - 64GB machine it fails (stops dead in it's tracks when al...
How does JVM/CLR execute JIT compiled native code? Is it by some code injection or by copying code to executable memory? What are the system calls that allows dynamic code execution?
...
Hi All
My application uses a custom List that inherits from Bindinglist which is then bound to all the UI controls. The list is a collection of baseobjects which implements INotifyPropertyChanged. I suspected a memory leak and profiled my application using
memprofiler which confirmed that that all my lists are never disposed and that t...