Re: [ADVANCED-DOTNET] Custom Download manager

2006-08-31 Thread Ian Griffiths
it can involve mean it's worth considering any alternatives you might have. (If, that is, I understood what you were asking.) -- Ian Griffiths -Original Message- From: Steve Welborn Thanks for the information. However when I said I couldn't find it anywhere, I was meaning a C# example

Re: [ADVANCED-DOTNET] Async Sockets and Pinning

2006-08-10 Thread Ian Griffiths
a little. Also, if your buffer pool is large enough you might be able to reduce working set size under low load by using a stack. So it might still be worth it. But be prepared for relatively disappointing results...) -- Ian Griffiths -Original Message- From: Peter Ritchie Sent: 10 August

Re: [ADVANCED-DOTNET] MsgWaitForMultipleObjectsEx

2006-07-31 Thread Ian Griffiths
let me pump messages while I wait. Because Win32 is unable to deliver the semantics you might actually want, WaitHandle.WaitAll will actually throw an exception if you call it from an STA. But WaitOne and WaitAny will both pump messages if you're on an STA. -- Ian Griffiths -Original

Re: [ADVANCED-DOTNET] UI Thread count per process restrictions [was Re: VS2003 Debugging Issues with Multiple UI Threads]

2006-07-20 Thread Ian Griffiths
an Appdomain restriction, not a multi-UI-thread restriction. -- Ian Griffiths -Original Message- From: Peter Ritchie When I wrote can I meant Windows, the CLR, and the .Net Framework permit -- and I just don't see why MS would have built them to permit this if there were an inviolable

Re: [ADVANCED-DOTNET] Virtual methods in .NET - was Implementing an Interface - C# vs. VB.NET

2006-07-08 Thread Ian Griffiths
barely any more elegant than the everything virtual whether it makes sense or not style. -- Ian Griffiths - Pluralsight http://www.interact-sw.co.uk/iangblog/ -Original Message- From: David Lanouette Sent: 08 July 2006 00:37 Anybody know why methods aren't virtual by default in .NET

Re: [ADVANCED-DOTNET] FP Matn C# specific

2006-06-27 Thread Ian Griffiths
that there are serious problems in your code, and that you're papering over the cracks. Relying on this flag is a sign of unwell code. -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: gregory young Ian I will disagree with one comment here. But I stand by what I

Re: [ADVANCED-DOTNET] FP Matn C# specific

2006-06-20 Thread Ian Griffiths
that's not the case - just use more significant digits than you have space for. -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: gregory young I usually try to avoid cross posting but I thought this was fairly relevant to advanceddotnet dotnet-clr

Re: [ADVANCED-DOTNET] FP Matn C# specific

2006-06-20 Thread Ian Griffiths
to lie undetected for longer, while penalising those who get their code right. -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf Of gregory young Sent: 05 June 2006 21:20

Re: [ADVANCED-DOTNET] Changing attributes at runtime

2006-03-14 Thread Ian Griffiths
and PropertyDescriptor classes to do the majority of the work, and just tweak the results before returning them. (This probably won't let you change category when you're already in the grid. I suspect it only looks for the category at the point at which the object is set as the SelectedObject.) -- Ian

Re: [ADVANCED-DOTNET] Changing attributes at runtime

2006-03-14 Thread Ian Griffiths
Wow - that sucks. Since the original poster was asking in the context of PropertyGrid, I'm hoping this limitation won't be an issue. -- Ian Griffiths -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Frans Bouma Sent: 14 March 2006 15

Re: [ADVANCED-DOTNET] Safe to modify IDL to change from IDispatch to a different Interface?

2006-03-07 Thread Ian Griffiths
) then if that's a dual, it's always OK to upcast it to an IDispatch. It's downcasts that can't be trusted in this scenario. -- Ian Griffiths -Original Message- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Peter Ritchie Sent: 07 March 2006 19:48

Re: [ADVANCED-DOTNET] Safe to modify IDL to change from IDispatch to a different Interface?

