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

2002-10-23 Thread Chad M. Gross
On Wed, 23 Oct 2002 20:18:59 +0200, Dejan Jelovic <[EMAIL PROTECTED]> wrote: >Patrick Steele wrote: > >> > What I can't understand why reference couting wasn't >> > implemented in CLI as a standard facility. A [Counted] >> > attribute would do the trick nicely. >> > ... >> >> See: >> >> >http://di

[ADVANCED-DOTNET] Integrating COM Interop DLLs & IWebBrowser2

2002-10-23 Thread James Crowley
Hi, I'm basically trying to remove my assemblies dependency on the 2 COM Interop dll's that are generated when using the WebBrowser control. There's a nice example at http://www.codeproject.com/useritems/webbrowserrevisited.asp that got be started, but unfortunately it doesn't go far enough. Basic

Re: [ADVANCED-DOTNET] URGENT! IIS only serving partial href-exe files

2002-10-23 Thread Xwscom1
Can you give me some platform info? What web server and client platform are you using? When you say it doesn't work, what happens? Does IEExec start up and hang? Does it crash? IEExec is the app that is hosting your winforms app btw. -Original Message- From: Dave Adair [mailto:dpadair@;YAH

Re: [ADVANCED-DOTNET] Advanced printing with GDI+

2002-10-23 Thread Jim Nakashima
Hey Jeff, In V1.0 of the .Net framework, Microsoft did not take account for the hard margins of the printer. This means that if the hard margin for the printer was inset by 1/4 of an inch then a margin of 1 inch would actually be inset by 1.25 inches. Nice huh? :) In V1.1 of the framework, they

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

2002-10-23 Thread Patrick Steele
Have you seen what Sells Brothers, Inc. is doing with Rotor? http://www.sellsbrothers.com/spout/#refCountRotor --- Patrick Steele ([EMAIL PROTECTED]) Lead Software Architect Image Process Design > -Original Message- > From: Dejan Jelovic [mailto:dejan@;JELOVIC.COM] > Sent: Wednesday,

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

2002-10-23 Thread Dejan Jelovic
Patrick Steele wrote: > > What I can't understand why reference couting wasn't > > implemented in CLI as a standard facility. A [Counted] > > attribute would do the trick nicely. > > ... > > See: > > http://discuss.develop.com/archives/wa.exe?A2=ind0010a&L=dotnet&P=39459 I've seen Brian's argumen

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

2002-10-23 Thread Trey Nash
> First of all, you say: "The key is in the std::swap. It is guaranteed, > by the standard, never to throw". Technically, you are correct about std::swap. Again, I need to be more clear. std::swap on raw pointers is guaranteed never to throw. (simiar to an assignment, but easier to write) And,

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

