Re: [ADVANCED-DOTNET] Enum initializers not generating correct WebService Proxy

2003-12-22 Thread Howard Hoffman
The issue has to do with the actual values. I have client-side code that 'inverses' a sort by mulitplying by (-1) -- hence the need for the hard- coded values. Server side sprocs look at the enum/int value and switch accordingly. I want the client and server side to use the same scheme. A work

Re: [ADVANCED-DOTNET] Socket.ReceiveFrom and excess data

2003-12-22 Thread Arlie Davis
No. Definitely not. Allocate buffers of an appropriate size before calling ReceiveFrom or BeginReceiveFrom. "Appropriate" depends on your application protocol. -- arlie -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Alex I

Re: [ADVANCED-DOTNET] Enum initializers not generating correct WebService Proxy

2003-12-22 Thread Simon Fell
On Mon, 22 Dec 2003 11:29:40 -0500, Howard Hoffman <[EMAIL PROTECTED]> wrote: >I have an enum where each value is fixed. E.g.: > >public enum SortCodes >{ > nameColSort = 1, > nameColSortDesc = -1, > addrColSort = 2, > addrColSortDesc = -2, > ... >} > >'SortCodes' is an arg to a [WebSer

Re: [ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Rob MacFadyen
I'm just guessing based on my experience with ActiveX controls IE does not cache ActiveX controls on a page that expires immediately. To work around this you have to send the user to a page that is marked as cacheable and has the ActiveX .CAB on it... then redirect the user to the next page.

Re: [ADVANCED-DOTNET] Socket.ReceiveFrom and excess data

2003-12-22 Thread Jekke Bladt
I would avoid this by using a large buffer. There's nothing in the documentation that suggests that there's a practical limit to the buffer size (other than 2^32-1 bytes.) --Jekke Alex Ivanoff wrote: > MSDN says: > "If the datagram you receive is larger than the size of buffer, the > ReceiveFrom

Re: [ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Kamen Lilov
>> Make sure the control is strong named It won't help much. IE will again try to load the control constantly, although in this case it will read only a part of it (to be able to verify keys, version stamp, etc). But the server roundtrip - and quite a few KB of data - are still there, and in mos

Re: [ADVANCED-DOTNET] Enum initializers not generating correct WebService Proxy

2003-12-22 Thread Marsh, Drew
Howard Hoffman wrote: > Minor correction. > > It's not xsd.exe (MSDataSetGenerator) that is wrong (IMO), but the 'Add / > Update Web Reference' (in VS.NET 2003) code generator. I knew what you meant. It's actually the same as WSDL.EXE then. ;) See my reply to the original post over on the DOTNET

[ADVANCED-DOTNET] Socket.ReceiveFrom and excess data

2003-12-22 Thread Alex Ivanoff
MSDN says: "If the datagram you receive is larger than the size of buffer, the ReceiveFrom method will fill buffer with as much of the message as is possible, and throw a SocketException. If you are using an unreliable protocol, the excess data will be lost." Is there a way not to lose any data wi

Re: [ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Kamen Lilov
This is a well known problem that has no real solution. Somebody at Microsoft must have been smoking something when they did the design specs for dynamically loadable WinForms controls (sorry folks, can't put it in any other way - the architecture is simply unusable) My own solution (and one that

Re: [ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Aaron A. Anderson
Make sure the control is strong named -Original Message- From: Saravana Prasad S <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Sun, 21 Dec 2003 23:53:33 -0600 Subject: [ADVANCED-DOTNET] How to cache the assembly at client side ?? Hi All, I have developed a windows control and emb

Re: [ADVANCED-DOTNET] Enum initializers not generating correct WebService Proxy

2003-12-22 Thread Howard Hoffman
Minor correction. It's not xsd.exe (MSDataSetGenerator) that is wrong (IMO), but the 'Add / Update Web Reference' (in VS.NET 2003) code generator. Howard === This list is hosted by DevelopMentorĀ® http://www.develop.com Some .NET courses you may be interested in:

Re: [ADVANCED-DOTNET] GC internals - discussion and Questions

2003-12-22 Thread Blake Ryan
If you want to read up on how such cases can be optimised I suggest you do a search for the "Train" algorithm for garbage collection. I can't remember where I found them, but there are some very good papers describing it. Apparently some of the better JVM implementations use it. Cheers, Blake -

[ADVANCED-DOTNET] Enum initializers not generating correct WebService Proxy

2003-12-22 Thread Howard Hoffman
[Apologies -- I mistankenly posted this to WinForms. I meant to post here] I have an enum where each value is fixed. E.g.: public enum SortCodes { nameColSort = 1, nameColSortDesc = -1, addrColSort = 2, addrColSortDesc = -2, ... } 'SortCodes' is an arg to a [WebService] method:

Re: [ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Ola Tinoco-Ekdahl
Btw, the DOTNET-WEB list might be a better forum for this type of question. --ola -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Saravana Prasad S Sent: Monday, December 22, 2003 12:54 AM To: [EMAIL PROTECTED] Subject: [ADVANC

Re: [ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Ola Tinoco-Ekdahl
Sorry for flooding the list, but I didn't see that it's a Windows control we're talking about. The link I sent probably won't help you. -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Saravana Prasad S Sent: Monday, December 22,

Re: [ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Ola Tinoco-Ekdahl
This will probably get you going. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenre f/html/cpconoutputcache.asp -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Saravana Prasad S Sent: Monday, December 22,

[ADVANCED-DOTNET] How to cache the assembly at client side ??

2003-12-22 Thread Saravana Prasad S
Hi All, I have developed a windows control and embedded it on an aspx page. The problem is that the control is getting loaded from the server everytime the user access the applicaion (There is no large difference between the time it takes to load initially and on subsequent loads). The cont