2006-03-06 Thread Ian Griffiths
described. -- Ian Griffiths Pluralsight -Original Message- From: Peter Ritchie Depends on what you consider safe. It's not safe in all cases (e.g. aggregation); so, Steve is perfectly correct by dropping to the lowest- common-denominator and saying Absolutely not. It may work in Josh's

Re: [ADVANCED-DOTNET] .NET IS CRAZY ...

2006-02-10 Thread Ian Griffiths
you're actually trying to solve. I'd forgotten how painful C++ COM was. (Although this is more a C++ issue than it is a COM issue. There are languages in which COM is pretty easy to use.) -- Ian Griffiths -Original Message- From: Frans Bouma Sorry, I was only joking, I do not suspect

Re: [ADVANCED-DOTNET] Possible defect in BeginWrite on FileStream

2005-12-17 Thread Ian Griffiths
to do something that you know would be pretty easy for the underlying implementation you happen to be using. But that doesn't translate into an argument that Stream is designed wrong. -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: John Davis Yes, I

Re: [ADVANCED-DOTNET] Possible defect in BeginWrite on FileStream

2005-12-15 Thread Ian Griffiths
interference. You'd need a completely different implementation if you wanted to support non-sequential use wouldn't you? -- Ian Griffiths On Thu, 26 May 2005 23:22:45 +0100, Ian Griffiths [EMAIL PROTECTED] wrote: Even if there were an atomic method how would that help? It wouldn't eliminate

Re: [ADVANCED-DOTNET] What is the .NET equivalent of Java's MANIFEST.MF?

2005-12-01 Thread Ian Griffiths
. But that's just the implementation detail - all that really matters is: does the build take too long?..) -- Ian Griffiths - Pluralsight http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Kunle Odutola Not knowing anything about META.INF or MANIFEST.MF, or much about Java, it's

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

2005-11-28 Thread Ian Griffiths
I'd recommend not using that. By default, only Administrators and Power Users can write there. If you write your log there you'll be preventing non-admin users using any application that uses your DLL. -- Ian Griffiths - Pluralsight http://www.interact-sw.co.uk/iangblog/ -Original

Re: [ADVANCED-DOTNET] [Spam:***** SpamScore] Re: [ADVANCED-DOTNET] Consuming .NET assembly as ActiveX control in VB6

2005-10-20 Thread Ian Griffiths
than runtime-related. Which is presumably why it is possible to get it working. So it really depends on how you feel about poor designer support and using a completely unsupported feature... -- Ian Griffiths From: Eames, Andrew I would tread very

Re: [ADVANCED-DOTNET] com+ Design Time Testing

2005-10-20 Thread Ian Griffiths
that I'm prepared to wait for minutes at a time to step over a line of code! -- Ian Griffiths From: Discussion of advanced .NET topics. on behalf of Brad Shannon Sent: Thu 20/10/2005 02:45 To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: [ADVANCED-DOTNET

Re: [ADVANCED-DOTNET] Multiple Processes and Multiple application Domains

2005-10-16 Thread Ian Griffiths
, resources are likely to be more tight, and adding a load of extra processes to a desktop is an antisocial thing for an application to do, so it's best avoided unless you really need multiple processes. -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Muhammad

Re: [ADVANCED-DOTNET] Reasons to use HTTP remoting

2005-08-30 Thread Ian Griffiths
Whidbey When is this scheduled out? 7th November. -- Ian Griffiths === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] Reasons to use HTTP remoting

2005-08-29 Thread Ian Griffiths
that provides integrated authentication and encryption without the need to rely on IIS. -- Ian Griffiths - http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s

Re: [ADVANCED-DOTNET] WinForms _and_ console mode

2005-07-28 Thread Ian Griffiths
there are no params, but loads it and runs it in the existing process if there are params. (This is exploiting the fact that in .NET you can load an EXE into your process and run it.) This probably doesn't work with a hybrid managed/unmanaged EXE though... (I've not tried it.) -- Ian Griffiths http

