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

2002-10-24 Thread Simon Hewitt
Hi Andy System.DirectoryServices is just a wrapper around ADSI AFAIK. I already have a VB6 library with classes that wrap around ADSI and while that is well optimized, my LDAP library, so far, can read up to 7 times faster. Also there is much more scope for other things such as multi-threading

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

2002-10-24 Thread Andrew Hopper
Yeah, I figured you had a fairly good reason to build your own, but I had to ask. My personal opinion is that projects like this ought be written in managed C++ (it's much easier to play with pointers in C++) and use the MC++ library as a gateway between the managed and unmanaged worlds. That

Re: [ADVANCED-DOTNET] .NET CLR network limit?

2002-10-24 Thread Thomas Tomiczek
Not that I know. Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Turneral [mailto:Alex;INSYSTEK.COM] Sent: Donnerstag, 24. Oktober 2002 17:42 To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] .NET CLR network limit? Running a single app with 5

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

2002-10-24 Thread Simon Hewitt
Andy Thanks very much for this! I had in fact managed, eventually, to make it work** but I will peruse your code to pick up the smart stuff about Try Finally blocks and arrays of IntPtr rather than my clumsy alloc of space to hold IntPtr. As a quick aside, whilst I was playing about with this,

[ADVANCED-DOTNET] .NET CLR network limit?

2002-10-24 Thread Turneral
Running a single app with 5 Asynchronous threads running accessing remote machinces 3-4 will time out (RPC server unavailable). Running 5 instances of the app accessing one machine each runs fine. is ther a limit to the IP traffic within a single appdomain in .NET CLR? You can read messages from

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

2002-10-24 Thread Dejan Jelovic
Chad M. Gross wrote: That could be used to ensure that Dispose() is called when the last [Counted] reference is destroyed, as a way to reclaim handles and other resources. Then later the garbage collector would come and reclaim the memory. Brian addresses your exact point regrading why

Re: [ADVANCED-DOTNET] Invoking C++ DLL from C#

2002-10-24 Thread Sam Gentile
You *must* pin the pointers! Sam Gentile .NET Consultant [EMAIL PROTECTED] http://www.samgentile.com http://radio.weblogs.com/0105852/ -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:ADVANCED-DOTNET;DISCUSS.DEVELOP.COM] On Behalf Of Alex Yakhnin Sent:

[ADVANCED-DOTNET] No answer: Wordwrap event in a textbox

2002-10-24 Thread Saye, Robert
Is there an event that fires when a multiline textbox wraps a string? I didn't see one in the docs, or any news group and I have posted twice on the winforms list with no response. Does anyone know how to trap this? What I would like to do is extend the datagrid textbox column to automatically

[ADVANCED-DOTNET] emit. type[],,*

2002-10-24 Thread Micha Jaeschke
How to emit method which have argument with suffix ([]). Type of argument is coming from the same assembly. Example - class A{ } class B{ int foo(A[] arg) int goo(int[] arg) } - after defining 2 typeBuilders i want define methods like this

Re: [ADVANCED-DOTNET] emit. type[],,*

2002-10-24 Thread Miguel de Icaza
hello, coming from the same assembly. Example - class A{ } class B{ int foo(A[] arg) int goo(int[] arg) } - after defining 2 typeBuilders i want define methods like this typeBuilderB.DefineMethod(goo,atributes,