all groups > dotnet clr > january 2005 > threads for january 8 - 14, 2005
Filter by week: 1 2 3 4 5
When do assemblies get loaded
Posted by AndrewEames at 1/14/2005 9:21:01 AM
I'm trying to understand when assemblies get loaded (in particular so I can
gain a better understanding of how security works)
I have a .exe which references half a dozen other assemblies. If I put a
breakpoint in the first line of Main, I can see that one of the referenced
assemblies has b... more >>
WindowsIdentity._GetCurrentToken() Access is denied
Posted by Robert Phillips at 1/13/2005 2:27:32 PM
I periodically get an ApplicationException "access is denied" in the
WindowsIdentity._GetCurrentToken() method. Reflector shows the
_GetCurrentToken() method as
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern IntPtr _GetCurrentToken();
which i believe means it is an i... more >>
How to write array of doubles to stream without using a loop?
Posted by John Dumais at 1/13/2005 10:04:44 AM
Hello,
I have been trying to figure out how to write an array of doubles (in
this specific case) to a binary stream without using a loop. What I
have been doing is...
foreach(double d in TraceData)
{
instanceOfBinaryWriter.Write(d);
}
The loop is introducing overhead I don't want. ... more >>
Assembly resolving
Posted by AndrewEames at 1/13/2005 8:45:07 AM
I have a piece of code that is reading resources out of a loaded assembly
that goes something like this...
Stream stream = assembly.GetManifestResourceStream(resourceName);
using(ResourceReader reader = new ResourceReader(stream))
{
...
Now the ... more >>
aligned to the natural size? invalid address?
Posted by George at 1/13/2005 8:17:04 AM
Could somebody help me with answers at the following problems:
ECMA standard states that "initblk assumes that "addr" is aligned to the
natural size of the machine". What does this "alignment" means in a low-level
memory view?
1. Does it mean that, for example, on a 32-bit machine "addr" i... more >>
Asynchronous I/O
Posted by Jim Mischel at 1/13/2005 7:55:06 AM
I guess I'm confused about how to use the asynchronous I/O capabilities in
FileStream (BeginRead, EndRead, BeginWrite, EndWrite). The methods work in
that they actually transfer the data, but things don't appear to be happening
asynchronously. And, yes, I'm telling the FileStream constructor... more >>
MIME parser
Posted by Himanshu at 1/12/2005 10:43:05 AM
I am looking for support for parsing and generating a mime stream in
CLR. One of the scenarios which will better explain my requirements is
User types some data in an HTML enabled text control. I take this data and
converty it into multipart mime message and store the multipart mime message
... more >>
help! generic CIL instructions
Posted by George at 1/12/2005 8:45:05 AM
I would have a few questions concerning the generic instructions such as
"add", "div", "rem".
When a "div" is performed for two values on the stack, the result depends on
the operands' types. So a "div" needs to know the types of the operands:
int32, int64, etc. How does "div" know these ty... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Assembly problem in IL DLL (peVerifiy)
Posted by MalteseFalcon at 1/12/2005 3:31:03 AM
Hello
I am writing a small dll in .NET. ILasm is compiling with no errors.
However, peVerify is giving me the following error:
Microsoft (R) .NET Framework PE Verifier. Version 2.0.40607.16
Copyright (C) Microsoft Corporation. All rights reserved.
Could not load type '' from assembly '... more >>
static blocks and threading
Posted by Luis Fajardo at 1/11/2005 12:25:04 PM
I want to know if I should worry about threading if I open a file
(read/write) within a static block?
Thanks... more >>
Iterators in .NET 2.0 Nov '04 CTP
Posted by Mujtaba Syed at 1/9/2005 5:00:02 PM
I have the Nov '04 CTP of .NET 2.0 (The splash screen of Visual Studio .NET
calls it Beta 2).
I was trying some simple iterator code...
using System.Collections.Generic;
public class CityCollection : IEnumerable<string>
{
string[] m_Cities = {"New York","Paris","London"};
public ... more >>
Garbage Collection/OutOfMemory Exception 2
Posted by ronald NO[at]SPAM calleva.com at 1/8/2005 1:50:45 PM
Follow up to previous 16 message thread. Real world example of how
Garbage collector completely messes up machines and fails
comprehensively to collect Garbage with out prompting.
The Garbage collector is designed and optimised for Client based
applications where there are regular pauses in u... more >>
|