Re: [ADVANCED-DOTNET] GetHashCode() method

2005-07-02 Thread Ian Griffiths
choices. (1) your GetHashCode could return a constant value, the same for all instances regardless of value, or (2) your object's hash code must change when the value changes in a way that affects the outcome of Equals. -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original

Re: [ADVANCED-DOTNET] Possible defect in BeginWrite on FileStream

2005-05-26 Thread Ian Griffiths
AFAIK.) But is this a defect? It's a bug to use a stream from multiple threads without synchronization. It would still be a bug even with the atomic method you propose. -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: John Davis Are you saying

Re: [ADVANCED-DOTNET] Possible defect in BeginWrite on FileStream

2005-05-25 Thread Ian Griffiths
enough? Does the BeginWrite not in effect take a snapshot of the seek location when the operation starts? -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: John Davis The way I understand it, the current BeginWrite on the FileStream object will write out

Re: [ADVANCED-DOTNET] UI thread problems - further insight

2005-04-19 Thread Ian Griffiths
Can you post a simple example reproducing the problem? -- Ian Griffiths http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Ross Diesel Hi Have managed to further refine the UI thread problem reported in earlier posts. Basically the problems manifested

Re: [ADVANCED-DOTNET] using async http handler to the max

2005-03-30 Thread Ian Griffiths
Dang! I was hoping to provoke you into finding the definitive answer, since I've been unable to find it so far. ;-) Ian From: John Davis Uncle! :) === This list is hosted by DevelopMentor® http://www.develop.com

Re: [ADVANCED-DOTNET] using async http handler to the max

2005-03-29 Thread Ian Griffiths
applications, for example.) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] MessageQueue and Thread

2005-03-24 Thread Ian Griffiths
Note that the documentation is often misleading - there are plenty of classes in the framework that claim to be using threads or the thread pool when they're actually doing intrinsically asynchronous calls as Mike describes. -- Ian Griffiths From

Re: [ADVANCED-DOTNET] using async http handler to the max

2005-03-17 Thread Ian Griffiths
is a separate question of course - arranging to have hundreds of concurrent requests to the DB might not help your performance much...) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: John Davis Ian, Why do we use threads? How do IO

Re: [ADVANCED-DOTNET] using async http handler to the max

2005-03-16 Thread Ian Griffiths
concur with your assessment of your comment's value, give or take a couple of cents. :) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: John Davis I'm sure Fritz is a great guy and all, but that how to create an extra thread pool article

Re: [ADVANCED-DOTNET] Asynchronous call - Thread life

2005-03-02 Thread Ian Griffiths
even mean by that. It will call whatever function the delegate you pass in refers to. ('function' in your example code there.) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Sathiamurthy, Venkat My many Thanks to Ian Griffiths and Bob

Re: [ADVANCED-DOTNET] synchronization

2005-02-09 Thread Ian Griffiths
during initialization, and thereafter use it from multiple threads that only ever read from it. I'm not sure which of those two is actually true... -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor

Re: [ADVANCED-DOTNET] synchronization

2005-02-09 Thread Ian Griffiths
optimizations go, this is often a particularly bad one... The ratio of cases where a ReaderWriterLock was the right thing to cases where I thought in advance it was going to be the right thing has, in my experience, been very low. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk

Re: [ADVANCED-DOTNET] synchronization

2005-02-09 Thread Ian Griffiths
-local, then some other mechanism (e.g. thread-local storage) sounds like it might be more appropriate. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: J. Merrill No one has commented on my suggestion that an array, with a lock only

Re: [ADVANCED-DOTNET] Which namespace to use: System.Reflection or System.ComponentMode l

2005-01-31 Thread Ian Griffiths
to the things that are not visible through TypeDescriptor, use Reflection. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: J. Merrill System.ComponentModel is not related, at all, to Reflection. You cannot use its methods to do

Re: [ADVANCED-DOTNET] Determing time when a assembly was built

