Re: [ADVANCED-DOTNET] Remoting, Threading and Concurrency

2008-03-25 Thread Ted Neward
Don't forget that WinForms apps run the event thread in a COM STA, so that *may* account for some of the serialization of method calls you're seeing. Shouldn't happen in a console app, though, unless you explicitly marked Main() as such, so I dunno how much that helps. :-/ Ted Neward Java, .NET

Re: [ADVANCED-DOTNET] virtual explicit interface members

2008-03-25 Thread Ted Neward
I still remember the day I discovered private virtuals in C++. That was fun stuff, particularly trying to shoehorn that trick into the project I was working on just to confuse the hell out of my project lead for the day. *sigh* Ah, good times. Ted Neward Java, .NET, XML Services Consulting

Re: [ADVANCED-DOTNET] Missing event keyword

2008-02-27 Thread Ted Neward
as two methods, add_FooChanged and remove_FooChanged, that are used when the compiler sees the += from client code, and the necessary metadata to allow other languages to hook up to FooChanged. (You can customize these add and remove methods, by the way, using syntax similar to that of properties.) Ted

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

2007-02-25 Thread Ted Neward
*really* don't like it, it's not rocket science to change it. Anybody feel like hacking on Rotor's C# compiler for a bit? :-) Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com -Original Message- From: Discussion of advanced .NET topics

Re: [ADVANCED-DOTNET] What's the .NET analogue of Java's JMX framework?

2006-06-28 Thread Ted Neward
WMI (and System.Management) is definitely the closest. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://www.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf Of Eric Means Sent: Tuesday

Re: [ADVANCED-DOTNET] .net based Messaging systems

2006-04-15 Thread Ted Neward
Some of the JMS products (Sonic, for example) are putting .NET bindings out. I don't have an exhaustive list, though. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://www.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED

Re: [ADVANCED-DOTNET] Modules...

2006-04-10 Thread Ted Neward
Well, obviously he's a better source on that than I, but I looked at this not more than a month ago, and there was some reference to merging managed C++ assemblies in the docs, and I'd swear it indicated that it was possible. *shrug* Wouldn't be the first time I've been wrong, tho. :-) Ted Neward

Re: [ADVANCED-DOTNET] Modules...

2006-04-01 Thread Ted Neward
The latest builds of ILMerge can merge unmanaged code assemblies as well as managed code ones, IIRC. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://www.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL

Re: [ADVANCED-DOTNET] Mixed C++ / C# programming question

