microsoft.public.dotnet.framework.clr Archive - April 2004
Post a message to this list
Messages
Page: 1234
.NET Remoting (4 replies)
microsoft.public.dotnet.framework.clr
Hi All! We have an architecure in which we are having one Component server and other Web Server which has components installed. I want to use .NET remoting in that scenario, Please suggest me any solution which has been worked out by anyone out there. any immediate help would be of great help. Kamal M
CLR was running a version of my dll that didn't exist!?!? (4 replies)
microsoft.public.dotnet.framework.clr
OK, we have a .NET dll hosted in COM running as a queued, pooled component I say this as an explanation of why my assemlies are in the GAC (the only way to run a COM server app). that said, our test server which gets uninstalled/reinstalled almost daily had an issue that I'm trying to understand. To keep this as simple as possible, say we have foo.dll version 1.0.0 installed to the GAC and COM , u...
Disabling "Common Language Runtime Debugging Services" Pop-Up Dialog (5 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, Can anyone tell me how to disable the " App name Common Language Runtime Debugging Services" pop up dialog that appears when an unhandled exception occurs in an application? I'm running overnight tests following a nightly build, and I would prefer it if that dialog didn't pop up and halt the execution of my tests. Regards, Ross
Shadowing a base class event handler - bug? (4 replies, VIP)
microsoft.public.dotnet.framework.clr
as posted in dotnet.general on 25.Mar.2004: I am using inherited forms with VB.NET. The base class defines an event handler (button click), the inherited class SHADOWS this event handler. In .NET 1.0 only the base class event handler is executed, In .NET 1.1 both event handler are executed. imho a) either the compiler should flag a warning that shadowing an event handler isn't possible or b) only ...
Program wont run on another computer... (9 replies)
microsoft.public.dotnet.framework.clr
Hi. I have made a program that works fine on my computer. When I try to run it on another computer I get the error message: Title: "MYPROGRAM.EXE Common Language Runtime Debugging Services" Message: Application has generated an exception that could not be handled. Process id 0x550 (1360), Thread id 0x530 (1328). Click OK to terminate the application. Click CANCEL to debug the application. Clicking...
v2.0 changes (2 replies, VIP)
microsoft.public.dotnet.framework.clr
Whilst keeping up to date with the various developments on "Whidbey" and various language modifications, it's been mentioned on more than one occassion that the CLI is changing to support new functionality. Are there any public specs with changes to the runtime? I'd assume that the ECMA endorsed specs would be updated for it to be "standard" but they currently host the Dec 2002 editions. Thanks.
Limit Heap Size (2 replies, VIP)
microsoft.public.dotnet.framework.clr
Is there a way to specify the max heap space that should be available to a .NET application. I am coming with a Java background were you can specify this by setting a flag with the Virtual Machine (e.g. java Xmx128m myapp). Thanks, CS
Backward Compatability Issues (4 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi Everyone I have a situation where backward compatability issue made a source stopper to my application. I have developed a User control in C#. Now when i want to add the user control in VB6.0 or VC 6.0 i am really facing a problem of errors which makes me to stop adding into components. When i try to add the control to my form container at runtime, it gives me problems. I have follwed the steps...
Garbage collector bug (7 replies, VIP)
microsoft.public.dotnet.framework.clr
I just came across a pretty simple situation where GC will fail to collect unused object and this could be a potential framework design bug. If it's not acknowledged as bug, lots of developers would be needed to write lots of extra code assuming they remember this! This simple situation is like this: Lets have only two object variables A1 and B1 holding instances of the class A and class B respect...
mscorlib pulic key length (3 replies)
microsoft.public.dotnet.framework.clr
Hi, This post is more to do with my curiosity than anything. Does anyone know why the mscorlib public key is so short? It is only 16 bytes long, and on top of that only has 1 byte that is non zero. Does this not make it 'weak'? Simon
overriding non-virtual method (no joke!) (6 replies)
microsoft.public.dotnet.framework.clr
Hello, (this is not april 1 joke). I'm in a desperate need of overriding several non virtual methods of ancestor class (ex. in C# syntax "public void MyMethod()"). In Win32 I can do this by in memory patching ancestor's code and redirecting execution to my method (we did this before and this is a trivial task). The question is about .NET now 1) are all methods (both static and virtual) called via ...
Weird assembly key problem (7 replies)
microsoft.public.dotnet.framework.clr
I have an application that uses a simple utility DLL. The DLL has a key specified in AssemblyInfo file: [assembly: AssemblyKeyFile(@"..\..\Utils.snk")] Everything works fine on a development machine. Now when I try to install the application with utility assembly on a machine with just W2K and .NET 1.1 installed, it does not start. ("Application has generated exception that could not be handled......
Thread safety of reference affectation & security issue (5 replies, VIP)
microsoft.public.dotnet.framework.clr
I would like to know if the here below 'MyClass' is threadsafe. In other word, is reference affectation an "atomic operation" for the CLR ? class MyClass { object obj null; public void Set(object obj) { this.obj obj; } public object Get() { return obj; } } If reference affectation is an atomic operation, then everything seems fine to me. guess If not, that means that potentially I can retrieve an ...
URGENT: How can I avoid my SOURCE CODE from DECOMPILERS like Anakrino9? (8 replies, VIP)
microsoft.public.dotnet.framework.clr
I'm scare because using Anakrino9 I was able to DECOMPILE my PROJECT. I have been working on it for a year now and it's too unfair that anybody out threr will be able to DECOMPILE my APP what can I do??? Thanks
.NET applications not portable ? (7 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I've seen the following being explained about .NET applications in a C# Microsoft Course : "An assembly executable (exe) contains a small amount of unmanaged code, known as the stub, which is used to load the .NET CLR and start execution of the application. The reason this is unmanaged code is because the OS loader in W2K and in previous Windows OS's doesn't recognize .NET applications and bec...
Weird behaviour : GC & Multithreading ... (5 replies, VIP)
microsoft.public.dotnet.framework.clr
Look at the following code : I instanciate a class which creates a new Thread in its .ctor. Then i set the instance of this class to null and let the GC run but GC only cleans this instance up if I explicitly Start() and Abort() the thread .... I find that this is not the way one would expect garbage collection to work ... what may be the reason ???? using System; namespace MyConsoleApp { public c...
URGENT: Hosting CLR from Citrix (2 replies, VIP)
microsoft.public.dotnet.framework.clr
We have a Delphi application that hosts .NET 1.0. Some customers run it from a Citrix server just fine, while others get error number 2147024894 when calling ICorRuntimeHost Start We are binding to the runtime with default values, and get back a valid ICorRuntimeHost interface. begin code CorBindToRuntimeEx(nil, nil, 0, CLASS CorRuntimeHost, IID ICorRuntimeHost, pRuntimeHost); hr : pRuntimeHost.St...
DataAdapter.Update problem (4 replies)
microsoft.public.dotnet.framework.clr
I have a DataAdapter that connects to this table. Table1 Field1 unique int Identity Field2 int Field3 int I did this, which fails for (...) { DataSet.AddTableRow(Field2, Field3); } DataAdapter.Update(DataSet, 'TableName); // An exception about unique constraint I did this, which works for (...) { DataSet.AddTableRow(Field2, Field3); DataAdapter.Update(DataSet, 'TableName); } The DataAdapter is cre...
Growing Working Set Size on GUI App (3 replies)
microsoft.public.dotnet.framework.clr
I know there have been a lot of posts in relation to GC, working set, trimming working sets, minimizing forms, etc. I've read every one I can find, but have not found a solution to my problem. The closest I ever found was the thread here recently "GC does not release memory... memory keeps growing". We have a GUI app on a client site, which is being used under Citrix by up to ~100 users at a time....
Resource File Trouble: mscorlib.resources couldn't be found! Large parts of the BCL won't work! (3 replies, VIP)
microsoft.public.dotnet.framework.clr
Hello, Has anyone ever run into a problem using resource files that results in the following error message: mscorlib.resources couldn't be found! Large parts of the BCL won't work! I added an additional resource file to my project and load the resource into a Resource Manager object on form load. I used the explicit path to the resource by copying it out of ILDASM. The resource appears to load but...
CorProfiler Event Log Error (3 replies, VIP)
microsoft.public.dotnet.framework.clr
I just recently noticed that I am sometimes getting the following error in my event log when using the COM Profiling API "The description for Event ID ( 0 ) in Source ( CLR ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: Failed to CoCreate profiler....
Adding Type Initializers Whilst Profiling (16 replies)
microsoft.public.dotnet.framework.clr
I am writing some code that uses the Profiling API. I want to know if adding (or modifying if present) a Type Initializer (.cctor) is a safe thing to do whilst profiling? I intend to add it during the "AssemblyLoadFinished" profiler callback, using the IMetaDataEmit interface (obtained from ICorProfilerInfo.GetModuleMetaData()). I presume that if this is allowed i should allocate the memory for th...
ICorProfiler Question - Force class loading (7 replies, VIP)
microsoft.public.dotnet.framework.clr
I know that some calls into the COM profiler API can cause the CLR to call back into your COM object as it loads in additional classes. I was wondering if I could force this to happen for classes I want. For example, I need to know certain facts about a method call (such as if it is a COM Interop Assembly call), but that is defined in the Method/Type definition, not the reference. But I can't be p...
apsnet_wp.exe non-default identity vs. System.Web.Mail.SmtpMail (7 replies, VIP)
microsoft.public.dotnet.framework.clr
Hello, Can anyone suggest how to handle th following problem: 1. I've changed userName and password attributes in processModel in machine.config to make aspnet wp.exe run under my local account. 2. But now the following code in my .aspx fails with exception: using System.Web.Mail; SmtpMail.SmtpServer "mymailhost"; SmtpMail.Send("from@host.com", "to@host.net","test 2", "test message"); Exception: S...
API functions (4 replies, VIP)
microsoft.public.dotnet.framework.clr
Hi, I really don't like to use the [Import Dll] for usage of API functions. Is the .NET Framework support in all API functions ? I use: Beep, IsNetworkAlive, ShellExecuteEx etc... My application will not run on Linux or Mac since I go to Windows Functions. What are the possibilities ? Where can I find any article that has all the API to .NET Namespaces or maybe the most needed. thanx.
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com