2005-01-31 Thread Ian Griffiths
solution could also be built out of reparse points and/or file system filters. :-) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Fernando Tubio Actually, it is possible during the build process to use a custom attribute to embed

Re: [ADVANCED-DOTNET] Determing time when a assembly was built

2005-01-27 Thread Ian Griffiths
then read out via reflection! Either way you'll be generating a source file in a pre-build step.) I was just wondering if I was wrong, and there was some more cunning solution that I'm missing. -- Ian Griffiths === This list is hosted by DevelopMentor® http

Re: [ADVANCED-DOTNET] Disposing of objects

2005-01-27 Thread Ian Griffiths
this is pretty common in my code. Certainly a lot more common than code that contains a raw unmanaged resource. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage

Re: [ADVANCED-DOTNET] Disposing of objects

2005-01-27 Thread Ian Griffiths
Zaslavskiy, Dmitriy (IT) wrote: That's it. All the rest can implement disposable pattern but not finalizer Hold on... The disposable pattern as documented includes a finalizer. So you mean implement IDisposable, but not the full disposable pattern don't you? -- Ian Griffiths

Re: [ADVANCED-DOTNET] Determing time when a assembly was built

2005-01-27 Thread Ian Griffiths
It wasn't in the message he quoted, it was in the message I sent a couple of hours before that. This one, to be precise: http://discuss.develop.com/archives/wa.exe?A2=ind0501dL=advanced-dotnet T=0F=S=P=1203 -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog

Re: [ADVANCED-DOTNET] Disposing of objects

2005-01-26 Thread Ian Griffiths
pattern (i.e., with a finalizer and two Dispose methods) in that case. And that's the most common case, so it's a shame they tell you to use the full Dispose pattern... The fact is that there's nothing useful you can do to such resources in your finalizer. -- Ian Griffiths - DevelopMentor http

Re: [ADVANCED-DOTNET] Determing time when a assembly was built

2005-01-25 Thread Ian Griffiths
needing a solution to exactly the same problem Raj posed in the first place: how do you arrange for that text string to be whatever the time of day is at when the build occurred? Surely custom attributes offer just another form of the same problem, not a solution? -- Ian Griffiths DevelopMentor

Re: [ADVANCED-DOTNET] Event performance

2005-01-17 Thread Ian Griffiths
scenario, as microbenchmarks like these tend not to be all that representative of what you see in real life. (As should be obvious from the fact that a very small change to my test code meant the answer changed from About 20 times slower to About the same speed.) -- Ian Griffiths -Original

Re: [ADVANCED-DOTNET] Windows Forms--working with Images

2004-12-15 Thread Ian Griffiths
. Is that what you required? -- Ian Griffiths - http://www.interact-sw.co.uk/iangblog/ DevelopMentor - http://www.develop.com/ using System; using System.IO; using System.Drawing; using System.Windows.Forms; namespace ScrollImage { public class ImageForm : System.Windows.Forms.Form { private

Re: [ADVANCED-DOTNET] The down-level build blues...

2004-12-01 Thread Ian Griffiths
ago. From what I remember, the intention was to support targetting of multiple versions of the runtime. VS.NET templates might not be set up that way, but I thought the MSBuild technology itself was going to support this. -- Ian Griffiths - http://www.interact-sw.co.uk/iangblog/ DevelopMentor

Re: [ADVANCED-DOTNET] Create Transparent Image at run-time

2004-11-30 Thread Ian Griffiths
); } bmp.Save(@c:\temp.png, System.Drawing.Imaging.ImageFormat.Png); -- Ian Griffiths - http://www.interact-sw.co.uk/iangblog/ DevelopMentor - http://www.develop.com/ - Original Message - From: Bryan Clauss [EMAIL PROTECTED] I want to create a transparent image (GIF format) at run time

Re: [ADVANCED-DOTNET] GetType on non-mscorlib, gac assembly