2006-02-02 Thread Ted Neward
(or there's some other reason you want/need to keep that code unmanaged, such as a number of unmanaged clients that will continue to need to use it), then you probably want to go the managed wrapper (written in C++/CLI) to Façade it. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http

Re: [ADVANCED-DOTNET] Nested transactions

2006-01-06 Thread Ted Neward
I honestly don't know if they're part of ANSI SQL, but I'd be willing to bet they are in at least one of the more recent versions. Now, whether your favorite database *supports* them, that's another story I wouldn't bet on Access getting them any time soon. ;-) Ted Neward Author, Presenter

Re: [ADVANCED-DOTNET] Nested transactions

2006-01-05 Thread Ted Neward
rollback to a savepoint if necessary/desired. Check the SQL Server docs for how many open savepoints you can have. Bear in mind, too, that you're holding locks throughout the window of the transaction, so savepoints don't release any contention issues here. Ted Neward Author, Presenter, Consultant

Re: [ADVANCED-DOTNET] Is this System.Assembly an executable or a library?

2006-01-05 Thread Ted Neward
as the starting point of being executed (meaning, the CLR considers it an executable assembly). Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf

Re: [ADVANCED-DOTNET] Is this System.Assembly an executable or a library?

2006-01-05 Thread Ted Neward
, that Java went down this path for a while and it was not as easy as it seemed. ClassCastExceptions were the rule of the day. :-/ (Unfortunately, one vendor who really got the story right there went out of business and their product got slurped into a larger CORBA ORB story. Sad, really.) Ted

Re: [ADVANCED-DOTNET] Is it possible to redirect binding to another public key token?

2006-01-01 Thread Ted Neward
Oh, ew. True, but ew. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf Of Brock Allen Sent: Thursday, December 29, 2005 4:48 PM

Re: [ADVANCED-DOTNET] Is it possible to redirect binding to another public key token?

2005-12-29 Thread Ted Neward
keypair, then sign the second version with the same pair. But, in general, the strong-name portion of the assembly is not considered to be part of the evolvable portions of the assembly name. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original

Re: [ADVANCED-DOTNET] runtime framework targeting

2005-12-20 Thread Ted Neward
Why would an assembly want to change the version of the runtime it wants to target anyway? What's your use case here? I'm curious. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From: Discussion of advanced .NET topics

Re: [ADVANCED-DOTNET] Linking app.config files

2005-12-19 Thread Ted Neward
Mike, do you know if the app.config is read using a normal XML parser? If it is, you could probably link them using the old XML DTD element substitution trick Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From

Re: [ADVANCED-DOTNET] What is the difference between Release and Debug code?

2005-12-15 Thread Ted Neward
about attaching to the service with WinDbg and SOS to trap the crash and have a look? Robbins has some good info on WinDbg and SOS in his Debugging .NET and Windows Applications book, if you've not done this before. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http

Re: [ADVANCED-DOTNET] Msgbox Question

2005-12-15 Thread Ted Neward
, it would be a wise lesson to learn earlier rather than later, IMHO. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf Of Ian Griffiths Sent

Re: [ADVANCED-DOTNET] Msgbox Question

2005-12-08 Thread Ted Neward
MessageBox() (the historical ancestor of the WinForms version) was historically a pretty black-box thing; if you need that level of control you probably want to write your own similar routine. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com

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

2005-12-01 Thread Ted Neward
Spot-on: the manifest file is where Java puts metadata regarding the .jar file. The equivalent would be an assembly-level custom attribute. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From: Discussion of advanced .NET

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

2005-11-26 Thread Ted Neward
Why not defer that decision? Use the System.Diagnostics.Trace class, and let the application itself (or the config file) set up the destination for the log information--file, event log, wherever. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com

Re: [ADVANCED-DOTNET] Interface name collision in C#

2005-11-19 Thread Ted Neward
are identical) are both valid. FWIW, the Deserialize() case is the poster child for Explicit Interface Method Definition (EIMD), as it's called in the C# Spec. There's not much else that's as clear-cut when to use this feature. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http

Re: [ADVANCED-DOTNET] Reading a text file in fixed format

2005-11-09 Thread Ted Neward
What about sucking the entire contents of the file into memory as a memory-mapped file and then picking through the format that way? It'll minimize the amount of file I/O, but aside from that I'm not sure what you can do to optimize this further. Ted Neward Author, Presenter, Consultant Java

Re: [ADVANCED-DOTNET] Primary Key Bug

2005-10-28 Thread Ted Neward
think there's a right answer here, to be honest. Net result: I wouldn't be too sure this was just a hack by a dev who took the easy way out. Have a *little* more faith in those guys, eh? :-) Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original

Re: [ADVANCED-DOTNET] Break on some exceptions in debug mode

2005-10-28 Thread Ted Neward
to the framework classes) or else you want the IDE to catch certain kinds of exceptions. Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf

Re: [ADVANCED-DOTNET] Primary Key Bug

2005-10-28 Thread Ted Neward
Then Oracle is wrong. :-) Ted Neward Author, Presenter, Consultant Java, .NET, XML services http://blogs.tedneward.com -Original Message- From: Discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED] On Behalf Of Franklin Gray Sent: Tuesday, October 25, 2005 3:48 PM

Re: [ADVANCED-DOTNET] Can I get reference to an object by its name?

2005-07-02 Thread Ted Neward
, the assembly will need to be running in a relatively trusted (that is, must be granted the permissions to Reflect on private elements) zone in order to execute. Ted Neward Author, Instructor, Consultant Java, .NET, Web services http://www.neward.net/ted Also reach me at [EMAIL PROTECTED

Re: [ADVANCED-DOTNET] Windows Service OnStop problem