2002-10-23 Thread Johan Ericsson
First of all, you say: "The key is in the std::swap. It is guaranteed, by the standard, never to throw". This is just not true. This is how swap is defined: template void swap(T& first,T& second) { T temp(first); // can throw first = second; // can throw second = temp; // can throw

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

2002-10-23 Thread Patrick Steele
> -Original Message- > From: Dejan Jelovic [mailto:dejan@;JELOVIC.COM] > Sent: Wednesday, October 23, 2002 10:46 AM > To: [EMAIL PROTECTED] > Subject: Re: [ADVANCED-DOTNET] Exception safety in C# > > What I can't understand why reference couting wasn't > implemented in CLI > as a standar

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

2002-10-23 Thread Trey Nash
Ooops. I have succeeded in being not so clear again. :-) For some reason, I have an uncanny knack at that. :-( OK, what I *really* meant had nothing to do with assignment operations and copy operations in C#. They had more to do with the exception safety guideline that reads similar to this:

Re: [ADVANCED-DOTNET] tamper proof assembly question

2002-10-23 Thread Craig Andera
> > I think the problem comes down to calculating the SHA-160 > > hash of 2^63 (on average) public keys. Someone else might > > know how much CPU that would take. Presumably it's not > > prohibitively expensive, since MSFT makes the CLR do it > > once every time it loads a signed assembly. > > But

Re: [ADVANCED-DOTNET] AW: [ADVANCED-DOTNET] host and network byte order?

2002-10-23 Thread John Davis
Yeah, for those unsigned types I suppose you could do that. But you still have the floating point types as well. You'll still have to write your own byte swap code for these. I usually just write a class that can byte swap every numeric type on the platform and then write my serialize/deserializ

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

2002-10-23 Thread Dejan Jelovic
Ian Griffiths wrote: > So if you want to assign a bunch of stuff you would just do this: > > temp1 = orig1.Clone(); > temp2 = orig2.Clone(); > temp3 = orig3.Clone(); > > // If we were going to have thrown we > // would have done by now. > dest1 = temp1; > dest2 = temp2; > dest3 = t

Re: [ADVANCED-DOTNET] Problem with COM+ and .NET Enum Parameters in Method definition

2002-10-23 Thread Kuthair Habboush
That did it! Thanks very much! Original Message Follows From: "Clemens F. Vasters" <[EMAIL PROTECTED]> Reply-To: "Moderated discussion of advanced .NET topics." You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor l

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

2002-10-23 Thread Ian Griffiths
There are no copy constructors in C#, so how exactly would this be an issue? Assignment is never overloaded. So I don't think it can ever throw. Isn't the only reason that this is only a big hairy issue in C++ because you can't trust things like assignment not to throw? So if you want to assign

Re: [ADVANCED-DOTNET] Complex (for me anyway) Marshalling

2002-10-23 Thread Andrew Hopper
I'll ask the obligatory "why can't you use the objects in the System.DirectoryServices namespace?" here. Now that we've gotten that out of the way... Passing structures that contain pointers to structures or arrays of structures between managed and unmanaged code generally requires either a custom

Re: [ADVANCED-DOTNET] tamper proof assembly question

2002-10-23 Thread Ian Griffiths
Craig Andera wrote: > There is an additional weakness in this scheme. Because > most compilers don't actually record the public key in the > client, but rather a 64-bit hash of the public key (the public > key token). Which is hard to attack with brute-force, but > (I believe) not impossible. I exp

Re: [ADVANCED-DOTNET] tamper proof assembly question

2002-10-23 Thread Ian Griffiths
Why bother turning off verification when you can just reverse engineer it (e.g. ILDASM), change the strong name to use a key pair of your own and recompile, with whatever modifications you want in place? If your goal is to stop someone modifying your software and then running the modified version,

[ADVANCED-DOTNET] AW: [ADVANCED-DOTNET] host and network byte order?

2002-10-23 Thread Klammer Claus
Thanks for your statement! Java states allways to use the 'network byte order' (which is a defined standard hopefully, isn't it?). So I assume by using the 'Socket.Net.IPAddress.HostToNetworkOrder' method interoperability can be reached between a .Net app and any Java app. Am I right, or have I ov

Re: [ADVANCED-DOTNET] MS WSDK and serializing web request

2002-10-23 Thread Dag
Ok, thanks for that. I can dump most messages. Maybe I do something terribly wrong but when addding an attachment this does not end up in the trace file. Are there any way to programatically dump the whole soap message myself? I found a property on the request that was called envelope. First I

Re: [ADVANCED-DOTNET] host and network byte order?

2002-10-23 Thread John Davis
Java is big endian (the MSB (most significant byte) comes first). .Net appears to be little endian (LSB (least significant byte) comes first). But I don't think the standard really specifies anything. So, I guess it just defaults to whatever the native ordering is for the CPU. For Intel CPU's t

[ADVANCED-DOTNET] host and network byte order?

2002-10-23 Thread Klammer Claus
I want to connect a midp device (java) with a server written in c#. During tests I noticed that the writeInt method of the 2 languages differs. At least the way the data is sent over the network is different. I used a tcp sniffer to test this (sent int number '14'): -(java)-

Re: [ADVANCED-DOTNET] Problem with COM+ and .NET Enum Parameters in Method definition

2002-10-23 Thread Clemens F. Vasters
Is the serviced component assembly in the GAC? It should be. -cv -Original Message- From: Kuthair Habboush [mailto:khabboush@;HOTMAIL.COM] Sent: Mittwoch, 23. Oktober 2002 00:10 To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] Problem with COM+ and .NET Enum Parameters in Method definit

[ADVANCED-DOTNET] Complex (for me anyway) Marshalling

2002-10-23 Thread Simon Hewitt
I've been working on an LDAP library and I've managed to work out how to read info from Active Directory. I'm now trying to write information back (or delete) and I can't work out the signatures/struct to use or whether I need to allocate unmanaged memory and pass that instead. The LDAP API stuff