2004-11-12 Thread Ian Griffiths
to work out what type you need - it just uses the metadata token. But I've not actually checked that. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: jon Thanks to both of you, got it! --- Richard Blewett [EMAIL PROTECTED] wrote

Re: [ADVANCED-DOTNET] Theads....

2004-10-20 Thread Ian Griffiths
throw a particular kind of SEH exception as a way of telling the debugger what you'd like your thread to be called! The essential problem with the mechanism is that you can't change the name of a thread. .NET inherits that restriction. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk

Re: [ADVANCED-DOTNET] ReadWrite locks and how they work

2004-09-30 Thread Ian Griffiths
to be a better bet. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: J. Merrill In your situation, I don't understand why you want to use a ReaderWriterLock at all. You presumably have multiple threads adding new messages to the queue

Re: [ADVANCED-DOTNET] DOTNET Remoting problems

2004-09-23 Thread Ian Griffiths
This will tell you what kinds of objects are taking all the memory. That may well give you a pretty quick route to finding out what's wrong. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Sinha, Amit (GE Energy, Non GE) I am facing

Re: [ADVANCED-DOTNET] Strategy for large canvas app (a la Visio)?

2004-09-15 Thread Ian Griffiths
on the Graphics object appropriately. But for child controls there's no straightforward way of doing this - you'd need to reposition and resize all of them yourself to be able to zoom. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Larry O'Brien

Re: [ADVANCED-DOTNET] Why volatile and possible improvements of CallObject [was: How do I make a call back to the client from a webservice?]

2004-09-03 Thread Ian Griffiths
not used in this scenario... The code happens to work in ASP.NET, which is why that bug never got highlighted. (And *that*'s what happens when I don't write unit tests... That'll teach me!) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog

Re: [ADVANCED-DOTNET] How do I make a call back to the client from a webservice?

2004-09-03 Thread Ian Griffiths
using the technique I showed.) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications

Re: [ADVANCED-DOTNET] How do I make a call back to the client from a webservice?

2004-09-03 Thread Ian Griffiths
concurrent calls to the web service it exposes. The calls complete correctly, they run concurrently as required, and the thread count on the server does not increase as you increase the number of concurrent requests. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog

Re: [ADVANCED-DOTNET] How do I make a call back to the client from a webservice?

2004-09-03 Thread Ian Griffiths
elsewhere in the file, but I think that given a better name you really wouldn't need to go and find the definition. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com Some .NET

Re: [ADVANCED-DOTNET] is there a support for resizing in Visual Studio ?

2004-09-02 Thread Ian Griffiths
that the vast majority of Swing-based Java apps that I've used have pretty poor UIs. I understand that it is possible to do a better job if you put the effort in. But it does usually end up being at least as manual a job as it is in Windows Forms.) -- Ian Griffiths - DevelopMentor http://www.interact

Re: [ADVANCED-DOTNET] How do I make a call back to the client from a webservice?

2004-09-02 Thread Ian Griffiths
implementation rather than a shipping-strength one. I've used the 'lock' keyword, and famously, I'm not a fan of that in production code.) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Ragnvald Barth My third idea is to let the server sent

Re: [ADVANCED-DOTNET] is there a support for resizing in Visual Studio ?

2004-09-01 Thread Ian Griffiths
could be wrong.) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp

Re: [ADVANCED-DOTNET] By passing the COM marshaller with managed C++

2004-08-30 Thread Ian Griffiths
sides. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Mohammad Adel Hello all I just want to be sure of a point that I read about in a forum.When using a COM component in a .NET application, the COM marshaller component

[ADVANCED-DOTNET] Testing

2004-08-04 Thread Ian Griffiths
This is a test - nothing to see here. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com Some .NET courses you may be interested in: Error in line 15 of ADVANCED

Re: [ADVANCED-DOTNET] Client IP Address

2004-07-24 Thread Ian Griffiths
difference it would make. (And this of course is a decision you can make independently of language.) -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ === This list is hosted by DevelopMentor® http://www.develop.com Some .NET courses you may

