all groups > dotnet clr > june 2004
Filter by week: 1 2 3 4 5
How to retrieve Custom Attributes from the Type
Posted by Paul at 6/29/2004 9:17:58 PM
Hi!
I have a problem:
I've declared some classes and decorated them with my Custom Attributes.
(say ClassA and ClassB)
Now I have some Type member (in fact this is FieldInfo.FieldType) which is
eq. typeof (ClassB).
And when I call GetCustomAttributes() for this Type I never gets the
attrib... more >>
Detecting number of processors
Posted by Stephen Walch at 6/25/2004 6:08:39 AM
I want to add "number of processors" to my license control system. I know I
can use Environment.GetEnvironmentVariable() to check for the environment
variable NUMBER_OF_PROCESSORS, but I do not know how easy this might be to
fake. Would I be better off using a Win32 sdk call to GetSystemInfo? ... more >>
\BaseNamedObjects\CorDBIPCLSEventReadName remaining handles ...
Posted by news.free.fr at 6/24/2004 5:50:39 PM
Hi,
I am working with the dotnet debugger API on windows XP, and when I
finish my debugging session using my own debugger, I have uncleaned
handles. My debugger is still alive and ready for a new debug run.
For instance \BaseNamedObjects\CorDBIPCLSEventReadName_2776
I can't find why tho... more >>
Decompile Attributes
Posted by Tom Bombadil at 6/24/2004 8:29:07 AM
Is there a means via Reflection to recreate the original C# source of an
Attribute? I'm familiar with the process of discovering the public fields,
properties and their values, but I'm a bit lost as to how one would know
which of these values map to parameters in the constructor. I've seen this
... more >>
Doubt about Garbage collection
Posted by Shiva at 6/24/2004 5:27:01 AM
Hi
I am writing a chat application
I have developed the chat server in which i am creating objects that represents the communicating parties and those will stay in memory till there is communication between them
when they logout i need to destroy the object from the memory
Because the appl... more >>
Extract an assembly from the GAC?
Posted by Jiho Han at 6/23/2004 4:01:34 PM
Is it posssible to get something out of the GAC to another folder?
Let's say you put an assembly into the GAC but you deleted the source - by
accident no less -.
Any ideas?
Thanks
... more >>
Smart client template solution ???
Posted by gicio NO[at]SPAM gmx.de at 6/23/2004 11:46:25 AM
HI!
I am currently at the beginning of a new project and I would like to start
with something out of the box. As we started our Web project we used IBuySpy
Portal
and it worked fine because we did not waste our time on authentification,
authorisation and all that but we were able to start... more >>
static members
Posted by Greg Young at 6/22/2004 2:24:50 PM
Has anyone dealt with putting static implementations in interfaces ? you
"can" do it (I am sure in IL) ... I'm wonderring if vb.net and c# play nice
when you do it ...
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Must you really pin delegates when marshalling them as function pointers?
Posted by Bern McCarty at 6/22/2004 12:43:12 PM
Using the May CTP of VS 2005 I read an article "How to: Marshal Unicode
Strings using C++ Interop". That article talks about the need to pin the
delegate prior to marshaling it out to native code as a function pointer.
But then in the 2nd example it proceeds to NOT pin it and to instead simply... more >>
How to tell mscoree.dll to load MSCORSVR.DLL?
Posted by Yuan Ze at 6/22/2004 12:19:51 PM
MSCORSVR.DLL is the multiprocessor build of the CLR.
How to load it instead of MSCORWKS.DLL?
Thanks.
... more >>
Re: Multi-threading article finally "finished" - reviewers welcome
Posted by Valery Pryamikov at 6/21/2004 7:14:42 PM
> - When thread scheduler sees that thread is waiting on Win32
> synchronization objects it immediately schedules context switch to another
> runnable thread instead of wasting time spinning.
shoud read as:
When thread scheduler sees that thread is waiting on non-signaled Win32
synchroniza... more >>
VB
Posted by billi 98 at 6/20/2004 11:58:13 PM
Hi,
I'm facing a problem for a long time. As I create the installation
package from 'VB's package & deployment wizards', my system gets booted
in between. Actually I have changed the original setup.exe of VB
according to my installation but after this it worked well for some
time. moreove... more >>
Quick ValueType question
Posted by John Linn at 6/19/2004 5:54:01 PM
If I create a valuetype with ten string members. Are the ten string instances created in the heap or stack?
JL... more >>
Assembly path question?
Posted by Ken Varn at 6/18/2004 3:13:44 PM
Is there anyway to locate an assembly from a path that is not relative to
the current path without using the GAC?
For instance. I have a .net application in C:\DirA\DirB that needs to use
an assembly class in C:\DirC. Is there a way to have the exe find the
assembly without using the GAC? I... more >>
How to read a microfocus COBOL file from .NET
Posted by .NET Developer at 6/18/2004 2:31:58 PM
Hi everybody,
Does anyone know how to read a microfocus COBOL file from .NET ?
I have a requirement where i need to read these files and store it in a
sql-server database.
I will really apperciate if anyone can help me on this.
Thanks
*** Sent via Devdex http://www.devdex... more >>
How do I re-write an assembly's metadata?
Posted by Ricardo at 6/18/2004 10:12:01 AM
I need to open an assembly, change some custom attribute's values and then re-write the assembly without re-compiling it.
I tried using Reflection.Emit, but I couldn't cast (System.Reflection.)Assembly to (System.Reflection.Emit.)AssemblyBuilder, which is the class where custom attributes are wr... more >>
Serialization of Complex objects
Posted by Nate at 6/18/2004 7:53:43 AM
I am creating an application that is quite complex. There will be several
dozen objects, most of which have delegates defined. At runtime, there will
be several hundred instances of some objects and many dozens of instances of
other objects (e.g. 100+ ClassA's, 10+ ClassB's and 50+ ClassC's etc).... more >>
mscoree.dll and GetFileVersionInfo
Posted by Tester at 6/18/2004 7:38:07 AM
Is it safe if I want to check mscoree.dll version to determine .NET runtime
version? So far they correspond. I know about GetCORVersion. But I would
like to know the answer to my question.
Thanks a lot
... more >>
BadImageFormatException
Posted by onurbyk at 6/18/2004 6:53:01 AM
Hello,
Our VB.Net Application suddenly started to raise an CLR exception on a client machine. CLR Exception code is 800700b. I found that Error 0x8007000b == COR_E_BADIMAGEFORMAT == System.BadImageFormatException indicating that the file image of an executable program is invalid or the applicati... more >>
Deployment: bin folder outside root folder?
Posted by Jon Maz at 6/17/2004 4:24:14 PM
Hi All,
I would like to have the following folder structure for an asp.net website:
MasterFolder
|---\AppRoot
| --- webform.aspx
| --- web.config
| --- global.asax
| |--- \images
| |--- \styles
| |--- \downloads
| |---... more >>
Multi-threading article finally "finished" - reviewers welcome
Posted by Jon Skeet [C# MVP] at 6/17/2004 3:38:55 PM
Please excuse the cross-post - I'm pretty sure I've had interest in the
article on all the groups this is posted to.
I've finally managed to finish my article on multi-threading - at least
for the moment. I'd be *very* grateful if people with any interest in
multi-threading would read it (e... more >>
hook with reflection?
Posted by Roman Pokrovskij at 6/17/2004 3:27:53 PM
Hello ALL
Does any one know if there is the way "to hook" method in the object using
reflection?
I don't want to override class (construct new one) but what I want is simply
replace one method with another on run time. This method is virtual
(overridden from abstract) so i guess it ... more >>
Old Version of framework libraries
Posted by Stelios at 6/17/2004 1:43:55 PM
I have one question
How the CLR locates an old version of Frameworks library like System version
=1.0.333
and where are store on my machine. I have made a search and I can locate the
previous versions of the assemblies. I am sure that they must me somewhere
because I am using some tool which ... more >>
Assembly Loader Question
Posted by Stelios at 6/17/2004 1:37:04 PM
In microsoft articules the say that Assembly load method is the one that is
used by the clr to locate and load an assembly. They discriped in create
details all the steps involved in that process.
My question is the following i have and assembly that is located under
c:/Test/assembly.dll
and... more >>
Help wanted on cryptography decryption..Urgent
Posted by balsoo_99 NO[at]SPAM yahoo.com at 6/16/2004 1:34:52 PM
Hi Everyone,
I am facing a problem while decrypting a stream object using
..NET cryptographic classes.Below i have pasted the code i used to
encrypt and decrypt a stream object.The encryption seems to work fine,
but the decryptiion fails with an error "Bad data".I am really not
able to ... more >>
Rather weird issue
Posted by Greg at 6/16/2004 1:24:01 PM
I have a .exe that runs on some machines not on others.
I took one of these non-running machines and looked for differences. All assemblies appear to be there. It has both versions of the framework (including service packs) so no joy there ...
I should describe the behavior when it is run on... more >>
Using Keyword Dispose and GC
Posted by mpatel NO[at]SPAM focus-technologies.com at 6/16/2004 6:17:31 AM
Our .Net team have been pondering about using keyword.
We are using streams FileStream and BufferedStream. We use using
keyword at FileStream, and not BufferedStream which wraps FileStream.
So bunch of people said what if exception occurs buffered stream is
not closed.
My Argument is over ... more >>
A Problem IMetaDataEmit::DefineMethod
Posted by Erich at 6/16/2004 12:59:01 AM
I'm copying one function's body (including header) into a newly one. The I'm calling the new one and receiving a MissingMethodException (a managed one). I can obtain information about the function I've just created, using IMetaDataImport and ICorProfilerInfo, so I'm not really sure what I'm doing wr... more >>
Q: Help with delay-signing and build scenario...
Posted by Jiho Han at 6/14/2004 6:24:18 PM
I have a set of framework assemblies that I am looking to insert into GAC in
production and I have sets of applications that use those assemblies. I am
trying to delay-sign the framework assemblies for the sake of maintaining
private key confidentiality.
Can someone walk me through a simple s... more >>
Q: Shared assemblies?
Posted by Jiho Han at 6/14/2004 4:26:07 PM
What is Shared Assemblies? Does it have anything to do with .NET? Or is
this for existing win32 .dlls? Then why are they suddenly calling them
"assemblies"?
... more >>
Where is JIT compiled code stored in memory?
Posted by jim at 6/14/2004 1:38:39 PM
Hi,
I'm profiling an app, trying to find where all the memory is going.
I am using the CLR profiler and PView.
I would like to know - does the CLR keep BOTH the IL and native JIT compiled
code in memory at the same time, thus bloating the mem requirement of .net
apps considerably?
I un... more >>
Assembly.Load(byte[]) - how does it work? I get TargetInvocationException. Source code included...
Posted by Greg Patrick at 6/12/2004 1:09:49 PM
My problem:
I load an some assemblies (strong named) from a byte array using
Assembly.Load(byte[]). They load fine. But one one of them is actually
accessed, it's referenced assemblies can't be found on disk and I get a
TargetInvocationExeption.
For example, let's say I have a C# win form... more >>
UNANSWERED: strange framework exceptions with regex
Posted by Tim Mackey at 6/11/2004 11:40:40 PM
hi,
posting this a third time in the hope that someone may explain why it =
happens, or that MS will acknowledge a bug and fix it in 2.0...
i have a regular expression and very occassionally i'm getting an index =
out
of bounds exception from one of the inner framework methods, when i use
Ma... more >>
Q: ComVisible and CLSCompliant
Posted by Jiho Han at 6/10/2004 1:40:48 PM
What do ComVisible and CLSCompliant do? The definitions are found in the
SDK doc but it's hard to grasp what these attributes accomplish.
Setting ComVisible(false) on the assembly level is said to hide the assembly
to the COM system. What does that accomplish? Is that simply in place to
pre... more >>
Only launching assemblies from one publisher (myself)
Posted by Berndt Johansson at 6/9/2004 9:24:30 PM
Hi
I am strongnaming all my assemblies in this project with a public/private
key-pair (same key-pair for all assemblies).
One of the application is a launcher application that shells out an
application downloaded from a webserver. To avoid security issues, I would
like to determine that the d... more >>
method content
Posted by s zemp at 6/9/2004 11:51:03 AM
how can i get method content by reflection or other way
like ILdasm doing... more >>
Q: Referencing shared assembly in your project
Posted by Jiho Han at 6/9/2004 10:08:35 AM
I have a set of assemblies that are shared by a number of
applications(ASP.NET). I signed the shared assemblies using SN. I would
register them in the GAC in production but I was wondering if I need to do
the same when I'm developing.
Basically, do I need to install the shared assemblies in my... more >>
DateTime.ParseExact custom format parsing
Posted by geoffeg NO[at]SPAM geoffeg.org at 6/9/2004 9:44:54 AM
From MSDN's "Parsing Date and Time Strings" doc:
You can specify one of the standard date and time format specifiers or a
limited combination of the custom date and time format specifiers.
Could anyone elaborate on what the "limited combination" is?
I have a date that comes from an exter... more >>
Signing Assembly with StrongNameSignatureGeneration()
Posted by Jacek at 6/9/2004 9:18:27 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All!
My managed C# app has to sign edited assemblies after finishing its work. I
have tried to use .NET Framework unamnaged API function
StrongNameSignatureGeneration() which apparently works (success as return
result) but not with all sce... more >>
Q: assembly signing
Posted by Jiho Han at 6/8/2004 5:47:00 PM
Ok, this may be a stupid question but do I need to generate public/private
key pair for each assembly in a single solution?
I am thinking about delay-signing and that'd mean the "signer" must maintain
the key pair for every single assembly separately. Is this how it's
supposed to be done?
... more >>
Accessing method parameters in call stack frame
Posted by Stephen Walch at 6/8/2004 2:46:33 PM
I am trying to examine the call stack using System.Diagnostics.StackTrace
and it appears that the StackFrame, Method and ParameterInfo classes that I
can navigate to from there only have static (compile time) information
available to me. What I need is a way to access the actual (runtime)
param... more >>
Threading - Best practices for sharing data
Posted by Shawn Meyer at 6/8/2004 12:50:24 PM
Hello,
I am trying to create a multi-threaded application in C#, without using the
thread pool.
I have a reader-writer situation where I want one thread to write to a
queue, and many threads to read from this queue. Also there will be many of
these reader-writer groupings all working at the ... more >>
Linker errors with long type names
Posted by tonci.tomic NO[at]SPAM mireo.hr at 6/8/2004 10:31:56 AM
Try to build following code with /clr switch:
#pragma unmanaged
#include <windows.h>
#include "Loki/Functor.h"
#include <list>
int main() {
// typedef int TL;
typedef TYPELIST_1(int) TL;
typedef Loki::Functor<void, TL> FTor;
typedef std::list< std::pair<FTor, FTor> >::iterator Iter... more >>
Pointers to read about CLR
Posted by avnrao at 6/7/2004 9:15:20 PM
Hi gurus,
I am a newbie for this CLR world. I am trying to know about CLR internals
(How things work in CLR and features it provides..more in detail..).
Could you please provide few pointers??
TIA,
Av.
... more >>
New MSIL Newsgroup
Posted by Raymond Lewallen at 6/4/2004 11:43:47 AM
Microsoft,
Can I make a request for a newsgroup specific to MSIL? I have taken great
interest in MSIL and have done a lot of reading into MSIL, and written,
compiled and tested with success a few il programs. I'm sure this is a
topic of interest to many people, as it is at the heart of .Net.... more >>
strange CLR inner exception with regex
Posted by Tim Mackey at 6/2/2004 3:23:30 PM
hi,
i have a regular expression to identify any valid form of server url, i.e.
http://server or http://www.server.com or http://server:8080 or anything in
between. very occassionally i'm getting an index out of bounds exception
from one of the inner framework methods, when i use Match(). i don'... more >>
CLR error 80004005 (Small percentage)
Posted by google NO[at]SPAM gencode.com at 6/2/2004 1:37:39 PM
A small percentage of people (1% or less) are getting the following
message running or application.
"CLR error 80004005 The program will now terminate."
I am not sure where to start looking on this and it is even more
difficult since I cna not reproduce it. Any suggestions on how I can
he... more >>
Conversion between String and byte[]
Posted by Chuck Haeberle at 6/2/2004 11:01:10 AM
Due to an odd conjunction of stars (trust me, thats a better reason than the real one), I need to store text data in a SQLServer Image column
I'm looking for a cleaner method to convert strings to byte[] and vice versa. So far the only implementation I have been able to make work has been to do a... more >>
Reading MSIL
Posted by Raymond Lewallen at 6/1/2004 5:35:02 PM
Is there some article out there that helps in reading MSIL? I've been
looking but can't find anything, and I'm probably just looking in the wrong
spots for the wrong keywords. I understand mov, call, jmp, ptr, dword and
some of the other obvious pieces. I'm looking to understand some of the
l... more >>
Supporting .NET libraries version consistency
Posted by Ostap Radkovskiy at 6/1/2004 12:27:24 PM
Hi!
How can I achieve the situation like that:
there is some application (.NET) and it is using some class library
(strongly named, installed by .msi, registered within GAC). I'd like to have
a crash on my client application when the class library version differs from
the one compiled with my... more >>
|