Questions tagged [managed-code]

Term defined by Microsoft designing code executed under the management of a Common Language Runtime virtual machine.

58 questions
1
vote
1 answer

Running managed code in SQL Server 2008 - any issues?

I would like to know the performance issues associated with running managed code through SQL Server 2008. I've heard about some memory and speed issues. Specifically, I want to implement a SHA256 hashing DLL and execute it as a sproc with SQL…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
1
vote
6 answers

Is there a common practice how to make freeing memory for Garbage Collector easier in .NET?

I've been thinking if there's a way how to speed up freeing memory in .NET. I'm creating a game in .NET (only managed code) where no significant graphics is needed but still I would like to write it properly in order to not to lose performance for…
MartyIX
  • 27,828
  • 29
  • 136
  • 207
1
vote
1 answer

Use C++ API in C# Project

Is it possible to use a C++ API (series of Header files and CPP files) in a C# project? Maybe its possible to compile these files into .obj or .lib files and include them in the Visual C# project? Something similar is done for Crypto++. If it is…
1
vote
1 answer

Could this C++ project be decompiled with such tools like a .NET Reflector?

I use Microsoft Visual Studio 2012 and I want to write an application in native C++. Reason why I don't want to use Manged Code (.NET) because I don't want that my application was decompiled back to the Source Code with such tools like a .NET…
1
vote
1 answer

VB.NET Socket Exception only while Debugging

I have recently encountered some rather baffling behavior while up-converting a VB.NET solution from VS2005 to VS2010. For reference, the solution targets .NET 2.0 and was running without error in the debugger prior to the conversion. In addition…
MysteryMoose
  • 2,211
  • 4
  • 23
  • 47
1
vote
1 answer

Managed code in WinPE

If I want to run a program in windows PE (Vista or 7) am I not allowed to use any level of managed code? Can I only have c++ code that doesn't reference any dotNet code? How can I interact with windows? Do I have to use user32.dll type files to…
Matt
  • 25,943
  • 66
  • 198
  • 303
0
votes
1 answer

MarshalAs Query With Managed Code Calling Unmanaged

This question is a result of this thread. My question is, why do we have to specify the MarshalAs attribute for some of the parameters but not others? I would have thought the differences between c++ and c# data types would be large enough to…
Adam G
  • 35
  • 6
0
votes
0 answers

How to call function of unmanaged code from vb.net with reference (pointer) out value?

I have function PLInsert2D Also it has description in unmanaged code like this: HRESULT PLInsert2D( [in] IPARTLibProvider* aPLClient; [in] IBOResponseDisp* aMethodResponse; [in] Double aX, aY, aAngle; [out, retval] long* result); I call this…
0
votes
2 answers

Use [Property] in my managed code signature? Basic MSI

I cant seem to figure out how to use my [MyProperty] property inside of the custom method signature. I have tried [MyProperty], "[MyProperty]", "MyProperty". ALl i am left with is the actual string being passed and NOT the value of the property. I…
user616
  • 783
  • 4
  • 18
  • 44
0
votes
1 answer

Send .docx to Bullzip PDF Printer without Word installed

I have just installed the free version of BullZip PDF Printer and I want to send .docx documents to this printer without Word installed and it must be free using managed .NET code. The reason for this is that I have an AngularJS web application and…
Intrepid
  • 2,781
  • 2
  • 29
  • 54
0
votes
1 answer

Invoking method (from .net managed dll) from a SQL Stored procedure - Help

We wanted to call a .NET Managed code (deployed as dll) from a Stored Procedure in (SQL Server 2005/2008) We found couple of solutions, but couldn't get it working: Following steps mentioned in the article at this place…
Praveen
  • 11
  • 1
  • 4
0
votes
1 answer

How to use managed variable as global in Visual C++?

I'm writing MFC application in Visual C++ and using one C# lib. Dou to I combine unmanaged and managed classes and variables. I need some managed classes from C# put and read to/from global scope to be accessible from whole app. I tried (simple…
0
votes
1 answer

what happens when value types are defined inside reference types

hi every one i have few question 1) class ClassName { public int[] a = new int[100]; } what happens when object of this class is created i mean where is the array of integers stored at, on the Stack [value type] or on the Heap [Reference…
Constantine
  • 99
  • 1
  • 10
0
votes
1 answer

debugger for managed code ( not Visual Studio )

Normally I work with Visual Studio and also debug with visual studio. But we have virtual machines in another network there is Visual Studio not installed. And I can not remote debug. To install every time Visual Studio is in my eyes a overhead. So…
tire0011
  • 1,048
  • 1
  • 11
  • 22
0
votes
1 answer

how do you suppress a direct call to a managed method?

I want to know if this is inherently possible: Think of a cloud scenario. I allow users to upload their .net code onto my server. However to manage things on my server I can't allow users to write code which make direct calls to methods such as…
deostroll
  • 11,661
  • 21
  • 90
  • 161