all groups > dotnet clr > october 2004
Filter by week: 1 2 3 4 5
Assembly.LoadFrom problems called from WindowsService
Posted by Chris Lewis at 10/28/2004 10:10:14 PM
Hi,
I have a Windows Service that processes MSMQ messages and dynamically
instantiates 'Message Processor' components according to the message type.
I use the Assembly.LoadFrom(<assembly path>) call to load the appropriate
assembly from its path. All works fine as far as the assembly itself ... more >>
CLR queries
Posted by sunil NO[at]SPAM volcanomail.com at 10/27/2004 9:04:36 PM
Dear All,
We have a client application that takes 15 secs to launch after the
machine has been rebooted...now if I close the application and start
again it takes 6 secs...what is the mystery?
Does this mean:
1. That 9 secs is CLR starting time?
2. OR it is the GAC loading of .net framew... more >>
Plugin difficulties
Posted by vacindak NO[at]SPAM gmail.com at 10/27/2004 2:47:58 PM
Right now, I'm trying to implement a flexible method of allowing users
to add the capability to read and process new data formats through a
plugin framework. I have an abstract base class, "SourceObject",
which has a method "Create" which takes a string key that represents
the type of data bein... more >>
Undebuggable StackOverflowException, possibly related to hotfixes from windowsupdate
Posted by Niall at 10/27/2004 12:17:03 PM
I am experiencing a StackOverflowException suddenly in an application that
hasn't changed and had not previously experienced a StackOverflow in the
months it's been in use.
The JIT debugging window appears on the machine and I choose to debug with a
new instance of Visual Studio. However, the ... more >>
BUG? ILDASM too demanding from an ECMA perspective...
Posted by acyment NO[at]SPAM gmail.com at 10/27/2004 7:47:12 AM
Hi there! After debugging the disassembling of a CLI-specification
compliant I'd built manually using the SSCLI version of ILDASM, I
found that the latter expects some metadata tables (I've found the
MethodSemantics & CustomAttribute ones so far) to be ordered by a
given criteria. Basically, I r... more >>
code generation for a property of type DataSet
Posted by ralf.hoeppner NO[at]SPAM web.de at 10/27/2004 2:56:49 AM
I have a form which contains a property of type System.Data.DataSet.
I assign a DataSet to this property at design-time the forms designer.
When I now check the dataSet property in the property browser the
values are there, but they are not serialized into the formcode.
Property:
[Bindable(... more >>
WMI: Using ManagementClass.GetInstances()
Posted by SlimFlem at 10/26/2004 6:19:02 PM
Hi.
I am trying to instrument an object that gets loaded into ASP.NET Cache
during Windows_OnAuthenticate() in global.asax. I have properly put in place
all of the required instrumentation code for both the instrumented class and
done the proper install with installutil.exe. I used CIM Vi... more >>
default value of a pointer type
Posted by George at 10/26/2004 1:45:05 AM
Hi!
What is the default value of a pointer type?
Is it "null"? since a pointer type is in particular a reference type
Thanks. George... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is the cached code is stored on permanent storage for future use
Posted by Hitesh at 10/25/2004 7:43:03 AM
Hi,
I have a big confusion with me that if we have a windows application
executable built using C#.NET and when we execute it for the first time the
following things happens:
1. clr calls JIT to convert MSIL to native.
2. native code is cached and when next time same code comes into picture
... more >>
PE Customization
Posted by Nadav at 10/24/2004 9:15:17 PM
Hi,
I am using C++ with VS.NET 2003, I am trying to add a custom section to the
PE generated by the C++ Linker, to achieve that I am using the data_seg
pragma, the only problem is that the section is not added at the end of the
PE, is it possible to tell the linker somehow to add the custo... more >>
How to copy n paste .asp files to Solution Explorer and have it show up there?
Posted by Jason Robertson at 10/23/2004 12:07:54 PM
Hi,
I have just installed Visual Studio.net 2003 Enterprise Architect.
I have been using Visual Interdev so far, and I am used to be able to select
from a desktop bunch of .asp files, drag and drop them into a Project
Explorer window and have it show there as a tree of files. Is there some
se... more >>
Calling GetClassLayout from Profiler
Posted by Dmitriy Zaslavskiy at 10/22/2004 12:48:09 PM
Hi I am trying to call IMetaDataImport::GetClassLayout from a profiler and
it returns 0x80131130
What am I doing wrong?
In general is there another way to find out the offset a field within a
class?
... more >>
method pointers vs types initialization
Posted by George at 10/20/2004 9:25:02 AM
Anyone who has an idea, please help me!
Consider the following scenario:
I have function pointer (via ldftn instruction) to a static method defined
by class A. I execute the instruction "calli" with this function pointer: one
effect is that class A gets initialized.
The question is: ho... more >>
Delegates in .NET vs. runtime managed
Posted by George at 10/20/2004 9:17:01 AM
Does anyone know what is behind the runtime managed ".ctor" and "Invoke"
methods of a delegate type?
What is performed in these methods whose bodies are provided by the runtime?
Any idea?
Thanks. George ... more >>
.NET process disappears/exits without trace
Posted by LF at 10/19/2004 8:36:20 PM
Hi all,
I have a problem where normal .NET process that hosts multiple AppDomains
just exits during one of the AppDomain.Unload's. (small detail:
AppDomain.Unload happens on a separate background thread). No unhandled
exceptions or my trace get outputted. I have a suspicion that it happens ... more >>
AppDomain.Unload - Hang
Posted by uAsking at 10/19/2004 7:09:04 AM
Ive creates an applicatino that uses worker assemblies to perform functions
when required to communicate to WinCE devices accross various locations
around the UK. When I want the WinCE device to use one of these worker
assemblies, I load it into a new AppDomain and execute the code fine.
Eve... more >>
AssemblyResolve/Assembly.LoadFrom/multi-domains
Posted by LF at 10/18/2004 9:47:01 PM
Hi,
I have a .NET executable which creates multiple AppDomains on demand. The
executable's Main method is marked with LoaderOptimization.MultiDomainHost.
The AppDomains are created on demand. I subscribe to AssemblyResolve for
each AppDomain. I share commonly used assemblies in single direc... more >>
Problem with symbols for mscorwks.dll .NET 1.1 SP!
Posted by Sriram Krishnan at 10/18/2004 9:01:50 PM
I've already posted this on the vsnet.debugging and the develop.com CLR list
to no avail. This might seem slightly off-topic but any help would be
*deeply* appreciated.
I'm just learning my way around WinDbg and have hit a problem.
I'm trying to debug into a C# application and have been st... more >>
VS.Net Warning
Posted by Coco at 10/18/2004 1:19:12 AM
I have a vs.net solutions with many projects with web project that have a
reference to a class libaries but whenever i compile the web project i get
this following warning
Warning: The dependency 'AsiaLife.Shared, Version=1.0.1749.18557,
Culture=neutral' in project 'Asialife.WebApps.Intran... more >>
Need to create a delegate for a property.
Posted by Ken Varn at 10/15/2004 9:22:52 AM
Is there anyway to create a delegate for a property of a class?
i.e.:
class MyClass
{
int _Setting;
int Setting
{
get
{
return _Setting;
}
set
{
_Setting = value;
}
}
}
I want to create a... more >>
CLR Problem
Posted by trialproduct2004 NO[at]SPAM yahoo.com at 10/15/2004 5:37:19 AM
Hi all
I am new in vb.net
I have one application which is getting list of files and folders.
But on some PC application is given error that 'Application has
generated exception that couldn't be handled' and process and thread
id is displayed along with this message. the Title of this message is... more >>
Which is more efficient/faster: strint to integer conversion
Posted by JaD at 10/14/2004 5:06:20 PM
Question: Convert string to integer efficiency...
string s = "1";
Choice 1:
int i = Convert.ToInt32(s);
Choice 2:
int i = int.Parse(s);
Very curious.
Regards,
Jad
... more >>
IMetadataImport.EnumUserStrings garbage
Posted by Sacha Faust at 10/14/2004 3:06:31 PM
I'm calling IMetadataImport.EnumUserStrings from managed code and it's
returning me garbage strings.
I've converted the the interface method in managed code this way:
void EnumUserStrings(
ref IntPtr phEnum,
[Out, MarshalAs(UnmanagedType.LPWStr)] StringBuilder rStrings,
[In] uint cmax,
... more >>
AppDomain Unload
Posted by newsgroupposts NO[at]SPAM coolgoose.com at 10/14/2004 8:55:51 AM
Hello,
Is there a way that an AppDomain can be forced to be unloaded?
AppDomain.Unload often throws an exception because a thread internal
to the CLR/ Framework is still running and can't be stopped. Is there
a way to force unloading of the AppDomain or kill this thread before
attempting an unl... more >>
Threading
Posted by Mahita at 10/12/2004 7:59:06 PM
Hi,
I am getting the following error in my application:
Exception Type: System.Threading.ThreadAbortException
ExceptionState: System.Web.HttpApplication+CancelModuleException
Message: Thread was being aborted.
TargetSite: System.Data.SqlClient.SqlDataReader
ExecuteReader(System.Data.Command... more >>
inspecting the number of function calls within a particular functi
Posted by denz at 10/11/2004 8:01:07 AM
how can i count the number of function calls that a particular function
makes? i want to be able to inspect a dll and retrieve the number of function
calls for a particular function. i know that this is possible since ildasm
actually displays the opcodes for function calls and others within a ... more >>
AppDomain.ResourceResolve Event
Posted by Henning Krause [MVP] at 10/9/2004 9:06:42 PM
Hallo,
Can anybody explain me how to use the ResourceResolve Event? It should
return an Assembly. How do I get a resource in a assembly so that I can load
it? Or is this method used to load satelite assemblies?
But these assemblies are also resolved by the AssemblyResolve event...
Any clu... more >>
Fusion/Loader error
Posted by Gursharan at 10/8/2004 10:45:04 PM
My app supports en and ja cultures. The app fails on an Application Center
cluster and the fusion log shows 0x80070005 error (access denied). I have
checked permissions/ACLs on the assemblies, used tlist -m to check process
locks and we don't use impersonation.
Any other way to find out whi... more >>
outofmemoryException
Posted by Alex at 10/8/2004 8:35:49 PM
Hi,
I am accessing Blob from Oracle database using
OleDbDataReader,ExecuteReader method.I am getting an outofMemoryException
when blob keeps on accessing and total size of all the blobs exceeds 1 GB.
When I profiled the application with PerfMon.exe,in the graph always Large
Object Heap Size,... more >>
System.Net.ScatterGatherBuffers.MemoryChuck allocates large byte[]
Posted by lwickland at 10/8/2004 10:07:03 AM
Summary: System.Net.ScatterGatherBuffers.MemoryChuck allocates inordinately
large byte[]s when sending large post data.
The following application consumes inordinate quantities of memory. My code
does not explicitly allocate memory in a loop nor does it explicitly allocate
large blocks of ... more >>
Profiling API & '#~' Metadata
Posted by Nadav at 10/8/2004 7:33:08 AM
Hi,
The problem:
**********
I am using the 'MetaData API' ('AssemblyLoadFinished') to manipulate an
assembly being loaded, I am changing the '#~' section of the metadata, this
section contain the metadata tables, when a class found in the manipulated
assembly is being created I get the f... more >>
ISymWrapper and missing GetSequencePoints()?
Posted by Sacha Faust at 10/7/2004 6:08:18 PM
I'm able to get the sequence point on ISymbolMethod but the call doesn't
seem to be available for anything else like class or other members
definition.
I did look in Debug.Ref.doc but no luck.
Is there another way to get to that information either in managed or
unmanaged code?
... more >>
Visual Basic .NET Example Code
Posted by Jim at 10/7/2004 2:29:03 PM
Get example code at http://www.jrbtech.com/
... more >>
[C#] Question about casting and System.Type.GetType()
Posted by Jim Bancroft at 10/7/2004 9:44:03 AM
Hi everyone,
I'm having some trouble with the code below. I receive a compile-time
error on the second line saying "; expected":
private static void myTestFunction(long myLong)
{
System.Data.SqlTypes.SqlInt32 myTestInt;
myTestInt= (System.Type.GetType("Sy... more >>
TypeSpecs
Posted by Oleg Stepanov at 10/6/2004 9:51:05 AM
Hi!
Can anyone explain me purpose of the TypeSpec table (I'm talking about the
metadata)? Especially could anyone give examples of when it is used?
Thanks,
Oleg Stepanov... more >>
programmatically setting file version
Posted by Nadav at 10/6/2004 8:01:02 AM
Hi,
I have a collection of files needed their version to be set, This should be
done programmatically, I wonder... is there any existing API that enable
modification/addition of version to an existing binary?
It is possible to parse the '.rsrc' section manually, however, I am trying
to a... more >>
Delegate problem
Posted by Viorel Ghilas at 10/5/2004 6:11:15 PM
Hi all,
I have a delegate like this public delegate void GetObject(Object source,
EventArgs e);
how can I take the parammeter types in runtime from this type, using
reflection. The problem is that I have this delegate, attribute class that
must be applied on the methods with delegate structur... more >>
Getting exported type
Posted by oleg stepanov at 10/4/2004 8:56:12 AM
Hi,
I have the following problem. Imagine I have a class in module A.dll which extends class from module B.dll which is part of another assembly (referenced from A.dll). If I get base class token using IMetadataImport, I get a typeref. How can I resolve the typeref to typedef and module and loa... more >>
Managed PE manipulation ( Managed Assembly load procedure )
Posted by Nadav at 10/3/2004 8:47:02 AM
Hi All,
- I am working on a tool that manipulate managed assemblies, some of the
functionality provided by the tool require manipulating the metadata sections
of the managed assembly in a way it could still be loaded by the consuming
application ( concerning the manipulated assembly is a DL... more >>
Reflection
Posted by Kaushik Srenevasan at 10/2/2004 10:45:34 PM
Hi,
Is there a way to enumerate the strings, GUIDs, BLOBS from their respective
heaps using the reflection API supported by the Whidbey release?
Thanks,
Kaushik
... more >>
IL 'method call' resolution(???)
Posted by Nadav at 10/2/2004 7:13:03 AM
Hi,
I have a simple C# project build of a console application (Tester.exe) and a
DLL (TesterDll.dll) referenced by it, I am trying to figure out the way a
method of TesterDll is identified in Tester.exe, how does Tester.exe know to
resolve the token that resemble a method defined in TesterD... more >>
|