2005-05-09 Thread Ted Neward
Or, perhaps tangentially to Mike's suggestion, the problem is that clients registered with something they *thought* was the service instance, but isn't (perhaps, instead, they registered with a *local* copy of the object, as opposed to the one running in the service process?). Ted Neward Author

Re: [ADVANCED-DOTNET] IL Editor

2005-02-22 Thread Ted Neward
The 3.0 link from the main page (and from the Downloads page) is broken; if you click on the Downloads link at the top of the page, you can get hold of the 2.0 bits (executable and source). Just did it Ted Neward Author, Instructor, Consultant Java, .NET, Web services http://www.neward.net

Re: [ADVANCED-DOTNET] IL internals (castclass and isinst)

2005-02-20 Thread Ted Neward
and/or goodness. Assuming the CLR itself isn't too terribly different from Rotor on this score, you can see the gory details in sscli\clr\src\vm\jitinterface.cpp; do a search for IsInst and ChkClass, as there are a couple of helpers that get invoked during the process. Ted Neward Co-Author, SSCLI

Re: [ADVANCED-DOTNET] MS EIF n logging blocks

2005-02-04 Thread Ted Neward
would force people to install the application, rather than just xcopy-deploy it. Ted Neward Author, Instructor, Consultant Java, .NET, Web services http://www.neward.net/ted -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:ADVANCED- [EMAIL PROTECTED

Re: [ADVANCED-DOTNET] .Net Service getting combined with Windows Forms AppDomain

2004-10-30 Thread Ted Neward
look for existing .NET processes and share process spaces like this. Is there perhaps some kind of remoting connection between the service and the WinForms app? Ted Neward Author, Instructor, Consultant Java, .NET, Web services http://www.neward.net/ted -Original Message- From

Re: [ADVANCED-DOTNET] problem using SmtpMail Object

2004-02-09 Thread Ted Neward
class replacement/supplement? Ted Neward Speaker, Author, Instructor: .NET and Java http://www.neward.net/ted/weblog -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Ankit Sent: Sunday, February 08, 2004 5:54 AM To: [EMAIL

Re: [ADVANCED-DOTNET] Object Memory Space

2003-06-25 Thread Ted Neward
That overhead, BTW, is 8 bytes per object, and is fixed regardless of the size or number of the methods in the type of the object in question. Ted Neward Author, Instructor, Presenter: Java and .NET http://www.neward.net/ted/weblog http://www.javageeks.com http://www.clrgeeks.com -Original

Re: [ADVANCED-DOTNET] Binary data in the #US heap.

2003-01-17 Thread Ted Neward
I don't think Serge was necessarily recommending it as standard practice, just as an example of what it might be used for. Ted Neward { .NET Java } Author, Instructor http://www.neward.net/ted/weblog http://www.javageeks.com http://www.clrgeeks.com - Original Message - From: Paolo

Re: [ADVANCED-DOTNET] Possible to change type definition when the type is loaded?

2002-10-16 Thread Ted Neward
you remove the hit of doing the enhancement at runtime. Ted Neward { .NET Java } Author, Instructor http://www.javageeks.com http://www.clrgeeks.com - Original Message - From: Jason Whittington [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 16, 2002 1:15 PM Subject: Re

[ADVANCED-DOTNET] Enumerating managed processes on machine

2002-10-15 Thread Ted Neward
) that demonstrates it. Disclaimer: This was back in Beta2 days, I don't know if Chris has kept the code up to date. Ted Neward { .NET Java } Author, Instructor http://www.javageeks.com http://www.clrgeeks.com You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET

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

2002-08-14 Thread Ted Neward
not suggesting that the CLR does this currently; I'm merely marking a place that says They *could* do this later, if it turns out to be beneficial to do so. Ted Neward { .NET Java } Author, Instructor http://www.javageeks.com http://www.clrgeeks.com - Original Message - From: Marco Dorantes

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

2002-05-15 Thread Ted Neward
--in this case, it boils down to how much purity for how much performance and scalability? Ted Neward {.NET || Java} Course Author Instructor, DevelopMentor (http://www.develop.com) http://www.javageeks.com/tneward http://www.clrgeeks.com/tneward - Original Message - From: Sinnott, John