3,954 questions
0
votes
1
answer
53
views
ClrApp strange behabiour
I have a strange behaviour of a clr application with .NET 6.0
C# Dll CSharpDll CSharpClass.cs
namespace CSharpDll
{
public class CSharpClass
{
public double Sum(double a, double b)
...
1
vote
1
answer
2k
views
How to load an excel file in IronPython?
I am trying to load an excel file within an IronPython script, which is embedded within a software.
I tried to do this with the following code:
import clr
clr.AddReference("Microsoft.Office....
0
votes
1
answer
88
views
Attaching CLR event handler in xaml style in WPF
Is there a way to attach a handler for the IsVisibleChanged event for a DataGridRow in a DataGridRow style definition? That is, is there a way to do something like the following:
<DataGrid....
0
votes
0
answers
160
views
How to improve assembly loading for application with many assemblies
We have .net 4.8 WPF desktop application with over 300+ assemblies to load. When started for the first time after reboot it takes ~10 sec more to start than if it was started before that. I suspect ...
0
votes
0
answers
730
views
<future> is not supported when compiling with /clr or /clr:pure
I have a C++ CLR wrapper project in Visual Studio 2022. The project platform was set for Win32 platform. Also, that works fine. but now, I need to set project for x64 platform. So, according to Win32 ...
0
votes
0
answers
195
views
CLR Assembly Binding Cache
In the CLR Binder documentation there is this section:
https://learn.microsoft.com/en-us/dotnet/framework/deployment/how-the-runtime-locates-assemblies#step2
It states that there is a cache of ...
-1
votes
1
answer
431
views
Cannot get String Length due to its type in C++/CLI
I am trying to build a C++/CLR form app
And in the code below
I am trying to get the length of the string of GetTb
Which is a string retrieved from a textbox Tb_Return
Tb_Return->Text = "This ...
0
votes
1
answer
186
views
DragDrop files to C++ CLR application
Visual Studio 2022,
Windows CLR form with ListBox and listbox have AllowDrop=True.
Used events DragEnter and DragDrop:
private: System::Void listBox1_DragEnter(System::Object^ sender, System::Windows:...
1
vote
1
answer
676
views
AttributeError: module 'clr_loader' has no attribute 'wrappers'
I am trying use Beeware to package my python prjocet, but when I am trying to use "briefcase dev" command, It raise this error. I found that it need to use pythonnet and clr, and when it ...
1
vote
0
answers
398
views
FormatException (argument list mismatch) in interpolated String expression
In production, we encountered an issue which is not getting simulated anywhere else but it peaked my interest because of seemingly such error is impossible to happen (as far as I know !)
The ...
1
vote
0
answers
75
views
How to compute a managed pointer to the evaluation stack according to ECMA-CIL?
ECMA-CIL says the following:
In order to allow managed pointers to be used more flexibly, they are
also permitted to point to areas that aren‘t under the control of the
CLI garbage collector, such as ...
0
votes
2
answers
174
views
How to improve performance of writing files in UWP
In the following part of my UWP application, I have a performance bottle-neck of creating a lot of large TIFF files. Is there any way to make it run faster without too many conversions and data copies?...
0
votes
4
answers
191
views
Using C# CLR in SELECT and WHERE at the same time
I have a C# CLR doing multiple string manipulations. It returns an int. I'm calling it with
SELECT func(col1, col2) AS Score
INTO #A
FROM table;
SELECT *
INTO #B
FROM #A
WHERE Score > -1
If I do ...
1
vote
1
answer
938
views
How are multi-dimensional arrays stored (.Net)?
I have a few questions about how .Net stores multi-dimensional arrays in memory. I am interested in true multi-dimensional arrays not jagged arrays.
How does the Common Language Runtime (CLR) store ...
0
votes
0
answers
147
views
Create seperate NuGet package for different projects in a Solution
I have a Visual Studio 2022 solution containing dot net 6.0 and clr:netcore projects.
Most of the projects depend on other projects as a reference using dependency injection (not project reference).
I ...
0
votes
1
answer
242
views
CLR/CLI - How do I set a custom icon to my form application?
I have seen few answers about this but none worked for me.
Using Visual Studio 2022, clr/cli project, code in *.cpp file.
I created custom icon "MyIcon.ico",
I want this to be my application ...
4
votes
1
answer
90
views
CLR throws InvalidProgramException
I am trying to create a ByRefLike struct Context which contains multiple ByRefLike structs. When there is only a single field, the program works. When there are more than 1, the program throws an ...
0
votes
0
answers
49
views
Does Assembly.Load(Byte[]) leave a trace on the disk?
We have a program that downloads the required component from the cloud.
var buffer = TcpClient.DownloadDll().ToBytes();
var assembly = Assembly.Load(buffer);
Because this is a very important core ...
0
votes
2
answers
117
views
CREATE FUNCTION for "CleanFile" failed because T-SQL and CLR types for return value do not match
Been scratching my head with this one for a few hours. I've got a handful of CLR DLLs which work ok, but this most recent is giving me a few headaches. Any insight will be helpful.
I've tried ...
1
vote
0
answers
3k
views
The profiler has requested that the CLR instance not load the profiler into this process on IIS
I'm running an Identity server 4 project on IIS and suddenly it ran into this error :
.NET Runtime version 4.0.30319.0 - The profiler has requested that the CLR instance not load the profiler into ...
1
vote
1
answer
122
views
Stack merge points and managed pointers in the CLR
My understanding is that the .NET CLR is allowed to run "unverifiable" and "verifiable" bytecode. However, in both cases, the bytecode must be "correct CIL" in terms of ...
0
votes
1
answer
162
views
winforms userControl inside MFC with no Clr
I have an MFC application that uses some specific files with CLR but not the whole project.
The challenge is I want to embed a WinForms user control inside the MFC project without the whole project ...
1
vote
1
answer
302
views
C# references to C++ CLR x32 and x64
I created a C++ project in Visual Studio Class library CLR (.NET Framework):
#pragma once
using namespace System;
#ifdef _M_X64
namespace MyDLL64 {
#else
namespace MyDLL32 {
#endif
public ref ...
-2
votes
1
answer
150
views
change format of C++/CLI stopwatch from System::Diagnostics windows form CLR
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
this->label3->Text = stopWatch.Elapsed.ToString();}
I need help for changing the format of my stopWatch, ...
0
votes
1
answer
386
views
DynamicMethod is slower in Release mode than Debug mode
I am developing a program that uses DynamicMethod quite a lot, and found that running it under Release mode is significantly slower than under Debug mode. I managed to repro the problem with the ...