Group:  .NET General / Allgemein ยป microsoft.public.dotnet.framework.clr

Threads Replies Last Post
33 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  
Can I do side-by-side execution of ActiveX inside .Net form?
C# interop wrapper for an ActiveX control calls AxHost.GetOcx(...) which ultimately tries to instantiate the object from its CLSID. I have been unable to instantiate the object using appropriate manifest files. Does anyone know how to do this or have a pointer to a sample? tnx, /steveA...
5 12/23/2008 5:00:38 PM
System.AccessViolationException Exception on vista 64 bit OS
Hi... I am facing problem while executing my application on vista 64 bit OS the application is throwing System.AccessViolationException. This exception pops out randomly and also not at particular code line. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Windows.Forms.Timer.TimerNativ...
1 12/23/2008 2:52:00 PM
Source (or perhaps a different kind of help) needed for Calls from CLR to CryptoAPI
I am attempting to create a VB6 routine equivalent to the DESCryptoServiceProvider in .NET 3.5. The reason is that I am trying to encrypt info in a VB6 app, and decrypt it in a C# app. I have working encryption/decryption routines in each (that is, encrypt/decrypt in VB6 and encrypt/decrypt in C# both work), but the algorithms don't match (i.e. the encrypted results are different, usin...
16 12/22/2008 8:04:12 PM
String Literal Concatenation - Performance issue?
Hi, one of my colleagues always writes code like this: Console.WriteLine("This is an error " + "message consisting of " + "some long string."); How does the compiler handle this? Does it treat this as a single, long string? Or does it perform unnecessary concatenations at run-time? I'm planning to tell my colleague to refactor his code, but I don't want...
3 12/18/2008 2:55:23 AM
GC: per-AppDomain or per-process?
Is GC managed separately for each AppDomain or over all AppDomains in a process? For example, does each AppDomain have its own Gen0, etc or is there one Gen 0 for the whole process? When GC runs, does it suspend managed threads only in the one AppDomain that needs a run, or for the whole process? Thanks!...
3 12/16/2008 7:19:01 PM
TypeDescriptorProvider limited in actual implementation?
Hello everyone, I've been fooling around with what's possible and not with the TypeDescriptorProvider and found a limitation that I would like confirmed if possible. I derived a class from CustomTypeDescriptor and did an override on the GetAttributes method and added a Serializeable attribute; this way any type registered with my TypeDescriptorProvider would supposedly be marked as Ser...
1 12/16/2008 6:39:49 PM
Is there an MVP in the house?
My query from October 22 remains unanswered. It relates to using VB6 and the CryptoAPI to create an encryptor which can interoperate with the .NET Framework's DESCryptoServiceProvider. Fletcher James President Levit & James, Inc. a Microsoft Certified Partner www.levitjames.com ...
4 12/12/2008 6:50:59 PM
Strange 'LocalDataStoreSlot storage has been freed' exception
I'm trying to debug some corrupt ETW log file's we're creating and after viewing the data I thought I had stumbled onto a potential cause. Here is a snippet of pseudo code that writes to the file: .. .. .. // // Always serialize parent classes' properties first // base.SerializeEvent(serializer); // // Serialize common properties. These MUST be in the same // order as the proper...
3 12/11/2008 1:17:02 PM
CLR Error
The runtime has encountered a fatal error. The address of the error was at 0x79ed7e94, on thread 0x16ec. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack...
4 12/8/2008 11:30:01 PM
Call MethodBuilder instance from another MethodBuilder definition
Reflection.Emit has been fun to work with until I'm hitting many road blocks. The question is very simple. Real code consist in many cases of multiple methods and you can call those methods from another methods. Is this possible when creating types with Reflection.Emit? ...
5 11/30/2008 4:42:32 AM
Runtime use of GetType to determine Nullable, actual type and arra
Hi I need to be able to determine the type of an object at runtime using object.GetType(). However, some of the objects are defined as double? or int?[] for example and I would like to know the correct way of finding out if the object is a) Nullable and b) its actual type. I guess if I know how to get the actual type I will then be able to check the IsArray property to see if the unde...
3 11/24/2008 10:48:00 AM
Is there a way to generate a CodeCompileUnit from source code?
I was trying to see if there was a way to create a CodeCompileUnit from source code. It looks like CSharpCodeProvider.Parse() does such a function, but calling Parse() generates an exception indicating the method is not supported. I can compile source to an assembly easily enough and I can generate a CodeCompileUnit using the CodeDom, but I can't find a way to read existing C# source a...
7 11/20/2008 4:51:08 PM
How To Tell You're Within An Exception?
Hi, in my IDisposable.Dispose() method I need to tell if my code is running either within an exception stack unwinding process or just in normal program flow reaching the closing brace of a using statement. Is there a property I can query to tell this program state? TIA, www.axeldahmen.de Axel Dahmen ...
13 11/20/2008 4:46:01 PM
sink blocks appear to have a negative effect on GC
It appears sink blocks have a negative effect on the garbage collector. I don't exactly know what sync blocks are but the docs appear to indicate they're synchronization objects. I don't know the internals of the garbage collector but it seems reasonable that synchronization objects currently in use could effect the garbage collection process. So my question is: what are sync blocks? ...
5 11/20/2008 4:12:47 PM
Calling List<T>.AddRange with Reflection.Emit
This is a multi-part message in MIME format. ------=_NextPart_000_004A_01C9438E.2869D010 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've been looking everywhere on how to call AddRange Method of a field = of type List<myClass> in Reflection.Emit My code goes like this MethodInfo method =3D=20 typeof(List<>).MakeGenericType...
19 11/20/2008 3:50:14 PM
TypeBuilder CreateType() slow with the VS2008 debugger attached
We are generating some dynamic assemblies at runtime and have found that when the debugger attached, calls to TypeBuilder.CreateType get cumulatively slower for types within the same assembly. The calls start off taking around 3-4 milliseconds but after 60 calls they are taking more than 4000 milliseconds. Without the debugger attached each call takes an insignificant and consistent ...
1 11/19/2008 1:05:00 PM
Fusion API issue moving from 1.1 to 3.5
Using the Fusion API, I have been calling the CreateAssemblyEnum() function (http://msdn.microsoft.com/en-us/library/ms230583.aspx) with the ASM_CACHE_FLAGS.ASM_CACHE_GAC (http://msdn.microsoft.com/en-us/library/ms231621.aspx) flag to enumerate items in the GAC. This gives me an object that implements the IAssemblyName (http://msdn.microsoft.com/en-us/library/ms233400.aspx) interface. Us...
1 11/18/2008 4:32:11 PM
How to embed unmanaged code in managed code?
Hi all, well, I know, the subject may reflect an FAQ, which is not answered in one or two sentences and I even know that there's a lot of documentation around concerning this issue. Nevertheless, I would like to ask only a simple question, which makes me capable decide to do my planned work or better leave it: For some reasons, I would like to port an existing MFC-based application fr...
9 11/18/2008 3:56:16 PM
How To Tell You're Within An Exception?
Hi, in my IDisposable.Dispose() method I need to tell if my code is running either within an exception stack unwinding process or just in normal program flow reaching the closing brace of a using statement. Is there a property I can query to tell this program state? TIA, www.axeldahmen.de Axel Dahmen...
1 11/17/2008 7:28:55 PM
Restrict # processors for application?
How does one restrict the number of processors used by an application? I have an app that potentially uses several processors and I need to gather performance data for the app using varying number of processors. I'd appreciate a pointer on how to do this -- or to any related docs. Thanks in advance, Bill...
3 11/16/2008 4:43:01 PM
System.IO.FileNotFoundException on OpenOrCreate
Hello, I get a nonexpected exception when I try to open a filestream with fileaccess mode OpenOrCreate. If there is no file a FileNotFoundException is raised instead of creating the file!? What's even more weird that after some time(several attempts) the file gets created like expected. What could be causing such a behavior? Running on Vista with VS2008(using .net2.0). Code: intern...
2 11/13/2008 6:17:42 PM
Fatal Execution Engine Error
Hi, We are having a problem for our application which runs on Windows 2003 server and .Net Framework 2.0 SP1. Our program crashes randomly and when we look at the event log the error is "Fatal Execution Engine Error" We have reinstalled framework and we applied the hotfix (63) but it didn't solve the problem. Our program serves for disaster and it is very important and urgent for...
2 11/13/2008 6:13:54 PM
Need help with "Fatal Execution Engine Error"
Hi. My process crashes and I get the following error in the event log: ..NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (000007FEF39DAA6E) (80131506) Now I don't get the error every time but I can reproduce it by running the same scenario a different number of times. When listing the stack in WinDbg I get the following output: 0000000`085f9428 00000000`770f2f8b n...
7 11/12/2008 3:09:01 PM
SerializationException for MS.Internal.Permissions.UserInitiatedNavigationPermission
Hi, I'm getting a SerializationException when trying to call System.Windows.MessageBox.Show from a WPF user-control that is hosted across a System.AddIn pipeline in an elementHost in a Windows Form app... If I p/invoke MessageBox from user32, I get the same error message... I don't understand what it is trying to serialize UserInitatedNavigationPermissions in the first place... M...
4 11/7/2008 8:30:40 AM
Crypto - Help - Cannot persist RSA keys VS2008/Net 3.5
Hi, Could anyone advise as to why I am unable to persist RSA keys in a container? If I run this function, encoded() is filled with the same values on every execution; yet encrypted() is always populated with different values on every execution. Presumably, the RSACryptoServiceProvider is generated a new key Pair on each execution, but this is exactly the opposite of what I w...
1 11/5/2008 6:46:59 PM
33 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  

Home | Search | Terms | Imprint
Newsgroups Reader