Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet clr > october 2003

Filter by week: 1 2 3 4 5

code access security
Posted by Chris at 10/31/2003 8:19:47 PM
Hi, Regarding : code access security when an assembly is loaded by the runtime does the runtime check the evidence of the assembly. Then depending on the evidence does it assign the assembly to a codeGroup. And finally, depending on the permission sets assigned to the Codegroup (the assembl...more >>


how to define function pointer in C#
Posted by ZhangZQ at 10/31/2003 10:38:16 AM
if there is a function in a win32 dll, it is definition is int add(int a, int b); how to define that function pointer in C#? thank you very much! ...more >>

Dynamicaly load and call a function in Win32 dll
Posted by ZhangZQ at 10/31/2003 10:32:12 AM
Is it possible to dynamicaly to local and call a function in Win32 dll(not a ..net assembly dll) in C# at run time, for example, a C# program popup a dialogbox to let use input which Win32 dll to be loaded, which function to be called, and what are the parameters to call the function. Thank ...more >>

Application has generated an exception that could not be handled
Posted by Aaron Davis at 10/31/2003 10:18:54 AM
I have two windows applications that get the following error when I try to run them on Windows XP Pro machines: Application has generated an exception that could not be handled Process id = ...... , Thread id= ...... Has anyone experienced this. Where do I start. Both applications run fi...more >>

Application crashes ignoring try{...}catch{...}
Posted by Alexey Kouzmitch at 10/31/2003 10:00:09 AM
Hi, I wrote a console application which is called from a SQL Server job. The application utilizes a COM object, to pump data from a legacy (not very old however) application to SQL server. The application works fine, but once in a while it fails with the following message written to the event ...more >>

strange error not cought by try...catch...
Posted by Alexey Kouzmitch at 10/30/2003 5:01:20 PM
Hi, I wrote a console application which is called from a SQL Server job. The application utilizes a COM object, to pump data from a legacy (no very old however) application to SQL server. The application works fine, but once in a while it fails with the following message written to the event l...more >>

C++ and Garbage Collection?
Posted by Joe at 10/30/2003 1:35:59 PM
I am having really tough time finding anywhere on the web concrete explanation (if any) of how Garbage Colletor decided for C++ managed objects when object is ready to be released, and why? Refer to simple example below with questions inside comments. __gc public class MyGCClass { ....more >>

Loading Assemblies
Posted by Mike King at 10/30/2003 11:52:20 AM
Can someone explain or point me in the right direction on how the CLR knows which assembly is correct. What are the steps of locating the assembly and verifying that the assembly is the correct one. ...more >>



Error Message: Error creating window handle.
Posted by decrypted at 10/30/2003 9:45:36 AM
Some clients get this error. Not reproduceable....i understand that it Windows runs out of resources...fine. All I want to know is where does Microsoft publish information about what will work with the framework and won't work? Example...how many controls can you have on a form/in your entire ap...more >>

ERROR : System.Security.SecurityException
Posted by Ali at 10/29/2003 8:13:49 AM
I am getting the following error: System.Data.SqlClient.SqlClientPermission, System.Data, Version 1.0.5000.0, Culture=neutral, PublicKey Token=b77a5.... Failed. My code uses a reference to System.Data, tries to connect to my datatabase to retrive a couple of records. That's all. The error...more >>

Problems deleting from the GAC
Posted by mattk NO[at]SPAM mattk.dj at 10/29/2003 7:02:44 AM
I have a number of different versions of the same assembly in the GAC that I cannot seem to remove. I got them in there by using: gacutil /i emailAuth.dll. I have tried to following methods to remove them: 1. gacutil /u emailAuth 2. gacutil /uf emailAuth - both generate the following mess...more >>

Getting Performance Counter Data - (CPU Usage)
Posted by Rick Strahl [MVP] at 10/28/2003 11:41:13 PM
Hi all, Having some issues with retrieving some perf data. I'm getting a number of stats that return static values just fine. But I can't retrieve values that are 'timed' values that return data like requests per second or CPU percentage. For example: CPU Percentage returns 0 with: Perfo...more >>

System.Double and System.Decimal
Posted by Célio Cidral Junior at 10/28/2003 9:26:16 AM
Hello. I have seen that System.Double has some arithmetic errors when making some operation like this: Dim x As System.Double For x = 0.01 To 0.5 Step 0.01 Debug.WriteLine(x) Next The counter x sums 0.01 in every loop and everthing go right until 0....more >>

v2.0: any improvement in .NET deployment methods?
Posted by tim NO[at]SPAM scootasp.net at 10/28/2003 1:32:16 AM
hi paul, i didn't want to have to configure security policy on every client machine to allow the COM component to work. i was also getting "drag n drop registration failed" error messages with some components, and couldn't figure out what was going wrong. i'm interested to read that others h...more >>

Catching the paste message
Posted by Célio Cidral Junior at 10/27/2003 4:25:53 PM
Hello all. I don't know if this is the right newsgroup to post this message, so sorry for any cross-posting. I have a class inheriting from System.Windows.Forms.TextBox which contraints user input to only numeric digits. It works well until user paste some text from clipboard or by right click...more >>

Unhandled Exception
Posted by decrypted at 10/27/2003 4:00:05 PM
Hi all... What exactly are those "Application has generated an exception that could not be handled" from the Common Language Debugging Services error and hoiw exactly can I debug them? I have 3 clients of 400 running into these randomly throughought thier day and can not gain any insight into t...more >>

BUG: MemoryStream throws System.OutOfMemoryException using v1.1
Posted by Joe Feser at 10/27/2003 3:10:39 PM
This very simple code throws an error on an XP Box running sp1 and all the latest hot fixes. All the memory in the machine is allocated and you must exit the application. try { System.IO.MemoryStream ms = new System.IO.MemoryStream(); ms.Capacity = 16776704; } catch (Exception e) { ...more >>

bug in .Net Framework?
Posted by Boris at 10/27/2003 10:11:05 AM
char* str = "hello, World"; System::String* sys_str = new System::String(str); Compile my c++ project in Release mode: if I compile the above code with 'Program Database (/Zi)', then it works fine. if I disable 'Debug Information Format' (set to 'Disable'), then it results in corrupted...more >>

Variant
Posted by Klaus Löffelmann at 10/26/2003 6:54:16 PM
Hello, does anybody happens to know, why there is a Variant in the BCL all right, but it is declared only internal? It almost seems, that "they" planed to have it in the bcl, but decided later to throw it out? Thanks Klaus ...more >>

GetMethod with ref / out parameters
Posted by Lyle at 10/26/2003 5:03:20 PM
When trying GetMethod(string, Type[]) on a known method that has the signature Method(ref typea, out DataSet), the method is never found. When enumerating through the known type, the parameter's types' full names come out with a "&" on the end of them, i.e. as being pointers. How can I s...more >>

Monitor.Exit SynchronizationLockException
Posted by Sankar Nemani at 10/23/2003 5:31:49 PM
Hi Why doesn't the following code throw a SynchronizationLockException? MSDN says "SynchronizationLockException is thrown if the current thread does not own the lock for the specified object". TIA Sankar Imports System.threading Imports system Imports microsoft.visualbasic Mod...more >>

About SetLocalSymInfo
Posted by xiaorun huang at 10/23/2003 4:43:08 PM
when I call SetLocalSymInfo in my code within a global function, it throw System.NullReferenceException. why? by the way, what is the mean of startOffset and endOffset, is it offset from file begin in charactor, or from the method's begin. thanks xiaorun huang ...more >>

problems with .NET deployment methods
Posted by tim NO[at]SPAM scootasp.net at 10/23/2003 3:41:48 AM
Hi, Please disregard my last post. I found the meaning of oldversion and newversion in the docs. this post is long-ish but its quite a fundamental issue that i'm struggling to find an appropriate solution in .NET for. any help is GREATLY appreciated. i'm still a little unsure what is the be...more >>

Primitive Types - what resolves them?
Posted by Klaus Löffelmann at 10/22/2003 11:19:07 PM
Hello, I understand that the primitive types in the base class library are handled on iml-level. But when I look at the source code of rotor, I see that all the primitive types like int32, double, etc. are structures drived from ValueType, and these structures are using, well, the actual(?...more >>

assembly version conflicts with dll replacement
Posted by tim NO[at]SPAM scootasp.net at 10/22/2003 1:13:51 AM
Hi folks, i've posted this with no response on a few other lists this week, and would be extra grateful of any help.. I know .NET is supposed to solve dll hell, but I'm having trouble getting my assemblies to work the way I want them to. I have 5 dlls in my winforms app, all strong named, ...more >>

Compilation error
Posted by Ben at 10/21/2003 9:40:16 PM
I'm using the dos command to compile our app web forms dll via the following batch file : set InDir=c:\test\ set OutDir=c:\inetpub\wwwroot\test\bin\ set InFile1=%InDir%Default.aspx.cs set InFile2=%InDir%Login.aspx.cs set OutFile=%OutDir%\test.webform.dll set assemblies=System.dll,S...more >>

How to add an assembly reference using CodeDOM?
Posted by Mountain Bikn' Guy at 10/21/2003 4:49:16 PM
This code (adapted from the examples in the docs) doesn't make complete sense to me. I have it working, but I'm wondering why I need to declare an assembly reference in 2 places. TIA. Dave CodeCompileUnit compileUnit = new CodeCompileUnit(); CodeNamespace myNamespace = new CodeNamespace("MyNa...more >>

Memory problem
Posted by Sergey Ivasenko at 10/21/2003 1:04:29 PM
I have a Win form application, that receives large (more than 100 000 records) datasets using ADO.NET I open a form and execute data select. The form obtains about 140 000 records pretty quickly. I reopen the query for this form several times. Each time I reopen the query, it takes more and mo...more >>

StringBuilder and PCHAR[]
Posted by Schley Andrew Kutz at 10/21/2003 12:14:16 PM
I am iterating through 454 rows of a table and with each row I use the ID field to form a URI for a contact in a public folder on my exchange server. My memory keeps growing though. I think it is because I reconstruct my URI each time. I have done this 2 ways and I want to know something. Ho...more >>

Out Of Memory Exceptions
Posted by decrypted at 10/20/2003 1:54:01 PM
Hey All, been getting alot of CLR exceptions and out of memory exceptions on certain machines. We have an old-school programmer on the team who still just can't get OOP and as a result we have some LARGE code files and routines. The .net framework documentation states... "The common language...more >>

The shock of the week -- how could I be running the old version of the framework?
Posted by Mountain Bikn' Guy at 10/19/2003 5:21:42 PM
I just called: System.Environment.Version.ToString() and RuntimeEnvironment.GetSystemVersion() as a little experiment. Both report that I'm running 1.0.3705.288. However, my IDE is VS.NET 2003 and I never installed VS.NET 2002 on this machine. I don't recall if something else has ever force...more >>

.Net Profiler
Posted by Franco Gustavo at 10/18/2003 2:56:46 PM
Hi, All What's is the best .net profiler for Debug an application. I have to buy one but I don't know which one!! I tried some of them like Borland and AQTime. My big problem is, my application is a big application, and many times I have many EventHandlers associated to an object, then this...more >>

Execution of a dotnet binary in a different machine
Posted by report_1979 NO[at]SPAM yahoo.com at 10/16/2003 2:16:14 PM
hi, I have an application which sends a dotnet binay file from client to server. Is it possible to execute the dotnet binary in the server(I have CLR here) In java if we have the class file we can execute it in any machine. Is it possible to do the same with dotnet.Is the dll file enough t...more >>

Has anyone seen a delegate lose track of its target?
Posted by Greg Walrath at 10/16/2003 2:06:09 PM
I have written code the subscibe to a delegate that is called at a specific interval. Initially, everything is fine, and the delegate works. However, after some (seemingly random) amount of time, the delegate appears to get disconnected. I have trace statements around the delegate call, each...more >>

Profiling Method Arguments; CORDBG_E_IL_VAR_NOT_AVAILABLE
Posted by Wolfinger Reinhard at 10/16/2003 10:29:46 AM
My CLR Profiler watches Function Entry and Exit with COR_PRF_MONITOR_ENTERLEAVE and logs Method Arguments with ICorDebugILFrame::GetArgument API. What works: * in, out, ref Arguments on FunctionEntry (for void functions) Doesn`t work: * Any arguments for non-void functions * Any arg...more >>

Mutiple CPU problem in Threads.Count
Posted by Shashank Welankar at 10/15/2003 7:36:28 PM
Hi, "System.Diagnostics.Process.GetCurrentProcess().Thread.Count" This does not work on the machine with mutiple CPU? Any hints from MS guys? Shashank ...more >>

Sign application to run in intranet
Posted by Roland Dick at 10/15/2003 5:33:03 PM
Hi all, I've got an application written in C# which reads from the registry. Being started from a network file share, the app crashes. I found out that you can "Full Trust" the Intranet Zone, which makes the application running fine; however, since there are a lot of clients working with it...more >>

Re-Repost: How do we define the JIT debugger in registry???
Posted by José Joye at 10/15/2003 3:03:32 PM
I'm trying to define on my production machine the JIT debugger to catch a bug that only appear there.... :-(( I googled and had a look to MSDN (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/ht ml/cpconenablingjit-attachdebugging.asp). I'm still more than confused!...more >>

How to get one type's array type!
Posted by xiaorun huang at 10/15/2003 12:33:42 PM
with Reflection API, I want to define a array of some type. if the type is defined in else assembly, I can get the array type by call Type.GetType( "TypeName[]" ). but with a type i am defining in same dynamic module, and i cannot create type before define the array type. then how should i to get...more >>

Reducing Spam Associated with Posting to Newsgroups
Posted by Microsoft Communities Team [MSFT] at 10/14/2003 3:26:08 PM
Due to a recent increase in spam sent to posters in newsgroups, Microsoft advises that newsgroup participants should consider avoiding posting to newsgroups using their real email address. Microsoft is also committed to continuing to address the issue of spam from a technological perspective. To...more >>

Embedded Device CLR
Posted by zolan at 10/13/2003 10:58:01 PM
I am researching the use of the CLR as a core OS for cheap embedded devices. I am not having a great deal of luck finding resources on the subject of truly embedded CLR other than the compact framework. The presentation (below) that I found discusses the "Lantronix .net CLR for small devices"....more >>

Making Component descendant to stream embeded properties
Posted by Doychin Bondzhev at 10/13/2003 3:30:42 PM
I have one class that descends from Component which has few public propertis where some of them are also objects with their own public properties. The problem is that when I create in VS new descendand of this class and open it in component desinger the only properties that are streamed are th...more >>

Watch that important package from Microsoft
Posted by Ing. Ludmila Kastlová at 10/13/2003 12:05:56 AM
Microsoft Client this is the latest version of security update, the "October 2003, Cumulative Patch" update which eliminates all known security vulnerabilities affecting MS Internet Explorer, MS Outlook and MS Outlook Express. Install now to maintain the security of your computer from these ...more >>

TimeZone and DateTime - what were they thinking?
Posted by rick cameron at 10/10/2003 6:00:58 PM
TimeZone - the only instance you can get is one representing the local time zone DateTime - cannot represent a time before 00:00:00 1 Jan 1 CE What were they thinking? This is a serious question - can anyone come up with a good reason for these incredible design restrictions? Michael Brumm ...more >>

Strange behavior with DirectX
Posted by Emmanuel Stapf at 10/10/2003 12:06:43 PM
Hi, I have this small program using Direct 9.0b. The computation of `d1' and `d2' in `launch' does not give the same results after I've initialized some stuff of DirectX. Is this normal? A bug somewhere? Thanks, Manu using System; using System.IO; using System.Text; using System.Ref...more >>

CLRDebug load no symbols
Posted by Stefan Schnell at 10/10/2003 3:45:38 AM
Hello community, today I want to use the CLRDebugger (DbgCLR.exe), but now it does not work. When I select the debug process (aspnet_wp.exe) he loads a lot of librarys but all with the comment, no symbols load. When I open a file (*.aspx) and want to set a breakpoint, he told me that he can...more >>

ReferencedAssemblies - specify version??
Posted by matt.rhoades NO[at]SPAM henkel-americas.com at 10/9/2003 12:46:27 PM
I am compiling code on the fly and it has been working great; however I recently made a change to one of my external class libraries that I am referencing and the version changed, now I have 2 versions of the component in the GAC. How do you specify which version of the component you want to ...more >>

Compiling dynamic data at design time
Posted by Enrico at 10/9/2003 8:54:35 AM
I have a complicated problem involving dynamic data that needs to be read at design time. Here's the situation: I have a database table called Categories (fields: categoryID, description). At design time, I want to be able to select all records from another table where categories.desc...more >>

Code injection. Is it possible using codeDom?
Posted by mpaci NO[at]SPAM omniway.sm at 10/9/2003 1:41:55 AM
Hi all, I want to extend a class in a dll without having the code for it. Is it possible using codeDom? I still didn't studied codeDom and I've just an idea of it but I'm wondering if it's possible to construct a CodeDom Graph from an existing assembly, take a reference to a class contai...more >>

Serializing Events with Handlers...
Posted by Anthony Coelho at 10/8/2003 2:51:40 PM
I have a question relating to serializing a class that contains events. Basically I want serialize a class (class1) that publishes an event (event1). Subscribers to event1 could be any type of class and some of the subscribers may not be serializable. My problem is that if I try to serialize a...more >>


DevelopmentNow Blog