clr

SQL CLR SqlBulkCopy from DataTable

We have an in memory DataTable in a CLR procedure. After significant processing the DataTable has a lot of data that we need to load into a table in the database. Unfortunately, since we are using a context connection SqlBulkCopy will not work (throws error: The requested operation is not available on the context connection outline of c...

LinQ to SQL and CLR User Defined Types

Hi there, I have created a User Defined Type in .Net 3.5 as per my blog entry at : http://jwsadlerdesign.blogspot.com/2009/04/this-is-how-you-register.html This works fine when using SQL with technologies like nHibernate. However, when I try to map my LinQ to SQL class to use this UDT (with attribute defintions not XML), and I setu...

What JIT compilers does CLR support

I came across this quote: "The .NET Common Language Runtime (CLR) supplies at least one JIT compiler for every NET-supported computer architecture, so the same set of CIL can be JIT-compiled and run on different architectures." I've looked around but can't find a definitive list of the JIT compilers supported by CLR? ...

Will the deprecated /clr:oldSyntax supported in VS2005 and VS2008 still work with VS2010?

Does anyone know (with confidence either way) if Microsoft plans on continued support (as in compiling) the legacy (2003) deprecated (vs2005/vs2008) Managed C++ (MC++) Syntax to target the .NET CLR in C++ code? Microsoft officially deprecated the /clr:oldSyntax with the VS2005 C++ Compiler (Orcas); and thankfully the VS2008 C++ compiler...

VC2008, how to turn CLR flag off for individual files in C++/CLI project

This post says that it is possible to turn off the CLR flag for an individual .cpp file. From the post: You can set /CLR on or off in each .cpp file individually. Turn it on for the whole project,. as you have done, then turn it off for the files containing only native (unmanaged) code. When you have the VC++ procject properties dialog ...

Does the CLR ever release binding of an assembly from GAC

I have multiple services that is pulling an assembly from the GAC. When I install one of these services it is updating the GAC with a new assembly that is shared by various services, and inserts a new policy file into the GAC so that all previous versions look for the new assembly. All the services pick up on the policy without restart...

Differences between Objective-C 2.0 vs. CLR in regards to memory managmenet

I've been learning to develop applications on the cocoa touch platform. I've come a long way but one piece that I can't wrap my head around is memory management. I thought I'd take a route of comparison rather than trying to start from scratch. I can't find much on the difference between the CLR (.net) and Objective-C 2.0 so I'm wonder...

Running a .NET application from a file share without code signing

The .NET security model throws security errors whenever a .NET exe is run from a file share. The error does not appear when ran from a local drive. Does anyone know of a way around this without requiring the code to be signed? ...

CLR interfering with C++ STD?

I have some code compiling under the clr and other code that is unmanaged in a single project. My common.h file includes all the std library headers that I need. It is included by manager.h (forward declaration for manager.cpp (no CLR)), which is included by main_window.h (WinForm) which is included by document_manager.cpp (CLR). At r...

Is it possible to get parameters' values for each frame in call stack in .NET

I'm talking about managed .NET code. If we run any program and attach VS to it we can see parameters' values for each method in call stack. I'd like to create a logging solution which will log all parameters' values for each method in call stack. Actually I need this info in case an exception occurs. I know it's possible with profiling ...

Resources for writing a C# Compiler for class?

I'm interested in writing a compiler for a intermediate byte-code language like C# (a subset of). I'm trying to accumulate all the resources and information I can before the project begins. I'll be writing the compiler in C# as well, so hopefully down the line my compiler will be able to dogfood itself. The best resource I have found ...

How do I decide whether to use ATL, MFC, Win32 or CLR for a new C++ project?

I'm just starting my first C++ project. I'm using Visual Studio 2008. It's a single-form Windows application that accesses a couple of databases and initiates a WebSphere MQ transaction. I basically understand the differences among ATL, MFC, Win32 (I'm a little hazy on that one actually) and CLR, but I'm at a loss as to how I should choo...

C3374: can't take address of 'function' unless creating delegate instance

I am having difficulty using a thirdparty library registration function to register a callback. I am writing in C++ CLI, and accessing a library written in C or C++. What does the above compiler error mean? this is the registration function as defined by the vendor: MYCO int WINAPI MyCo_Device_Register_CallbackFunc(LPVOID func, LPVOI...

Stack capacity in C#

Hi All, Could one say me how much the stack capacity is in C#. I am trying to form 3D mesh closed object by using an array of 30.000 items. Thanks in advance George ARKIN ...

Can I tell the CLR to marshal immutable objects between AppDomains by reference?

When marshaling objects between AppDomains in .NET the CLR will either serialize the object (if it has the Serializable attribute) or it will generate a proxy (if it inherits from MarshalByRef) With strings however the CLR will just pass the reference to the string object into the new AppDomain. The CLR still ensures integrity since .NE...

Unmanaged lib in managed executable causing managed exceptions

Hi everyone, I'm having a problem with mixing managed and unmanaged code. I have created two projects under a single solution in Visual Studio 2008 under Vista x64 SP1. One of them does not have CLR support and is a static library. My second project is compiled as an executable with CLR enabled. It depends on the first static library, an...

SQL Server: An error occurred during the generation of the asymmetric key.

create asymmetric key asymmetrickey from executable file = 'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll' Why can't I use the above to generate an asymmetric key from framework libraries (for installing in SQL server as references for CLR functions). It gives an error: "An error occurred during the generation ...

Ignoring files when merging metadata during the linking process in VS2005

Hello, I'm trying to get my project to compile with the common language runtime, and I'm suddenly running into the following linking errors, when I attempt to make a debug build: ============================================================================== Main.obj : error LNK2022: metadata operation failed (8013118D) : Inconsistent ...

How to use Same Library for Silverlight and CLR

Hi, I Have a library which has custom domain logic. Some of the stuff is heavy hitting and depend on the core runtime outside silverlight runtime. Is it possible to compile the same code for 2 different runtimes and reference different flavours from different consumers? How ...

Does queuing threads impact non-thread safe objects in the same class?

If I spawn a thread with ThreadPool.QueueUserWorkItem and that thread does not reference the object that is not thread safe, would it compromise that non-thread safe object? [Edit] By not thread safe object, I mean a third party interface to a programmable logic controller that has no ability to open simultaneous connections or concurre...