Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
81 views

I was reading a book that describes why Volatile is needed class ThreadsSharingData { private Int32 m_flag = 0; private Int32 m_value = 0; // This method is executed by one thread public ...
user22155685's user avatar
0 votes
0 answers
108 views

I am interfacing with a native library. The library provides Types of their internal workings, and some Types have a void* userData. Because of the way the library is laid out (you can't access a ...
Raildex's user avatar
  • 5,428
1 vote
1 answer
93 views

The following C# snippet: int x = 10; ref int y = ref x; is compiled to this IL: .locals init ( [0] int32 x, [1] int32& y ) ldc.i4.s 10 stloc.0 ldloca.s 0 stloc.1 ret How do I create a ...
Jonas's user avatar
  • 17
0 votes
0 answers
50 views

I'm building a C# WPF app (.NET 7.0) that uses a CLI/CLR .dll. Both the app and dll are built in release mode, as is the static library the dll wraps. Despite all this, the dll still depends on debug ...
Digital_Utopia's user avatar
-1 votes
1 answer
60 views

I have a simple Account class. When I create an object referenced by "a". But after that I assign null to a. Further I have invoked GC.Collect(), whose job is to clear all abandoned object ...
Prajval Gahine's user avatar
1 vote
1 answer
243 views

I have a C# (.NET Framework 4.7.2) script to perform some custom reading of trace codes, which I am trying to use to make a SQL (V14.0.3445.2) Table Valued Function. The C# FillRow Method looks like ...
High Plains Grifter's user avatar
1 vote
0 answers
74 views

I want to create Windows app, which uses DB through MySQL. I try work with DB in Console App, it works fine: #include <iostream> #include <string> #include <mysql_connection.h> #...
Stas Furmavnin's user avatar
2 votes
1 answer
165 views

I have a native program that hosts the CLR (i.e. starts it up manually, gets a reference to an AppDomain, etc. - this is not C++/CLI). Within that context, I want to instantiate a FileStream object. ...
Smashery's user avatar
  • 60.1k
0 votes
1 answer
318 views

Our programs are running in an environment where it is bad to be wasteful of RAM. There are a large number of large 3rd-party packages we could use in our code that would make writing the code ...
Tyler Madsen's user avatar
4 votes
2 answers
1k views

How can Span wrap around a heap allocated Array if it is supposed to be a stack allocated value type? Reading through the MSFT documentation on the Span type, I came across the following: When it ...
Flint0fWalrus's user avatar
0 votes
1 answer
823 views

When importing a .NET library in Python with: import clr clr.AddReference(r"C:\foo.dll") from foo import * my_foo = Foo() print(my_foo.my_method) # <bound method 'my_method'> I'd ...
Basj's user avatar
  • 47.5k
0 votes
0 answers
43 views

I have a unit test that depends on a type Derived that inherits from a base class Base. Derived and Base are in separate third-party assemblies Derived.dll and Base.dll(2). Both DLLs are strong-named. ...
joelw's user avatar
  • 440
1 vote
2 answers
2k views

This question may seem silly, but what is the point of defining "shadow properties" in Entities since the corresponding column would be created in Database/Tables? Plus, we can simply solve ...
Behnam Faghih's user avatar
1 vote
1 answer
154 views

I always thought that Reflection in CLR loads metadata for types on demand, when you actually request needed information. And then it is cached, and all subsequent calls will be cheaper. At least, ...
grilledCheeze's user avatar
-1 votes
1 answer
915 views

Faced a problem. Need to call a class member method on a separate thread C++/CLI .h: ref class BgWorker { private: void MainLoop(); public: void Start(); }; .cpp: void BgWorker::MainLoop() { ...
Andrii Derevianko's user avatar
1 vote
1 answer
1k views

I am trying to import clr and receive the following error: AttributeError: module 'clr' has no attribute 'AddReference' I have tried to follow the steps here, where I uninstalled both pythonnet and ...
SatraLim's user avatar
0 votes
1 answer
36 views

I have logger.cs: public abstract class LogProvider { protected abstract void DoLog(LogEvent logEvent); } my_code.cpp ref class DebugLogProvider : public LogProvider { public: virtual void ...
StNickolay's user avatar
0 votes
0 answers
61 views

I have a custom .NET CLR trigger that is hooked up to my database to handle slightly more advance insert, update, delete triggers. Basically it is tying in some data not readily available to the ...
Migals's user avatar
  • 1
1 vote
0 answers
409 views

When I import clr I get an error. Environment pythonnet version: 3.0.1 Python version: Python 3.9.7 Import clr. import clr I get an error. I would like to know how it works properly. C:\Users\user\...
machi's user avatar
  • 11
0 votes
1 answer
102 views

I created this clr table valued functions in VB.NET using VS 2017 and sql 2014: Imports System.Collections Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports ...
MAX_1999's user avatar
0 votes
0 answers
143 views

Recently we have noticed that ALTER ASSEMBLY is not updating the dll on the SQL Server. We have been altering the assembly since last two years and never had an issue before. The major change we have ...
Sandeep Reddy Pinniti's user avatar
0 votes
1 answer
183 views

I have this function in a dll that i imported via clr in python with asNetArray function that i found somewhere in the net. public static double DrawdownTable(ref System.Array resDrawdown, ref System....
LeVoltaireDesChamps's user avatar
2 votes
1 answer
87 views

It seems like at some point assemblies Microsoft.Build, Microsoft.Build.Framework, etc. stopped changing their versions after updates, so the versions of actually different Microsoft.Build assemblies ...
Nick Lipilin's user avatar
1 vote
0 answers
717 views

I have made an Windows Application using visual c++[CLR Empty Project].But when I run that .exe file in another PC i get error of ucrtbased.dll, VCRUNTIME140D and MSVCP140D file is missing. For this, ...
Niket's user avatar
  • 11
-3 votes
1 answer
398 views

I have this c++ header: // BRepPrimAPI_MakeSphere.hxx file #include <Standard.hxx> #include <Standard_DefineAlloc.hxx> #include <BRepPrim_Sphere.hxx> #include <...
Ibrahim Abouelseoud's user avatar

1
2
3 4 5
80