all groups > dotnet clr > august 2006
SOS Symbol Information in .Net 2.0
Posted by Dave-Splat at 8/31/2006 6:18:01 PM
I can't get source code file name and line number information using !clrstack
in the .Net 2.0 version of SOS. Is this a regression from the 1.1 version?
If not, what's the trick?... more >>
Missing Field exception
Posted by Roger Miller at 8/29/2006 12:49:02 PM
I'll try to keep my explanation as simple as I can but leave in the relevant
details.
We're developing in c#.
Our main application can dynamically load assemblies ( plugins) that
support a certain interface (to do "extra" functions). Our intent is that
these assemblies won't be updated... more >>
How many threads from the thread pool?
Posted by soundman32 at 8/29/2006 7:41:02 AM
Is there a way to find out how many threads are being used in the .net thread
pool and how many functions are waiting for a free thread?
... more >>
Thread affinity
Posted by Ismo Salonen at 8/29/2006 12:00:00 AM
I've got third party library (unmanaged code) which creates objects.
Those objects have thread specific data.
If I create a wrapper for .net remoting which is the best way
to force thread affinity ?
If I user server activated objects ( a'la factory pattern) then
if I understand correctl... more >>
AppDomain crash isolation
Posted by ultimA at 8/26/2006 3:45:02 AM
Hi!
Is there any way to stop crashing the default appdomain if there is an
unhandled exception in a secondary (child) appdomain? Writing unmanaged code
is ok.
Thanks for your help,
Károly... more >>
Deploying native Windows DLL used by .NET applications
Posted by Boris at 8/26/2006 1:11:16 AM
We have a native Windows DLL (let's call it native.dll) we developed a .NET
interface for (let's say managed.dll). When a .NET application now uses the
..NET interface to talk to the Windows DLL we always thought that managed.dll
must be copied to the application directory (where the .NET appl... more >>
Complex Problem with AppDomains, Assembly Loading Contexts and COM Interop
Posted by andrew.miadowicz NO[at]SPAM gmail.com at 8/25/2006 3:16:48 PM
My team has been struggling with an issue involving assemblies
dynamically loaded into separate app domains in the context of an .Net
extension running in a third party executable via COM Interop. After
studying what's available online and reading thoroughly through most of
Steven Pratschner's ... more >>
CLR stack Debugging: How to get parameter value from !CLRStack
Posted by Hiten at 8/23/2006 6:34:02 AM
Hi,
I have an issue on production box and I got a crash dump using ADPlus. I am
trying to analyze the exception and got an object dump for exception object.
I can see the function name where exception occured but can not see the
parameter values passed in that is causing the exception.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Using AssemblyResolve event to resolve all types
Posted by john conwell at 8/22/2006 4:24:03 PM
I'd like to find a way to use the AssemblyResolve callback to resolve all
types, not just those that the loader cant find via probing. Is there a way
to short circuit the loader to do this?
The main reason, is this is a great way to implement custom dynamic proxies
without having to go thr... more >>
policy file question
Posted by Scott Holman at 8/18/2006 1:32:06 PM
After creating my policy file assembly I find that I cannot install it into
the GAC without the corresponding xml configuration file. The documentation
I read seems to imply that the policy in the xml file is encapsulated into
the policy assembly. Is there a way to create the policy file wit... more >>
Concerns about exception string revealing internals/data about the
Posted by John K at 8/18/2006 6:03:03 AM
Hello,
We have a global error handler in our .NET 2.0 Framework application and I
am wondering if there is a possiblity that an error message (i.e.
ex.GetBaseException.ToString) could display any program data or database
field names, etc. The application reads data from a database and if a... more >>
Image to Icon,Icon to Image in C#
Posted by tokinka at 8/16/2006 5:34:49 PM
Does anyone kown how to convert Image to Icon and Icon to Image easily?
Thanks.
... more >>
DynamicMethod with Exception Clause
Posted by behnazb NO[at]SPAM gmail.com at 8/12/2006 12:57:16 PM
Hi,
I have been working on dynamic method generation. My code has been
working fine for most cases however I don't seem to be able to execute
a dynamic method that contains a try/catch clause.
Specifically, when the call to Invoke() is made the CLR throws a
TargetInvocationException. The ... more >>
Lack of OO support for stateless programming
Posted by Chris Mullins at 8/11/2006 3:13:41 PM
I tend to build high performance system, and when doing this stateless
programming is at a premium. This often means all of the public methods on a
class are defined as static.
I often find that the .Net framework has poor support for doing this.
Interface definitions don't allow static met... more >>
Catching managed exceptions in unmanaged code
Posted by Erlend at 8/11/2006 7:02:23 AM
Hello,
I need to be able to catch clr exceptions in unmanaged code. Anyone
know how to do that?
I'm able to catch native types, so there is obviously some marshalling
going on, but I don't know what type the Exception^ is cast to. Any
help will be greatly appreciated!
The following examp... more >>
Any help understanding windbg/sos dump of hung app
Posted by John Aldrin at 8/10/2006 2:41:02 PM
Hi,
Wondering if anyone can make better sense of this app dump than I.
Working on app that perioldiclly hangs, with maxed out cpu. The app is
reading data from hearing aids ( 1 or 2) connected via a serial port to an
external device that interfaces w/hearing aid. App is a win forms app
... more >>
Reflection, how to tell the complexity of the type???
Posted by Sam Carleton at 8/8/2006 3:42:43 PM
I am writing a debugging class that will drill into a class and dump
all the fields in the class. How can I determine if a field is an
object that can have it's own fields or a simple type like an int or
double?
Sam
... more >>
Executing a method in a given thread context
Posted by Francois PIETTE at 8/8/2006 11:33:50 AM
I'm porting win32 code (non visual component or "user control") to .NET.
In win32 code, I was using Windows messages between threads to signal events
form a worker thread to another thread. This was done to make sure an event
handler was executed in the context of the thread having created an i... more >>
Loading an assembly from byte stream
Posted by Graven at 8/5/2006 3:38:09 AM
Hello guys,
Recently I've tried to load an assembly from a byte stream using the
method Load(Byte[] rawAssembly). The test assembly was a single-module
assembly that referenced nothing but mscorlib. I've renamed the
assembly to someting messy, and then got its contents to a byte array
using F... more >>
Debugging project from unc
Posted by Chris Thunell at 8/4/2006 12:30:00 PM
I'm using VStudio2005 and working with a VB.Net windows form application.
The project is located in the My Documents folder... under a UNC shared
path.
\\fs1\users\cthunell\My Documents\My Projects (something like this)
I'm getting a SecurityException was unhandled.. Request for the Permissi... more >>
Unexplained OOM with framework 2
Posted by AJ at 8/3/2006 4:57:53 PM
We've got a nasty out-of-memory problem which is currently evading
capture. It occurs when there appears to be plenty of memory left. I've
been trying to use WinDbg to investigate, and have finally got a decent
dump. Summary and extracts are below. Anyone got any ideas? There's one
particu... more >>
Executing GC.Collect and GC.WaitForPendingFinalizers
Posted by Mrinal at 8/2/2006 3:19:45 PM
Hi ,
I need some information / clarification wrt to above mentioned GC methods , which we can call in our program to halt the thread
execution till the point GC comes into the picture and accomplish the relevant business .
Now , i am having a stress test suite where around 100 - 200 worker th... more >>
More than one CLR per process / addin isolation
Posted by Ruslan Popov at 8/2/2006 1:36:02 AM
Hi,
Is there a way to load different versions of CLR into one process? We need
this in order to be able to use .Net 2 add-ins and .Net 1 add-ins in Excel at
the same time.
--
Best regards,
Ruslan Popov... more >>
GC.Collect and Generations
Posted by Günter Prossliner at 8/2/2006 12:00:00 AM
Hi everybody!
As we all know, die Garbage Collector minimizes the time needed for a
collection by using generations. When an object remains uncollected, it
moves one generation up. Higher generations are not collected such often as
lower generations. When an object lives in the generation 2... more >>
clr 2.0 missing in iis log (& broken app)
Posted by frank at 8/1/2006 9:17:47 PM
We created an asp.net 2.0 app, which sends smtp email using System.Web.mail.
The app is in an IIS 6 application pool isolated to 2.0 apps on a 2003
server.
The app worked fine for a few days; recently however it began failing when
sending to external addresses (it works fine if the recipien... more >>
managed/native thread affinity
Posted by zhangrusi at 8/1/2006 1:19:02 PM
Hi,
I have two questions about managed/native thread affinity in applications
hosted by ASP.NET, running under version 2.0 of the .NET Framework:
1) Is it ever possible for two or more managed threads to be multiplexed
onto the same native thread?
2) Is it ever possible for a managed th... more >>
|