all groups > dotnet clr > november 2006
Controls ??!!
Posted by WELCOME ### at 11/29/2006 12:48:32 AM
Hi every one.
Can any person shows the web. of free download of some "Controls " that not
available in Toolbox.
Thanks
... more >>
Explicit casting
Posted by Diffident at 11/27/2006 11:55:01 AM
Hello All,
Is it only a best practice to use "AS" or "IS" or are there any performance
benefits to using these over explicit casting?
Thanks for your clarifications!... more >>
OS Thread unable to access Session variable
Posted by Diffident at 11/26/2006 3:06:01 PM
Hi All,
I am trying to perform a non-CPU bound operation in an asynchronous fashion
using 'Thread' and a delegate. Basically, I am spawning a thread using
ThreadStart and Thread.
My non-CPU bound operation needs to have access to Session variables; Even
though I embedded the state inform... more >>
Determining if a directory is writeable
Posted by Marco Shaw at 11/23/2006 1:28:56 PM
Is there something built-in to .net to determine if a directory is writeable
by the current user?
I want to write a Windows Powershell script that needs to write to a
directory. I can certainly do something in PSH to get the current user,
then determine if the ACLs will allow writing, but ... more >>
Memory access of unmanaged DLL
Posted by Ruben at 11/22/2006 8:56:44 AM
Hi!
I need to know, how much power an unmanaged DLL has about the "managed
memory".
Can I access memory of the managed code from a loaded unmanaged DLL?
The point is: Does a intruder, who injected code into the unmanged DLL
via e.g. a buffer overflow, have the possibility to read and modify... more >>
FileIOPermission problem
Posted by Schemer at 11/20/2006 9:29:30 AM
Hello,
I am working on a C# console app.
When I do this:
DirectoryInfo di = new DirectoryInfo(".");
I get an exception:
Request for the permission of type
'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089... more >>
outofmemoryexception
Posted by tin at 11/18/2006 10:56:01 AM
hi, i have an exe that holds a very large Dictionary collection that would
takes about 2.5G in total. the machine has 4G RAM.
if i load the entire collection within an EXE, i would get
outofmemoryexception when it uses up to about 1.5G RAM. however, if i split
the collection into 2 sepera... more >>
Distributing application w/ unsigned interop (code access security
Posted by Gerke M. Preussner at 11/17/2006 4:51:02 PM
My question falls under the category "I have written an application that
works fine on my developer machine, but throws a SecurityException on all
other computers". I spent almost the entire day reading through the
information already available on this topic. I now have a basic understanding
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SuppressUnmanagedCodeSecurity doesn't work on value types
Posted by John at 11/17/2006 4:09:08 PM
Anybody specific reason why this is? There doesn't seem to be a
legitimate reason why this would be.... more >>
Difficulty Extending from Generic Base Class
Posted by jkitagr at 11/13/2006 7:20:01 AM
I am trying to create a library that extends from a common base class that
provides common functionality, but I am running into one significant road
block. Let me give you an example.
If I do not do this with Generics, I would do something like this (Foo and
Bar extend from BaseClass):
... more >>
Type.GetProperty() does not work for private properties?
Posted by Martin Bischoff at 11/13/2006 6:15:01 AM
Hi, I'm trying to set the value of a private property using the following code:
internal void SetProperty(object obj, string propertyName, object newValue)
{
PropertyInfo pi = obj.GetType().GetProperty(
propertyName,
BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instan... more >>
CLR behavior about accessing data during garbage collection working
Posted by Hyun-jik Bae at 11/11/2006 1:41:00 AM
I got a curiosity while using CLR.
How can it be done that accessing object data by CLR application is safe
even while garbage collector is working? Is the GC thread running in
realtime priority for this for example?
Please reply. Thanks in advance.
Hyun-jik Bae
... more >>
How to catch Internet Explorer events?
Posted by Tal Shachar at 11/10/2006 4:54:46 PM
Hello,
I'm building a windows application, and I need to catch the open Microsoft
Internet Explorer events (e.g. changed url, new browser window opened,
current active browser, etc.) - Can anyone assist me with that? I managed to
know the location url of the open browsers by doing the followi... more >>
Dynamic generic type with base generic type definition
Posted by Michal Dvorak at 11/9/2006 2:06:29 PM
Hi,
I'm trying to define dynamic generic type definition, inherited from
another generic type definition (something like class B<T> : A<T>).
I'm using similar code to set base type (if this is wrong, all other
problems will be probably gone):
void SetBaseType(TypeBuilder builder, Type sourc... more >>
Memory footprint differences between x86 and x64
Posted by Chris Mullins at 11/8/2006 11:17:18 AM
I've seen a number of people ask about memory footprint differences between
x86 and x64 over the last few months.
In the course of some recent testing, I jotted down the numbers for both x86
and x64 with a very reproducable use case.
I ran my tests on a dual-core AMD Athlon with 4GB of mem... more >>
Char.IsPunctuation vs. CRT is(w)punct
Posted by Jeff Pek (Autodesk) at 11/6/2006 7:40:31 AM
Hi all -
A Kb article indicates that Char.IsPunctuation is the "equivalent" of the
CRT's isXpunct (e.g., iswpunct) function in .NET. However, I've found
significant differences in their behaviors. As a test, I ran each function
through the first 1000 or so unicode characters, and found the ... more >>
!sos.DumpHeap -stat -cache -gen 2 ==> high CPU and PageFaults
Posted by Loy at 11/6/2006 5:31:59 AM
I have dump file
I got the output of !dh -stat -cache (took few minutes)
Summary: Total 6,011,900 objects, Total size: 581,098,460
About 1400 types
The problem is when I try to the same summary for Gen 2 only
Running "!dh -stat -cache -gen 2"
Takes verrrry long time with ~50% cpu usa... more >>
Are there any pure managed object to Byte Array methods?
Posted by Ken Varn at 11/3/2006 4:30:53 PM
I want to translate an objects data to a byte array and vice-versa. The
closest thing I found is Marshal.StructureToPtr(), and
Marshal.PtrToStructure(). However, these functions are meant to copy from
managed objects to unmanaged IntPtrs.
Is there an equivalent call that does a pure manag... more >>
using threads in remoting server to cater client requests
Posted by deepak at 11/3/2006 3:12:23 AM
Hi All,
I have a remoting server which will cater to the client request in
asynchronous way, and the number of clients can be any,in the
implemention of the remoting server ,i am spawning one thread for each
client request. the server does bit of work before sending the results
to client.
... more >>
Question about data size when using serialized writing using BinaryFormatter
Posted by Ken Varn at 11/2/2006 10:02:47 AM
I am writing a structure marked as serializable to a data file using the
BinaryFormatter. The structure does not inherit from any other types. If I
were to add up the byte size of all the data contained within the structure,
I get about 50 bytes. However, when I write the data to the file w... more >>
Error handling in .Net Remoting
Posted by suhas at 11/2/2006 1:06:11 AM
Hi
We have .net remoting applications (using .net framework 1.1)
I want to implement error handling in much better way to conclude about
the problem/failure occurred.
What are the standard or Microsoft recommendations when communication
fails due to several reasons like
Server or Client ... more >>
.NET network sniffer
Posted by Marco Shaw at 11/1/2006 1:32:23 PM
I'd like to write a .NET-based network sniffer.
Where can I start?
(Except for first picking what language to write it with... Thinking of
C#...)
Marco
... more >>
|