all groups > dotnet clr > april 2005
More clueless n00b questions...
Posted by Lizard at 4/28/2005 3:15:38 PM
OK. Here's my current assignment -- I need to write a formula parser
which is *fast*, as the formulas will need to be interpreted (acting
on new variables each pass) roughly a few zillion times during
operation. The formulas must be able to include some custom-designed
functions (such as 'the av... more >>
GetParamForMethodIndex for return value doesn't work ? V2.0 .NET
Posted by Keith Dorken at 4/28/2005 5:16:04 AM
Using the Metadata Unmanaged API call GetParamForMethodIndex to obtain
the parameter definition token for the return value, you are told to pass 0
for
the ParamSeq value. This results in a Com error 80131130 'Record not found'.
This was called passing a MemberRef token (0x0a0000011 for examp... more >>
Urgent. Socket.BeginConnect doesn't work when is called from a separate thread
Posted by Anibal Acosta at 4/26/2005 12:44:30 PM
One complete day a lost finding the problem, Now I know what is, but I
don't know why?
This is my simple source code. The first method call the BeginConnect()
using the same windows form thread, and the second method call the
BeginConnect() using another thread
You will think... "Why you... more >>
System.CodeDom.CodeTypeReference.IsInterface public access require
Posted by Paula Willis at 4/26/2005 8:30:05 AM
We would like to be able to use the
System.CodeDom.CodeTypeReference.IsInterface() function, but its
accessibility is internal. Would it be possible to make this public?
We would like to use it in our COBOL CodeGenerator to determine whether the
CodeTypeReference is an interface or not, in ... more >>
Bytecode verifier vs. Exception Handling
Posted by George at 4/26/2005 3:37:09 AM
Hello,
Please someone help me in the following verification question:
I know that verifier shall simulate all possible control flow paths through
the bytecode. So, the verifier shall have a flow graph.
In this graph, I'm wondering, what is the succesor of an "endfinally"
instruction. Wh... more >>
MessageSink
Posted by Bart at 4/25/2005 9:43:04 AM
Hi,
I'm designing a small AOP framework (for my thesis) and I'm planning to use
MessageSinks. There is just one problem: I want to identify (from within the
MessageSink) the client that is using the ContextBoundObject .
Any suggestions?
Thanks in advance,
KR
Bart... more >>
BETA2 Docs
Posted by Dave.NET at 4/23/2005 7:29:02 AM
Hi all,
I can't seem to find the .doc files (e.g. Unmanaged Metadata, Hosting I/Fs,
Profiling, etc) in this distribution. I did notice that the unmanaged API's
are
"somewhat" documented in the MSDN online documentation, but not complete. It
would be nice to have the full blown word docs fo... more >>
Media Center 2004 Causing CLR2 Error?
Posted by Paul B at 4/22/2005 10:43:03 AM
Since installing .NET 2.0 Beta 2 on my MCE 2004 machine, I have been unable
to run Media Center and have been receiving the following errors in the
eventlog.
Event Type clr20r3, P1 ehrec.exe P2 5.1.2600.2180, P3 41107d79, P4 ehcir, P5
6.0.3000.0, P6 41109696, P7 12a, P8 50, P9 system.missin... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Windows Service
Posted by Shawn B. at 4/19/2005 10:56:04 AM
Greetings,
I couldn't find a more appropriate NG so I thought I'd post my question
here.
Lets say I have a Windows Service that has some object instances I want to
use in my application process. How would I go about requesting an object
instance from the service, and can I move the object ... more >>
Arrays and Thread Safety
Posted by Eric at 4/14/2005 12:03:10 PM
I have a thread safety question. Say I have the following:
class Class1
{
//instance constructor, member, and method
private Class1(SomeEnum x)
{
m_enumValue = x;
}
private SomeEnum m_enumValue;
public SomeEnum EnumValue
{
get{return m_enumValue;}
}
//static constructor, memb... more >>
framework 1.1 VS 2005
Posted by Sankar Nemani at 4/13/2005 11:57:19 AM
Is there a way to generate assemblies using VS 2005 that work with framework
1.1?
... more >>
Gc Mystery
Posted by saurabhgarg2k NO[at]SPAM gmail.com at 4/13/2005 2:25:56 AM
Hi there guys,
Here is the code snippet which in which i am trying to read a file and
taking two cases in first one i promote the object to Gen1 so that it
will be saved from frequent Gen0 Collections and dont have to read file
again which is a costly business.In second case, normal process wi... more >>
ECMA Wrong - Class and Object Initialization Rules - Help!
Posted by George at 4/12/2005 3:25:03 AM
Hi,
ECMA states in Section 1.8.1.4 (Partition III) on Class and Object
Initialization Rules:
"An object constructor shall not return unless a constructor for the base
class or a different construct for the object's class has been called on the
newly constructed object. The verification a... more >>
How do I code a Module Constructor in C# or C++?
Posted by Dave.NET at 4/9/2005 3:35:02 PM
In the chat "Visual C++ 2005 Library and Runtime Enhancements",
http://msdn.microsoft.com/chats/transcripts/vstudio/vstudio_091604.aspx,
there is some discussion on a 2.0 CLR enhancement in which the CLR calls a
"Module Constructor" before any managed code is executed in the Module:
"Q: I... more >>
AutoUpdate WinformApp (AppDomain.ShadowCopyFiles default setting)
Posted by Stefan G. at 4/9/2005 4:15:01 AM
hi,
we've to develop an self-and-on-the-fly updating winform-app and are
considering to count on the CLRs shadow copy features.
can we assume, that shadow copying is enabled by default (it seems to be on
our development- and some test-pcs)?
is there any possibility to config shadow-copy... more >>
MSIL
Posted by KDV at 4/7/2005 1:51:04 PM
Can someone tell me where can I get complete list of MSIL instructions along
with the documentation.
Thanks in advance... more >>
Pass Objects across App Domains
Posted by arvind at 4/7/2005 9:39:03 AM
Hi
Can someone please let me know if this is a feasible solution?
Lets say I have a class TEST which has a method called RUN().
The RUN() method needs to load 10 assemblies into a new App Domain, Create
Instances of Types which Implement certain interfaces, and Call methods on
each of thi... more >>
How GC Works
Posted by saurabhgarg2k NO[at]SPAM gmail.com at 4/6/2005 3:04:31 AM
Hi there,
I am attaching a snippet of code here which tries to explain that if u
have a class which contains both Unamanged resources and allocates a
lot of memeory and have a finalize method, then u should divides it
into two classes , one contains the memory part and other manages the
unman... more >>
System.Diagnostics.Process doesn't work when performance counters are disabled
Posted by Arnie at 4/5/2005 4:09:07 PM
Folks,
We've run into a problem with the System.Diagnostics.Process object. It
doesn't work (throws an exception) and seemly random times.
.....
The error from the dialog, which a few people have been seeing, is a known
problem that Microsoft claims they will have fixed in the next vers... more >>
best debug / perfmon options to drilldown to find error
Posted by chris yoker via DotNetMonster.com at 4/5/2005 10:01:36 AM
hiya,
I have winforms app that contains buttons.
Any time that I click on any of the buttons, I get an error:
<error>
An unhandled exception of type 'System.NullReferenceException' occurred in
system.windows.forms.dll
Additional information: Object reference not set to an instance of an
... more >>
Static Variables during Garbage Collection
Posted by saurabhgarg2k NO[at]SPAM gmail.com at 4/5/2005 8:00:24 AM
Hi there,
I was just wondering that when an object's finalized method is called,
garbage collector must have marked it as garbage and unreachable even
though i am accessing the Static Variables of the Class after finalized
method is called.
So the doubt is whether the object is really been ... more >>
Cleaning Up Memory
Posted by arvind at 4/5/2005 6:39:07 AM
Hi
I have a .NET windows App in which I load Assemblies using Assembly.Load
into the current Application Domain, Search for Types which implement certain
interfaces and then create Instance of each of these types and call some
methods on eacn Type. I am making use of Activator.CreateInstan... more >>
Reference types
Posted by saurabhgarg2k NO[at]SPAM gmail.com at 4/4/2005 12:29:54 PM
Hi there,
I know about how the reference types passed by value works, it copies
the pointer in the Stack (which is the pointer to the actual memory
location in the heap) and pass it on, thats y the function called can
modify the original object because it have the pointer to the same
object a... more >>
Garbage Collection
Posted by saurabhgarg2k NO[at]SPAM gmail.com at 4/4/2005 10:20:35 AM
Hi there,
I have a query about the garbage collection
If i an array of an object of size, say 1000, and the object
implements Idisposable, first of all how should i call dispose method
on an object array.To better understand the query i am providing a
snippet here which will create a collec... more >>
Detect if assembly exists
Posted by Bart Verkoeijen via .NET 247 at 4/4/2005 9:27:33 AM
Hi,
I'd like to know if an assembly exists in the GAC or directory, and therefore can be loaded if required.
The only thing I know about the assembly is it's fullname like the AssemblyName.FullName property.
I found out I could try to load the assembly with Assembly.Load() and catch the Fil... more >>
Simple Question (regarding runtime)
Posted by sinukosh NO[at]SPAM gmail.com at 4/3/2005 10:30:04 PM
Dear All,
I have a simple question. The scenario is as follows.
I created a class as shown below
public class Test
{
public string Key = "";
}
I am using this class in another location as shown below.
Test test = new Test();
test.Key = "Something";
Now at runtime i need to f... more >>
sso
Posted by AVL at 4/3/2005 9:17:02 PM
Hi,
I need to implement single sign on in my application. I dont want to
use passport authentication. Do we any other way?... more >>
A plea for the reinstatement of IDL
Posted by Richard Blewett [DevelopMentor] at 4/1/2005 1:46:27 AM
Myself and others who have a serious investment in IDL have formed a
petition to get Microsoft to get IDL out of the sidelines and back in to a
mainstream language. Its about time we had a proper IDL editor in VS.NET for
a start. Microsoft need to start thinking about where they got that idea ... more >>
|