Re: [ADVANCED-DOTNET] Client IP Address

2004-07-22 Thread Ian Griffiths
, and have it raise those when these operations complete. That way, there's no requirement for the other classes to interact directly with the socket - they can just write handlers for We just got some data or We just got connected events without needing to deal with the low level details. -- Ian

Re: [ADVANCED-DOTNET] Client IP Address

2004-07-20 Thread Ian Griffiths
, but that's the reason you're getting the exception here. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Peter Suter I'd say stick with the obvious, but please back up a bit to where it's not obvious to a newbie. ar

Re: [ADVANCED-DOTNET] Client IP Address

2004-07-19 Thread Ian Griffiths
What is the exception that you're getting? -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Peter Suter Hi All, In a sub much like this one, from Using an Asynchronous Client Socket [Visual Basic], I keep getting an exception

Re: [ADVANCED-DOTNET] Client IP Address

2004-07-19 Thread Ian Griffiths
called BeginConnect. -- Ian Griffiths - DevelopMentor http://www.interact-sw.co.uk/iangblog/ -Original Message- From: Peter Suter After Dim client As Socket = CType(ar.AsyncState, Socket), client = nothing, and any attempt to use client throws An unhandled exception of type

Re: [ADVANCED-DOTNET] Marshalling WM_MEDIA_TYPE

2003-06-07 Thread Ian Griffiths
can make this call using Managed C++. Is that an option for you? It's very good at dealing with awkward Win32 data structures, and is often a good choice if what you're writing is a .NET wrapper for some non-.NET api. -- Ian Griffiths DevelopMentor - Original Message - From: Alex Ivanoff

Re: [ADVANCED-DOTNET] Sie By Side Assembly Versions -anyone a clu e how to solve type identity problems?

2003-05-31 Thread Ian Griffiths
File help item in the .NET Framework Developer's Guide. If you miss anything out, it's not going to work. -- Ian Griffiths DevelopMentor - Original Message - From: Pant, Nishant [EMAIL PROTECTED] Even I am stuck with this for days now. I am doing everything according to the book. I

[ADVANCED-DOTNET] CodeDom temp file names

2003-03-19 Thread Ian Griffiths
in CodeCompileUnit that would let me control this. That seems to me like the place this would be set if you could set it at all. Am I looking in the wrong place, or is this something that cannot be done? -- Ian Griffiths DevelopMentor === This list is hosted by DevelopMentor

Re: [ADVANCED-DOTNET] .Net Service and processor affinity

2003-03-18 Thread Ian Griffiths
Ian Griffiths wrote: I think John's point was that this might cause MSCORSRV.DLL to be used when MSCORWKS.DLL would have been better - the server version is designed to exploit multiprocessor boxes isn't it? Mike Woodring wrote: I doubt that setting affinity would do anything

Re: [ADVANCED-DOTNET] .Net Service and processor affinity

