Re: [ADVANCED-DOTNET] Large solutions and references

2004-08-10 Thread Frans Bouma
> Hi, this is pretty much the same problem as I had :) > > Our solution is as follows (and comes straight from one of > the Ms solution development centre (SDC) who we had in for > consultancy on precisely this problem so I guess they use it too): > > * System Solution containing all projects -

Re: [ADVANCED-DOTNET] Server-Independent Connection String

2004-08-10 Thread Andrew Chalk
Thanks, to you, and all who replied. Your solution worked and best fitted my application context. - Original Message - From: "Booth, Bill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 04, 2004 2:48 PM Subject: Re: [ADVANCED-DOTNET] Server-Independent Connection Strin

Re: [ADVANCED-DOTNET] Process.Kill doesn't kill children of spawned processes?

2004-08-10 Thread Srihari Angaluri
Stephen, Killing the parent process will not necessarily terminate all its child processes. Even if your parent is able to somehow detect external termination, it won't be able to kill all its children. The best you could do is terminate the immediate children, if you actually created the child pr

Re: [ADVANCED-DOTNET] Issue with COM Interop and Arrays

2004-08-10 Thread Mattias Sjögren
Janis, Any ideas what I am doing wrong? Thank you. A C# int is 32 bits, but a VB6 Integer is only 16 bits. So the equivalent C# type is short, and you should create a short[]. FWIW, you would have catched this error if you had a strongly typed array parameter instead of the generic System.Array.

[ADVANCED-DOTNET] Implementation of XmlDocument.Load() - safe in a web app?

2004-08-10 Thread Matthew
Hi, I've seen many proof-of-concept examples that read XML content in an ASP.NET web page using the XmlDocument class with the Load() method. One version of the Load() method (the most commonly used one) simply takes a string with the file name. I'm wondering if the file is opened with read- shari

[ADVANCED-DOTNET] BinaryFormatter, FormatterAssemblyStyle.Simple and Deserializatio n

2004-08-10 Thread Marsh, Drew
Here's the scenario: We're serializing object graphs with automagic serialization (just the SerializableAttribute), using the BinaryFormatter with the FormatterAssemblyStyle.Simple setting. If the assembly of the object being serialized is not recompiled I can serialize and then deserialize the in

[ADVANCED-DOTNET] Web services and Transaction management ...

2004-08-10 Thread Chak
Hi, Any pointers to this will be helpful. Suppose i have a windows app which does the following in sequence :- 1) Calls FetchMethod-1 of WebService-1 which fetches data from DataBase-1 as XML-1 2) Calls UpdateMethod-2 of webservice2, with XML-1 as method parameter ,which updates DataBase-2 3) C

[ADVANCED-DOTNET] Issue with COM Interop and Arrays

2004-08-10 Thread Janis Braslins
I need to call a method on COM dll from my .NET app that has following VB6 signature: Public Function SizeFan(cfmPoints() As Integer) As String When adding this COM dll to the reference of my .NET project, the signature of the wrapper's SizeFan method looks like: string SizeFan(ref System.Array

[ADVANCED-DOTNET] GnuPG <-> RSACryptoServiceProvider key translation--possible?

2004-08-10 Thread Pardee, Roy
Greetings all, I'm trying to create a .net program that can decrypt files that will be rsa-encrypted with the gpg program (on mac os X, if that's important). I've got hold of a copy of gpg, generated a key pair & sent my public key to my correspondent. I thought I would try to use System.Securit

[ADVANCED-DOTNET] Single-stepping IL code

2004-08-10 Thread Tony Hal
I am new to VC.NET and have tried the whidbey version for a few times. I can't seem to single-step app (written using C#) at the IL level using VC.NET studio. I probably miss something here, so if someone knows how to do this, please let me know. Furthermore, is it also possible single-step it at t

[ADVANCED-DOTNET] IL question: eval stack & machine state

