all groups > dotnet clr > september 2006
DLL configuration files
Posted by MD at 9/29/2006 10:32:00 AM
Does anyone know how to access settings in a DLL's config file? Say
you have a DLL that stores some connection string information in it's
config file. The DLL also has some method to make use of that stored
value (like Connect()). So if the DLL is then late bound by an EXE,
how does the Connec... more >>
Managing Threads
Posted by Roger at 9/28/2006 8:19:02 AM
Can someone provide a simple code example on how to manage threads in C#?... more >>
Need utility to compare !DumphHeap results from two dump files
Posted by Loy at 9/28/2006 2:38:18 AM
Before I write this utility myself - I thought someone must have
written such things - so why inventing the wheel?
Problem: Memory leak in large application
Memory profiler does not handle the load or affect the application
performance
Memory profiler can't be installed on customer site
... more >>
System.ExecutionEngineException
Posted by anand.m.s NO[at]SPAM gmail.com at 9/27/2006 7:33:19 AM
Hi,
I have a direct reference to a VB6 COM component in my C# application.
During runtime, the methods I call on the COM component get executed
fully and but when returning to the calling .Net component, throw an
ExecutionEngineException.
Can somebody thrown light on when and why an Execution... more >>
JIT debugging - How to get the managed exception details?
Posted by Loy at 9/27/2006 4:44:17 AM
JIT debugging - How to get the managed exception details?
Problem: managed application is crashing on startup with unhandled
exception - need to understand the exception
I've set windbg to be my JIT debugger for managed code
HKLM\Software\Microsoft\.NetFramework\DbgJITDebugLaunchSetting =
... more >>
Using BackgroundWorker in a browser's hosted user control
Posted by Carlo Folini at 9/26/2006 2:36:02 AM
I have a user control written in c# 2.0 hosted in ie6.
I'm doing some async stuff with BackgroundWorker.
I see that the RunWorkerCompleted method is executed in a thread different
from the UI one.
The same user control if hosted in a winform app works correctly.
Also if the RunWorkerAsync is... more >>
Code Access Security error for a Site from Network share
Posted by Navnit at 9/22/2006 4:47:02 AM
Hello,
I want to create a website in IIS which has its ApplicationPath or Virtual
Directory from a network share.
Its a ASP.Net 2.0 website. I've the site percompiled (One Assembly Per Page).
When I try to do the above I get a "Code Access Security" error, which is
justified since I am ... more >>
Default AppDomain and Assembly Reload
Posted by MD at 9/22/2006 1:04:38 AM
I am a little stuck. An application that I am maintaining loads
plug-ins but only uses the default app domain and thus cannot unload
them. That's how it is. It also has its plug-in assemblies frequently
updated and forces the user to restart the application each time.
I have managed to get ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is there a tool to view JIT output?
Posted by John at 9/20/2006 7:34:23 PM
I really want to see what machine code the JITter is producing for an
undebugged release build. I've discovered that I can call a breakpoint
opcode (INT3) which will allow me to attach a debugger and see a little
bit of what I want but its difficult to navigate.
There's the ngen /debug opt... more >>
Mixing dotnet 2.0 and dotnet 1.1 assemblies..
Posted by pdabak NO[at]SPAM yahoo.com at 9/19/2006 5:39:13 AM
Hello,
I have a ASP.NET application which consists of multiple assemblies. One
assembly contains some base classes say MyTypes.dll. Other assemblies
have classes which inherit from these base classes. MyTypes.dll is
installed in GAC. This application was running fine on ASP.NET 1.1
framework.... more >>
Assembly will be loaded from ?
Posted by Mrinal at 9/18/2006 7:44:23 PM
Hi ,
just for confirmation :
A.dll is strongly named and is available in my project bin directory .
it's also installed in GAC , so where will runtime look first , according to me , it
should be GAC , so even if somebody wants to replace the dll , then it's important to install in GAC ,than
... more >>
Type.GetType
Posted by Paul at 9/18/2006 1:52:02 PM
Does anyone know why this line of code returns null and not an instance of
Type?
Type.GetType("System.Drawing.PointF")... more >>
overriding C++/CLI Dispose in C#
Posted by John at 9/15/2006 1:47:58 PM
I'm having a problem trying to override IDisposable.Dispose() in a C#
class that inherits a C++/CLI class that implements Dispose(). The
compiler says
Error 13 'JM.UI2.EditBoxDataModel.Dispose()': cannot override inherited
member 'JM.UI.Base.Dispose()' because it is not marked virtual,
a... more >>
Fusion binding - DEVPATH setting doesn't appear to work
Posted by Matt Adamson at 9/14/2006 12:00:00 AM
As per the instructions at
http://msdn2.microsoft.com/en-us/library/cskzh7h6.aspx I've performed the
following
a) Created a system environment variable DEVPATH set to m:\debug.
b) Added the following to the machine.config for .NET 1.1
<runtime>
<developmentMode developerIns... more >>
Reflection in 1.1 and 2.0
Posted by Eric at 9/12/2006 12:50:01 PM
I have here a little sample which does reflection on a class.
I striked me that 1.1 is nearly two times faster.
Could me somebody give a hint why?
For the sample: Compile it via "csc.exe /optimize+ Program.cs" with the two
compiler for 1.1 and 2.0.
Thanks
Eric
namespace ComponentProfil... more >>
How to get the Appdomain Object from AppDomain ID
Posted by John at 9/12/2006 11:48:56 AM
I have a AppDomain ID, how do I get the instance of the AppDomain
Object?
Please advice.
Thanks in advance.
John
... more >>
ArrayList.Contains() slower in NET 2.0 ?
Posted by Robert Hooker at 9/11/2006 5:19:48 PM
We are moving to .NET2.0 - and have noticed that .Contains() seems to be
around 20% slower under NET2, compared to NET1.1.
This code shows the issue:
static void Main(string[] args)
{
System.Collections.ArrayList list = new System.Collections.ArrayList();
//Setup code
//
//A... more >>
CLR Events and Handlers?
Posted by MD at 9/9/2006 7:05:18 PM
Is there a means of hooking events from the CLR that fire before and
after any member of a class is accessed/invoked within a particular
assembly? I am looking for something akin to how trace switches work.
With those one can simply insert entries into the application
configuration file to defi... more >>
Confused about when symbols are needed when using adplus
Posted by Jrax at 9/8/2006 2:11:02 PM
Hi,
I'm confused about when symbols are needed when using adplus.
I cant tell from documentation if symbols (os and app) are needed when
adplus produces the memory dump or if symbols are really only necesssary when
looking at dump file w/windbg.
Thanx
jra... more >>
Fusion binding log viewer not working - TypeLoadException - Urgent
Posted by Matt Adamson at 9/7/2006 12:00:00 AM
Guys,
We have an error thrown below
1) Exception Information
*********************************************
Exception Type: System.TypeLoadException
Message: Method CreateFromTaskID in type
Tranmit.Sprinter.Approval.Interop.ApprovalTaskFactory from assembly
Tranmit.Sprinter.Approval.Intero... more >>
Loading assemblies dynamically using my own ResolveEventHandler
Posted by illegal.prime NO[at]SPAM gmail.com at 9/6/2006 1:50:27 PM
Hey all, so I've noticed that when I load assemblies dynamically in my
own custom ResolveEventHandler that their Modules do not get returned
when I invoke
Process.GetCurrentProcess().Modules
Here is some pseudo code to show what I'm talking about:
public class Foo
{
public Foo ()
{... more >>
Need help with finalization issue.
Posted by John at 9/2/2006 1:51:31 AM
I have a scene graph where geometry nodes contain references to shared
geometry data. Imagine a graph where there's several instances of a
barrel; each barrel has its own 3D transform and a reference to the same
geometry object. This geometry object in turn references the index and
vertex bu... more >>
|