|
Search
Tutorials and Code
Syndication
My Account
Community Forums
Webmaster Tools
Tech Jobs
|
Looking For An Event Before Threads ExitHello, I'm looking for a CLR event (or hook) that allows running .NET code on that same thread before it terminates. This hook should work for both "new Thread()" and also threads from thread pools...
Hosting The CLRHi, I am able to CorBind, but unable to call ExecuteApplication in C++. The method call simply crashes. I can't figure out the format of the LPCWSTR parameters. Do you or could you provide me...
Regasm And Regsvr32 Can Not Register An Interop DllHi, I am trying to install an interop dll for application development. But after I find the regasm.exe and run it, and then go both .NET command line or Run command under start button of computer...
ClickOnce Entry Point ConfigurationHello, I have an application that programmatically generates the deployment and application manifests and copies all necessary files and dependent assemblies in a couple of subfolders. The problem...
Problem Casting Object That Came From ReflectionI have this class: public class inputclass { public getit( MyClass inputObject ) { Console.Write( inputObject.TextProp ); } } I have some code in another class that gets an object via...
How To Terminate An Unmanaged Thread From A Managed ThreadIn my .net application, one of my thread is hanging inside unmanaged code. How to terminate this thread from another managed watcher thread. A call to the thread.Abort() from the watcher thread will...
Does Malloc() Work In CLR?Hi All, I'm trying to malloc a 2D array of doubles thus: double ** _intervals = (double**) malloc(sizeof(double*) * dPeriods) ; if (_intervals != NULL) { for (x = 0; x < dPeriods; x++) {...
Any Practical Example Of Long Weak Reference?Hello Please advance some practical / real world example of using long weak reference from your experience. If there's no practical adoption maybe some theoretic / hypothetical? My ultimate...
String Table ResourceI have a simple requirement, I need to write a small console app as a little tool, I want to store message captions in String Table, for application compilation I use managed code appraoch with C++,...
LocalVarSig Error In CLI Specification?I have recently been implementing some code to decode/encode signatures in metadata according to the CLI Specification ECMA-335. When I came to test the code for interpreting a LocalVarSig (Partition...
Ultidev Cassini Crashes When Started With A Custom LauncherHi All, i am currently working on writing automated Tests for .NET application. These Tests are written using JUnit and NUnit. For Test-Tasks concerning ASP.NET i am using UltiDev Cassini. Unfortunately...
Dynamic Creation Of A Generic Type With A Generic BaseHow can you dynamically create a new generic type that has a generic base type that needs a generic parameter? From what I can tell from the API, this isn't possible... because: 1) To define...
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...
CLR ErrorThe 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...
SerializationException For MS.Internal.Permissions.UserInitiatedNavigationPermissionHi, 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...
System.IO.FileNotFoundException On OpenOrCreateHello, 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...
BackgroundWorker, DependencyObjects And Unit TestsHi Problem: backgroundworker not calling back onto the thread that created it. I was under the impression that if you create the BackgroundWorker on a thread, any progress pushed from the background...
Httplistener Exception 2652I am running a Widows NET 2.0 service on XP SP2 using httplistener. Everything seem to work fine until you send the service repeated reuqests ( hold down F5 on the browser). It eventually throws the...
What Does The Number In Front Of Each Instruction Means?For example, IL_0000: nop IL_0001: ldstr "abc" IL_0006: stloc.0 IL_0007: ldc.i4.1 Does this some how indicate how many steps each instruction will take? I...
.NET Runtime Version 2.0.50727.3053 - Fatal Execution Engine ErrorHello I have developed a windows service. A few days ago we noticed it just stops functioning. I installed the .net 3.5 SP1 which should include all the patches up to now. There was no change. Once...
CLR And CreateFile W/ FILE_FLAG_DELETE_ON_CLOSE Causes[ This is a resend, because I sent it to m.p.d.framework before but I realize that this is more of a CLR question, sorry to those that have to read it twice! ] Hi Group, I have a program which...
Thread Dropped IssueWe are seeing an error in our SQL Server logs I'm not very familiar with, and was hoping someone on her ecould shed some light on the subject... I installed the SS DBA Dashboard on one of our boxes...
Code Access Groups In Framework 3.5 SP1Hi, In Framework 2.0, 3.0, 3.5 (without SP1) I have to create a code access group with caspol.exe to publish an application with FullTrust over a network share. In Framework 3.5 SP1 it seems that...
=?windows-1252?Q?Software_Testing_=96_Unit_Testing_=2D__Software_Develo?=Typemock Isolator =96 A powerful mocking framework for .NET unit testing and Test Driven Development (in Visual Studio). http://www.typemock.com/learn_about_typemock_isolator.html NUnit - A unit...
JIT Optimizations Lacking!I have been doing some research on Managed code v.s. Native code. In my first battery of tests I have realized that the optimization performed during the JIT compilation is not nearly as good as...
STAThread Doesn't Fix ExecuteInDefaultAppDomain Start Of Forms C#I have a large c/c++ (testunmanaged.exe) program that we need to have start and cooperate with a .NET 2.0 assembly (testmanaged.dll) written in c#. The program highlights of the code are below....
Framework 2 And 3.5Hi I've openned a VB 2005 Windows Forms project in VB 2008, and gone through the Upgrade Wizard. In Project Properties, I have changed the Framework from the default 2.0 to 3.5, and in the Build...
DynamicMethod And The Use Of An Interface TypeHi, When using a dynamic method in a generic list class. It works fine as long as i fill the list with class objects, however if the type is an interface i get an ArgumentException. {"Invalid type...
Binding RedirectHi guys, I am trying to redirect an assembly to use older version that it actually is. I am using this construction: I want to redirect revision 122 to revision...
When Using System.IO.FileStream, I Write 8 Bytes, Then Seek To The Start Of The File, Does The 8 Bytes Get Flushed On Seek And The Buffer Become A Readbuffer At That Point Instead Of Being A Write Buffer?When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write...
Detect Special System Typeshow can I detect using reflection whether I can derive from a given type or not. For example: System.Enum System.ValueType System.Delegate System.Array you cannot...
Detecting Native .NET TypesHi there, Does anyone know if there's a (simple) way to detect whether an arbitrary "System.Type" originates from the .NET framework opposed to a user-defined assembly. Thanks.
Generic Collection In C#How do I return a collection from an object? List list = _textArea.getTexts; gives me this error message? Error 1 Cannot convert method group 'getTexts' to non-delegate type 'System.Collections....
Dispose/FinalizeWhile I understand what Dispose and Finalize do and the difference between them, I am still struggling to understand why I might implement IDisposable in my classes. If I were to use an resource...
GC.Collect() Freezes After I Use An Unmanaged Dll.Hello. I am currently working on creating a sound API in .NET 2.0 (C#). I tried using WaveOut* API,and it didn't work on some XP systems. Now I am trying to use DirectSound, but I don't want to use...
CreateInstanceFromAndUnWrapIs it possible to create an instance of a type using "AppDomain.CreateInstanceFromAndUnwrap" by somehow calling a non-default constructor? This is how I'm doing it now using the default parameterless...
Process/AppDomain/Heap/GCI have a single .Net process with mutiple appdomains. My question centers on how the heap is allocated per process or appdomain? Does a GC run just for an appdomain or for an entire process (all appdomains...
What Does A Heap Look Like?I only know conceptually from a bit of C/C++ programming that objects are allocated memory on the heap and their reference is stored (if they're in local scope) on the stack of the function where the...
Out Of Memory Error, Heap FragmentationI'll try and be as brief as possible. After win2003 sp2 was installed on our web servers they began throwing out of memory errors with our asp.net app. I changed the IIS app pool to use 1 worker process...
Assembly.ReflectionOnlyLoad() -Preloading For Dependency ResolutioI understand that reflection-only loading avoids probing and, at some point or another, you need to manually resolve dependencies. However I was surprised to notice that even when I preload the dependencies...
GC Causing Variable Run-time ?We have a .Net 1.1 application and witnessing huge variance in performance, and suspect the GC is the culprit. The same operation can take 6mins initially, then 2:30 mins, then 3 mins. The variance...
Problem With DateTime And TimezoneHi all. I have the following problem: if I change the timezone while my program is running, I can have two scenarios: 1) DateTime.Now and DateTime.UtcNow return the correct time but DateTime.UtcNow...
Refactor Namespace Improves StartupHello, I just did some refatoring, mostly moving a bunch of classes to a few new namespace. As a result it seems to have improved startup time. I can't prove it anymore, but seems correct? Can...
Asking For Information On "Dead Threads" (seen In !threads)Hi I have a problem where a windows application has a low CPU hang and I am trying to rule out some symptoms I am seeing. Without going into too many details at this time, BEFORE the problem occurs...
A Piped Console ApplicationHello, I'm searching for a console-pipe pattern to mimic the behavior of pipe-processing commands like "more.exe". Currently I have this: using ( Stream strm = Console.OpenStandardInput() ) {...
CLR Enabled From CodeHi all, Is it possible to enabled CLR on a target database via an installation program. I'll be distributing an application that uses CLR integration, but I won't have access to the remote systems...
EventType Clr20r3, P1 W3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4hi, our website is running on a windows 2003, server ed., sp2 and .net framewok 2.0 i am getting the below mentioned error quite frequently. we have recently upgraded the windows to sp2 from sp1...
How To Find Argument Type (in] [out] Using Reflection?I'm using reflection API's to find the argument types of a methods (such as in or out etc). For example, consider this method public int outerFoo(string str, ref double db) { return 42; } When...
CLR-error: 80004005CLR-error: 80004005 This program will now be closed The computer is a few months old and runs on Windows Vista Home Premium ( Dutch version) This message has been appearing for the past few day...
Alternate Function For CreateFile On .NET Framework,...Hi all, sorry for Crossposting, but i dont know whether someone can help me here. If i remember right, there was a Class or a Member function in the .NET Framework that could do mostly the same...
|
Latest Tech Bargains
Advertisement
Free Magazine Subscriptions
Today's Pictures
Today's Video
Other Resources
Latest Download
Latest Icons
|