473,804 Members | 3,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Starting CLR runtime

Hello,

I have an unmanaged c++ application in which I'm thinking of starting the
..NET runtime engine so that I may use .NET remoting to enable interaction
with a .NET application.

My question is: how "heavy" is the .NET runtime engine when started from an
unmanaged application? My unmanaged app needs on occasion to obtain very
large (300-500mb) contiguous memory areas from the address space (using
VirtualAlloc), and this will not be possible if the address space is
fragmented by .NET. Clearly it loads the various system assemblies, but
also it must take space for the managed heap and for generating the machine
code from msil (unless that occurs within the managed heap itself?).
Without .NET runtime loaded into the process I have almost 1Gb of contiguous
"free" address space available for use (i.e. for unmanaged heap
allocations). Even if the .NET runtime footprint is fairly small, it would
be a problem if it loads itself or allocates memory for use from the
"middle" of this contiguous free memory area.

So I'm wondering if I should consider doing this, or not. If not, I will
have to write some interprocess communication stuff with standard Win32 API
calls. Doable, but clearly it would be easier to use .NET remoting.

If anyone has experience or advice here, I would appreciate knowing what
your recommendations are!

Thanks,

-Eric Twietmeyer
Nov 17 '05 #1
0 819

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2644
by: ian maclure | last post by:
I'm writing a client-server app. Client controls Server which in turn configures and controls a bunch of hardware. I want to be able to start the server from my client. Now in C/C++ one could simply run the appropriate command string through a standard "system()" call which is relatively simple. JAVA on the other hand seems to require something like RMI to do it.
0
1485
by: mgonzales3 | last post by:
Hey guys I keep getting this error when i try running my vb.net windows service. -------------------------- The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description;
12
2955
by: serge calderara | last post by:
Dear all, I have an application which is suppose to start another executable process. As soon as that process is running, I need to retrive its handle. The problem of the particular process I am starting is that it has a welcome window first which gets displayed and then the real windows after a while,in other words it means that the process name is the same, but the handle I need to retrive is the one from the final window and not the...
1
7752
by: mtc | last post by:
I'm able to install and run a service I built on two machines - the one I built it on and another that has visual studio installed. I've installed it without problems on 3 other machines that don't have visual studio, but when I try to start the service it immediately fails with error 1053: The service did not respond to the start or control request in a timely fashion. The computers are all up-to-date with SP's and the .Net framework...
2
3865
by: Sara T. | last post by:
I always found that web page written by ASP.NET (VB.NET) generate error when starting at the first times. If I click refresh button on the IE again, it can work as well. What's wrong ? Again if I terminate process aspnet_wp.exe, it will generate again ONLY at the times to read page. Following is the error seen on screen:
0
941
by: Neal | last post by:
Hi All A scheduling .Net win service I wrote and tested + working on XP SP2 with ..NET Runtime version 1.1.4322 gets the following error on Win2003 + SP1 with .NET Runtime version 1.1.4322.2300 when trying to start the service: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote...
2
2129
by: harrymangurian | last post by:
I have VB.net standard installed on a stock DELL running XP. When I click on the icon whose target is: "C:\Program Files\Microsoft Visual Studio .NET\Common7 \IDE\devenv.exe" I get error msgs: the first one is:
16
3388
by: Jim Langston | last post by:
I know that functions starting with an underscore, or two underscores, are reserved by the compiler/c++ and should not be used by the user and may cause undefined behavior. My question is, how likely is it to actually cause undefined behavior? The reason I'm asking is I'm using a game engine where the sockets code is not working correctly on my computer, but seems to work correctly on everyone elses. I am not compiling the dll myself,...
2
1160
by: Cramer | last post by:
Is there some way - perhaps in Application_Start - that I can prevent an ASP.NET (3.5) application from starting. I would like to perform some environment validation and pipeline configuration during Application_Start - and if those efforts, themselves, fail or have some runtime exception, then I want for the application to not start (i.e., the Web site should not be available unless all of the startup tasks complete without errors). ...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9582
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10580
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9157
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7621
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5652
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.