all groups > dotnet clr > february 2004 > threads for february 15 - 21, 2004
Filter by week: 1 2 3 4
Multiple put_ property accesors
Posted by Michael Sparks at 2/21/2004 9:19:51 AM
I am trying to accomplish something like this: (C# pseudocode)
class MySample
{
IBigObject _value;
Type _type;
public IBigObject TheBigObject
{
get
{
if(_type!=null)
{
_value=(IBigObject)_type.GetConstructor(Type.EmptyTypes).Invoke(new
object[0]);
_type=null;
... more >>
Some question about CLR and managed applications
Posted by Sheila Jones at 2/20/2004 11:21:47 AM
Hello,
I'm trying to get my brain around the CLR! Can somebody tell me if the
following are correct? Thanks.
1. The CLR runs each managed application in its own application domain, but
there can be several application domains within the same process.
2. The managed heap is shared by all a... more >>
Finding out the current class in a static method?
Posted by Rick Strahl [MVP] at 2/18/2004 10:54:35 PM
Is it possible to get a Type reference to the currently executing type from
a Static method?
public class foo
{
public string static FooM()
{
Type x = ????
return "Crap";
}
}
public class foo2
{
public string Something() { return "x"; }
}
then if callin... more >>
Growing Working Set Size on GUI App
Posted by Niall at 2/18/2004 12:00:17 PM
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
growi... more >>
NullReferenceException Message Feature Request
Posted by Bryan Livingston at 2/18/2004 11:21:07 AM
I'm guessing that NullReferenceExceptions are by far the most common exceptions thrown in .net.
Why not add the type of the reference to the message? Have it say something like:
Object reference of type 'string' not set to an instance of an object.
This would really help when trying to figur... more >>
Profiler
Posted by Frank Rizzo at 2/18/2004 10:12:33 AM
Can anyone recommend a good profiler for .NET? It should support both
vb.net and c#.
Thanks... more >>
asynchronous delegate problem
Posted by Sankar Nemani at 2/17/2004 2:53:57 PM
I have a delegate which I call BeginInvoke on. I use the waithandle.WaitOne
to wait for the delegate to finish.
If there is an exception in the delegate call, waithandle.WaitOne returns
true and the asyncresult.IsFinished(Completed) also returns true.
How do I know if there is an exception and t... more >>
Strange problem with C# and platform invoke
Posted by sqcliu at 2/17/2004 1:46:13 AM
I encounter a strange problem using platform invoke using C#.
The senario is this:
I have a dll which uses a 3rd party static link library (lib). Inside the lib, there are some C structures defined by not exposed to user, in the dll, that data type can be treated as an opaque type.
I use C# a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Obtain .NET "Ticks" from J2EE "Millis"
Posted by num NO[at]SPAM laposte.net at 2/17/2004 1:39:35 AM
Hi all,
Sorry for cross-posting.
I have to convert a J2EE date as a long ("Millis") in a .NET date as a
long ("Ticks")
In Java, currentTimeMillis, is the difference, measured in
milliseconds, between the current time and midnight, January 1, 1970
UTC.
In .NET, DateTime.Ticks is the 10... more >>
CLR extentions
Posted by Ole Andre Karlson at 2/16/2004 6:11:04 AM
Hi,
it is my understanding that to support generics the CLR (at least the IL) had to be extended with new instructions. I have been wandering around the ms site looking for ducumentation without succses, can anyone point me in the right direction?
thanks
Ole... more >>
Button click single
Posted by Pat at 2/16/2004 12:01:06 AM
Hi
I have been creating an Button using .Net C#.
Once the user clicks the button, the click event handler will perform task A. This normally takes around 2 minutes
During this 2 minutes, the user must not be allowed to click this button again
However, once the user clicks multiple times on thi... more >>
|