Re: [ADVANCED-DOTNET] CLR Profiler bug?

2005-12-18 Thread Richard Birkby
k your > target app is running there may in fact be a bug in CLRProfiler. > > In either case, can you send me & Peter a log file demonstrating the > behavior? > > Thanks, > > Jonathan > > -Original Message- > From: Discussion of advanced .NET topics. [mai

[ADVANCED-DOTNET] CLR Profiler bug?

2005-12-09 Thread Richard Birkby
I've used the CLR Profiler for many years, including its previous guise as the Allocation Profiler. However, recently I've noticed an issue which is either a bug or is a misunderstanding on my part of what the information means. When I profile an application that creates objects >85000 they go int

Re: [ADVANCED-DOTNET] figuring out where to log to from a gac dll

2005-11-28 Thread Richard Birkby
string path = System.IO.Path.Combine( > System.Environment.GetFolderPath( > System.Environment.SpecialFolder.LocalApplicationData), "MyAppName" + > System.IO.Path.PathSeparator + "log.txt"); > > LocalApplicationData is app data that will not be included in the user's > roaming

Re: [ADVANCED-DOTNET] figuring out where to log to from a gac dll

2005-11-28 Thread Richard Birkby
I've written log4net data to isolated storage. In fact, AFAIK thousands of desktops across IBM are still logging data (endlessly, with no upper bound) to isolated storage Richard On 11/28/05, Ian Griffiths <[EMAIL PROTECTED]> wrote: > > I'd recommend not using that. > > By default, only Adm

Re: [ADVANCED-DOTNET] Does CLR support SSE or SSE2?

2003-01-08 Thread Richard Birkby
John St. Clair wrote: > > In your second example, you mention a 37% > speed-up. This may not be worth it if in practice the typical user only > spends a few seconds utilizing the zip functionality. However, Array.Copy is used all over the place. Just think about how XML parsing is done and how muc

Re: [ADVANCED-DOTNET] STAThread, COM interop and ASP.net

2002-11-28 Thread Richard Birkby
Spawn a new thread. Set that new thread to be STA and marshal the results back to your primary thread. Richard > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of James Crowley > Sent: 27 November 2002 20:49 > To: [EMAIL PRO

Re: [ADVANCED-DOTNET] VB's ByVal/ByRef vs. C#'s ref/out

2002-11-18 Thread Richard Birkby
Try the following. You will see that C# actually passes the out param value into the function! As has been said, this is because it is a C# feature, not a CLR/CLS feature. --- VB.Net --- Imports System.Runtime.InteropServices Public Class TestServer ' Fool C# into thinking this is an out on

Re: [ADVANCED-DOTNET] FW: Interop: Handling OUT parameter of array, gets error "Can not use SizeParamIndex for byref array parameters."??

2002-10-14 Thread Richard Birkby
I came across the same problem with C-style arrays only last week. I solved it the same way. I have been getting some very odd behavior though - ExecutionEngineExceptions and other random exceptions (even exceptions which claim I am unable to write to the EventLog, which is patently false). So, r

Re: [ADVANCED-DOTNET] Can't use Process.Start from a WinForms app. launched via http??

2002-10-07 Thread Richard Birkby
Actually, ShellExecuteEx is called from the Start->Run dialog (and most other places except the console). If an IShellExecuteHook has been installed, then it is allowed to intercept the ShellExecuteEx and handle it. By default, a "URL Exec Hook" (AEB6717E-7E19-11d0-97EE-00C04FD91972) is installed

Re: [ADVANCED-DOTNET] event granularity

2002-09-09 Thread Richard Birkby
If you have a 1-1 mapping between an object and an XmlNode, then you are storing behavior and data in different classes. It would be much neater to store behvaior and data together. Therefore, you could create your own specialized sub-types of TreeNode and XmlNode. This is very easy to do with Tre

Re: [ADVANCED-DOTNET] Heisenbugs in .NET

2002-09-02 Thread Richard Birkby
This will help: http://www.iunknown.com/Weblog/fog56.html Regards, Richard > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Clark > Sent: 30 August 2002 18:18 > To: [EMAIL PROTECTED] > Subject: [ADVANCED-D

Re: [ADVANCED-DOTNET] DHTML Document Model in C#

2002-07-27 Thread Richard Birkby
This inserts tags inside the element! You really shouldn't be doing this! Try using doc.open(), doc.write() and doc.close() IIRC these are IDispatch-only methods, so you'll need to either use VB.Net or Reflection. This post shows an example using Reflection: http://discuss.develop.com/archive

Re: [ADVANCED-DOTNET] Any VB.NET to C Sharp Tool or Service?

2002-07-01 Thread Richard Birkby
Anakrino does a good job. I would point you to saurik.com, but it seems to be down at present. Richard > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Joe Smith > Sent: 30 June 2002 09:33 > To: [EMAIL PROTECTED] > Sub

Re: [ADVANCED-DOTNET] Help Architecting A Middle Tier

2002-05-15 Thread Richard Birkby
Handling Transactions Between .NET Components Ken Spencer Q. I read your column in the February 2002 issue of MSDNĀ® Magazine regarding COM+, DCOM, and MSMQ serialization in .NET. You said that if a component is performing transactions on a single database and you expect that you'll always be goin

Re: [ADVANCED-DOTNET] MAJOR Try... Catch... Finally BUG!

2002-05-12 Thread Richard Birkby
This is clearly a bug in the VB compiler. Best to avoid End Try in all situations. Here is a simplified version of the bug. Uncomment the Exit Try statement to see it occuring. Both the Exit Try and Goto statements actually generate a leave MSIL instruction. However, the offset specified for the

Re: [ADVANCED-DOTNET] Serial Ports & .NET

2002-04-18 Thread Richard Birkby
http://www.gotdotnet.com/userarea/filedetails.aspx?FileName=JustinIO.zip > -Original Message- > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Wilson > Sent: 17 April 2002 15:38 > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Serial P