2003-03-16 Thread Ian Griffiths
... So I agree with Mike. (I just don't think it's totally obvious why he's right, hence the somewhat circumlocutary mode of agreement.) -- Ian Griffiths DevelopMentor === This list is hosted by DevelopMentor® http://www.develop.com You may be interested in Guerrilla

Re: [ADVANCED-DOTNET] Threading problem with ActiveX Control in href-exe

2003-03-11 Thread Ian Griffiths
this attribute could reasonably be regarded as a bug.) Try adding this: static void Main() { Thread.CurrentThread.ApartmentState = ApartmentState.STA; ... carry on with rest of code as normal... -- Ian Griffiths DevelopMentor - Original Message - From: Todd Hickerson [EMAIL

Re: [ADVANCED-DOTNET] how to send array of long integers to OCX from a C# .NET applica tion

2003-01-23 Thread Ian Griffiths
using, if any? ATL? MFC?) -- Ian Griffiths DevelopMentor - Original Message - From: Thokala, Sree [EMAIL PROTECTED] Can some one help us in sending the array of long integers to OCX from C# .NET application. WE are able to send array to a COM inproc and local server easily

Re: [ADVANCED-DOTNET] Reasons for restrictions on protected access from subclasses?

2002-12-13 Thread Ian Griffiths
between protected members. -- Ian Griffiths DevelopMentor - Original Message - From: Chris Daly [EMAIL PROTECTED] Section 3.5.3 of the C# spec lays out some restrictions on accessing protected members. I don't think that Java has the analogous restrictions and I'm trying to figure out why

Re: [ADVANCED-DOTNET] Constructing .Net objects from native code

2002-10-30 Thread Ian Griffiths
to dynamically invoke a method that does not exist // #define COR_E_MISSINGMETHOD EMAKEHR(0x1513L) Hope that sheds some light... -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http

Re: [ADVANCED-DOTNET] tamper proof assembly question

2002-10-23 Thread Ian Griffiths
, the only way to achieve this is not to give them your software in the first place. This attack works fine even if there are no bugs in the CLR and you don't have administrative rights on the machine in question. -- Ian Griffiths DevelopMentor - Original Message - From: John St. Clair

Re: [ADVANCED-DOTNET] tamper proof assembly question

2002-10-23 Thread Ian Griffiths
*. And MSFT don't generate a key pair every time you load an assembly. Isn't generating key pairs significantly more expensive than generating 160 bit numbers? -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other

Re: [ADVANCED-DOTNET] Exception safety in C#

2002-10-23 Thread Ian Griffiths
it gets to the dest1 = temp1. If it gets that far it's not going to go wrong after that point. The assignment operator here just copies references, and I don't think that ever throws. -- Ian Griffiths DevelopMentor - Original Message - From: Trey Nash [EMAIL PROTECTED] I'm back with another

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-07 Thread Ian Griffiths
For me the principal reason not to use a DataSet when I don't actually need one is the unnecessary complexity of the class. This is mostly an issue with Intellisense... I don't like being confronted with 40 items in my intellisense list that I mostly don't care about. A strongly-typed

Re: [ADVANCED-DOTNET] Strongly-Typed DataSets vs. Strongly-Typed Collections

2002-10-07 Thread Ian Griffiths
* it simpler... You don't have to write it first!) -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

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

2002-10-07 Thread Ian Griffiths
the problem? What happens if you create a ProcessStartInfo and explicitly set the WorkingDirectory? -- Ian Griffiths DevelopMentor - Original Message - From: Richard Birkby [EMAIL PROTECTED] Actually, ShellExecuteEx is called from the Start-Run dialog (and most other places except

Re: [ADVANCED-DOTNET] Mutex and Monitor, any difference ?

2002-09-20 Thread Ian Griffiths
prefer) -- Ian Griffiths DevelopMentor - Original Message - From: Pierre Greborio [EMAIL PROTECTED] I don't find any conceptual difference between Mutex and Monitor. Can someone tell if there are any ? You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced

Re: [ADVANCED-DOTNET] CAS: what's the diff between FullTrust and Everything permission sets?

2002-09-17 Thread Ian Griffiths
as linking and assembly, you can use ILASM and enter your native code in hex!) So at best it's an academic distinction, and if the Unmanaged Code privilege lets you run unmanaged code that you bring along yourself, it's not even that. -- Ian Griffiths DevelopMentor - Original Message

Re: [ADVANCED-DOTNET] How to retrieve ParameterInfo values on Delegate parameters?

2002-09-17 Thread Ian Griffiths
changes. Parameters are dynamic - the actual parameters being passed are specific to a particular invocation of the delegate. The delegate's Method property returns you type information (i.e. static information). How could it return anything else? -- Ian Griffiths DevelopMentor - Original

Re: [ADVANCED-DOTNET] event granularity

2002-09-09 Thread Ian Griffiths
for each node. -- Ian Griffiths DevelopMentor - Original Message - From: Christian Schmitz [EMAIL PROTECTED] I have a problem with the location of events in the .NET framework. Why Microsoft locates the events in top level classes and not in the classes where the events really happens

