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
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
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
*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
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
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
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
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
(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
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
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
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
, 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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
) 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
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
--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
40 matches
Mail list logo