2004-08-10 Thread Tony Hal
I am reading section 12.3 of Partition I on machine state and its relation to eval stack. I am still not clear about their relationships. Can someone help clarify the following: 1. Are the method state and eval stack are actually implemented using the same stack (at the managed native code level )

Re: [ADVANCED-DOTNET] ILASM questions

2004-08-10 Thread Antony
Thanks for response, Serge. -antony === This list is hosted by DevelopMentor® http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.dev

[ADVANCED-DOTNET] Controlling ThreadPool Threads

2004-08-10 Thread Andy Smith
Can anyone tell me if it's possible to use and control a fixed number of ThreadPool threads in my app? Or are ThreadPool threads more of a 'fire- and-forget' kind of scenario? I'm building an MSMQ listener using asynchronous events to get each message, and right now I create a new thread in the th

Re: [ADVANCED-DOTNET] ILASM support lib

2004-08-10 Thread Tony Hal
Thanks for the answers! === This list is hosted by DevelopMentor® http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/cou

Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-10 Thread James Geall
I think this is what you want(outlook compiled); class a { protected void DoStuff(Enum enumValue) { Debug.WriteLine (enumValue.GetType().ToString); Debug.WriteLine (enumValue.ToString); foreach(string name in enumValue.GetNames())

Re: [ADVANCED-DOTNET] Reading an SQL Image with VB .NET

2004-08-10 Thread Chad M. Gross
Looks like the list is down again but you must have sent your reponse to me also since I got it before it appeared on the list. Frans and I said essentially the same thing. Create the separate page and like Frans said with no HTML in it. This is because you can't have that stuff making its way in

Re: [ADVANCED-DOTNET] Large solutions and references

2004-08-10 Thread James Geall
Hi, this is pretty much the same problem as I had :) Our solution is as follows (and comes straight from one of the Ms solution development centre (SDC) who we had in for consultancy on precisely this problem so I guess they use it too): * System Solution containing all projects - used for daily

[ADVANCED-DOTNET] Process.Kill doesn't kill children of spawned processes?

2004-08-10 Thread Stephen Hess
Hi all, I'm trying to use System::Diagnostics::Process to spin off processes (mostly doing builds using devenv.com), watch/store the output, and provide a method for killing that process if desired. It appears that when I call Process.Kill - it will kill the direct process that I spawned, but any

[ADVANCED-DOTNET] serialization with varying class schema

2004-08-10 Thread Tóth Zoltán
Hi, (Sorry for my bad English) I want to develop a windows application (an integrated development environment). The user should be able to edit the document (his/her program), save it, open it. Because of the characteristic of the document type, I can not use XML serialization, a textual represen

Re: [ADVANCED-DOTNET] ILASM support lib

2004-08-10 Thread Jalil Vaidya
>3. Is there a managed code tool for parser generator (like yacc/bison) ? >(The generated parser is preferrably in C#). Mono uses C# port of Jay (which is a Java port of Yacc)[1]. Will that serve the purpose? HTH, Jalil Vaidya [1] http://www.mono-project.com/using/mcs.html

[ADVANCED-DOTNET] How to create a child process in .net

2004-08-10 Thread Rocky Luthria
Hello, I have to create a component in Win32 where a parent process is responsible for creating child process. In normal terminations of parent process I can kill the child process by refering to their process ids or by some other methods. But in abnormal situations e.g. parent process gets kill

Re: [ADVANCED-DOTNET] Best practices: Passing data between Web service providers and consumers

2004-08-10 Thread Paul Gale
Hi Bill, I recommend you read Aaron's Skonnard's article 'The XML Files' from April 2003 in which he talks about web service interop with Java based clients. In essence he says that Datasets should be strongly typed to allow for interop. As a generic Dataset's layout is not known until runtime

Re: [ADVANCED-DOTNET] ILASM support lib

2004-08-10 Thread Andy Knowles
Hi, For 3), have a look at antlr. It's a parser generator implemented in java, c++ and c# (emitting a parser in the appropriate language each time). I've only used the java version, but its very powerful. www.antlr.org Andy - Original Message - From: "Tony Hal" <[EMAIL PROTECTED]> To:

Re: [ADVANCED-DOTNET] Large solutions and references

2004-08-10 Thread Chris Day
> Am I going about this the right way? Does anyone have real > world experience working with a solution this large with lots > of cross subsystem dependencies? Any insight on the subject > is appreciated. We just had the split projects, each person built their own then used file references.

Re: [ADVANCED-DOTNET] ILASM support lib

2004-08-10 Thread Robin Debreuil
> 3. Is there a managed code tool for parser generator (like yacc/bison) ? > (The generated parser is preferrably in C#). Antlr has a C# version, works great... I used it to build a C# compiler [1], though it emits to swf rather than .Net. It parses into a graph structure similar to the CodeDom, b

Re: [ADVANCED-DOTNET] CPU Racing with Idle App

2004-08-10 Thread J. Merrill
I think it's very likely that you're running into the problem discussed here: http://www.alphora.com/tiern.asp?ID=HDCHACK even though the symptoms are not completely identical. I wish I had seen MS acknowledge this issue somewhere, but I'm unaware that they have. At 05:45 PM 7/27/2004, J Donni

Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-10 Thread John Lomnicki
Mattias, I could, but the FrameworkClass.MethodThatDoesStuff() Method is located in a base class, that is compiled in an assembly. Along comes an application developer and wants to define an assembly that derives from FrameworkClass and passes in to the base.MethodThatDoesStuff() an enumeration d

Re: [ADVANCED-DOTNET] Enum as a Parameter

2004-08-10 Thread John Lomnicki
Frans, I've gone all over the System.Enum definitions. I think the root of the issue is that when you specify a parameter in a method call you are essentially supplying a type, but the FrameworkClass does not understand the type that is defined after it is built and shipped. Any ideas? - John -

Re: [ADVANCED-DOTNET] Reading an SQL Image with VB .NET

2004-08-10 Thread Bryan Clauss
Frans, Chad, Thanks for the reply, but I am not sure if I understand your answers. Chad wrote: > Use the img tag: > Then in your getimagepage.aspx get the image bytes and perform a > Response.BinaryWrite() and set the ContentType to whatever is > appropriate for the image being pulled from th

Re: [ADVANCED-DOTNET] Missing callbacks from asynchronous sockets?

2004-08-10 Thread John Davis
Do a WaitOne on the WaitHandle in the IAsyncResult, returned from BeginSend, before calling EndSend. Or pass a callback to the BeginSend, and then call EndSend within the callback. A lot of the current socket documentation is just plain wrong. I reported it a couple weeks ago, and got a respo

[ADVANCED-DOTNET] Rogue vs7jit.exe processes

2004-08-10 Thread Baudouin, Andrew
Does anyone know how I can kill these processes? I have stopped the debugger in the IDE, yet sometimes these processes stay open. After a few days of work I might have 7 or 8 vs7jit.exe processes stuck open. Windows says "access denied" when trying to kill these processes even with aspnet_wp.exe

Re: [ADVANCED-DOTNET] Large solutions and references

2004-08-10 Thread Julian Sitkewich
Jesse, You may want to try Build.Net: http://serial.n6k.com/build.net/ It recursively searches a directory for VS.NET project files to build. Any *.csproj OR *.vbproj that is found is parsed into an object model and added to the build list. Build.Net will attempt to build any dependencies that do

Re: [ADVANCED-DOTNET] ILASM And Whidbey

2004-08-10 Thread Mattias Sjögren
Steve, Another related question, if I may. How has the metadata schema been changed to accomodate generics? There are three new metadata tables; GenericParam, GenericParamCostraint and MethodSpec. The easiest way to see what they contain is to run Metainfo /schema or Ildasm /metadata=schema on a