Re: [ADVANCED-DOTNET] sealed: why?

2002-09-04 Thread Ian Griffiths
we can stop this madness. ;-) -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] sealed: why?

2002-09-03 Thread Ian Griffiths
be virtual by default.) -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] sealed: why?

2002-09-02 Thread Ian Griffiths
for any particular application when you try to use your existing class as a base class and find out what is wrong with it. I'm increasingly coming to the conclusion that classes should be sealed by default. -- Ian Griffiths DevelopMentor - Original Message - From: Jesse Liberty [EMAIL

Re: [ADVANCED-DOTNET] Help Please on Bitmap Buffer

2002-08-21 Thread Ian Griffiths
Eric Franz wrote: First lets consider how DotNet would even know, given a series of paint commands, when your are ready for the buffered bitmap to be painted. The traditional way to indicate that you have finished painting is to return from the OnPaint method. -- Ian Griffiths DevelopMentor

Re: [ADVANCED-DOTNET] Help Please on Bitmap Buffer

2002-08-19 Thread Ian Griffiths
buffers a single command at a time? That is directly contrary to my experience. (And I use double buffering a lot.) Could you also show what you did to enable double buffering - that might be where the problem lies. -- Ian Griffiths DevelopMentor - Original Message - From: Eric Franz

Re: [ADVANCED-DOTNET] Which methods have been Jit complied

2002-08-14 Thread Ian Griffiths
need to have this information available to you from within the CLR, things are a little tricky - conceptually profilers run outside of the CLR. -- Ian Griffiths DevelopMentor - Original Message - From: Stefan Finch [EMAIL PROTECTED] Is it possible to take a set of assemblies and see

Re: [ADVANCED-DOTNET] Escalating: EXE Remote Object?

2002-07-30 Thread Ian Griffiths
to build the client program in Visual Studio.NET, then unfortunately you will need the types to be defined in a DLL. But unless both of those apply, it really doesn't matter at all. -- Ian Griffiths DevelopMentor - Original Message - From: Sievert, James A [EMAIL PROTECTED] What I mean

Re: [ADVANCED-DOTNET] ADO.NET: Parent-child relationship and auto-increment columns

2002-07-08 Thread Ian Griffiths
Ian Griffiths wrote: I can see how that might work for inserting rows into a single table, but I don't understand how it addresses the poster's original quetion, which involved adding a *new* parent row, and a *related* child row. . Ben Kloosterman replied: I asume the problem

Re: [ADVANCED-DOTNET] ADO.NET: Parent-child relationship and auto-increment columns

2002-07-07 Thread Ian Griffiths
?) -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] Specifying an initial capacity hurts performance [was Benchmark]

2002-07-06 Thread Ian Griffiths
you'd expect it to be too small to measure easily. -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [ADVANCED-DOTNET] Benchmarking

2002-07-04 Thread Ian Griffiths
more general about the performance of the collection classes? If the former, this is clearly a reasonable test. If the latter, you will need to be very careful about the conclusions that you draw. -- Ian Griffiths DevelopMentor - Original Message - From: Thomas Tomiczek [EMAIL PROTECTED

Re: [ADVANCED-DOTNET] Massive Use of Threads Issue

2002-07-03 Thread Ian Griffiths
}, {1}, during.Second, during.Millisecond); Console.WriteLine(After : {0}, {1}, after.Second, after.Millisecond); } } } -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists

Re: [ADVANCED-DOTNET] Smart clients and offline usage

2002-07-03 Thread Ian Griffiths
to some back end, with a strong hint that the client software was probably downloaded from the server at some point in the procedings. -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists

Re: [ADVANCED-DOTNET] Singleton without remoting

2002-07-03 Thread Ian Griffiths
expensive.) Actually quite a lot of that is the context switch... So it's going to be slow in any case, no matter what mechanism you use. Avoiding singletons may well be a preferable approach. -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from

  1   2   >