Re: [ADVANCED-DOTNET] ASP.NET AppDomains

2003-07-30 Thread Andy Edmiston
Brian, My first question would be for what purpose? Changing the Web Config file for an ASP.NET application will cause a second Instance in a new App Domain to be created and furthermore new sessions are handled by the second instance. Andy -Original Message- From: Moderated discus

[ADVANCED-DOTNET] Merging Tables in a Dataset

2003-07-30 Thread adonis
I have created a stored procedure in Sql Server which uses a cursor and returns multiple identical(schemawise) resultset. When this stored procedure is used to populate a dataset, naturally multiple datatables are created. I need to merge the data avaiable in these multiple tables of the dataset in

Re: [ADVANCED-DOTNET] AppDomain vs Process: which is faster ?

2003-07-30 Thread Rick Byers
I'm assuming you're talking about remoting here. Its true a remoting call into another AppDomain in the same process doesn't require a process context switch and also saves some of the overhead of copying the serialized data from one place to another. However, I'm guessing the savings of this is

Re: [ADVANCED-DOTNET] Unable to use Custom Attribute With String Array Parameter in Constructor

2003-07-30 Thread Patrick Steele
Michael, I got a response on this from Paul Vick [1], Technical Lead on VB.NET at Microsoft: "Custom attributes with Object or array parameters are not CLS compliant and not supported in VB.NET. However, as you note, C# does support them. We are considering removing this restriction in a future r

Re: [ADVANCED-DOTNET] windows service memory footprint

2003-07-30 Thread Paulo Jorge F. Sacramento
I hope that's true. I've had the same problem with my services, which are written in C#. Mine are even worse. I have one that takes up 23 MB. It's using Remoting, AppDomains, Threads, XML, some Reflection also, and other things, but nothing that I'd think would occupy so much memory. The reason I'm

Re: [ADVANCED-DOTNET] windows service memory footprint

2003-07-30 Thread Russell McClure
Courtney, Just a thought (I'm assuming you are using SQL Server): you could actually leverage the SQL Server Agent to do what you describe. That way you wouldn't even need your own service. All you would need to do is to create a Job under the SQL Server Agent and specify the times that you want

[ADVANCED-DOTNET] BCP Upload Numeric field problem

2003-07-30 Thread Virat
Hi there I am doin BCP using SQLDMO. It imports rows but gives problem for Numeric, Date, Integer fields. Doest improper data gives some junk data. Whereas for Character fields data is imported properly. Here is my .fmt file 8.0 3 1 SQLCHAR 0 0 "\t" 0 SecurityCode SQL_Latin1_General_Cp437_BIN 2

Re: [ADVANCED-DOTNET] AppDomain vs Process: which is faster ?

2003-07-30 Thread Griffiths, Ian
Could you explain more about what your experiment was actually doing and share the results? Cross-AppDomain calls within a single process to share a thread, so the overheads will be lower. But there are still overheads - it has to go through a fair amount of infrastructure in .NET to switch AppDo

Re: [ADVANCED-DOTNET] windows service memory footprint

2003-07-30 Thread Griffiths, Ian
.NET processes will tend to grow to what looks like an alarmingly large size unless there is a reason for them to shrink. The CLR does actually keep track of the amount of memory being used system-wide, and if other processes start to demand more memory, the CLR will trigger a garbage collect in y

[ADVANCED-DOTNET] windows service memory footprint

2003-07-30 Thread Courtney Smith
Hello, I'm taking a stab at windows services for the first time. My windows service is written in vb.net (not my lang of choice but I have to go with the flow of the department). It is running a once a day timer that calls several stored procs and depending on the size of the returned values(s)

[ADVANCED-DOTNET] AppDomain vs Process: which is faster ?

2003-07-30 Thread wycklk
According to Microsoft, threads can execute across AppDomains without the overhead associated with inter-process communication and process context switch (vs thread context switch). I did an experiment to verify the above. However, I found there is no obvious performance gain when I use 2 AppDomai

[ADVANCED-DOTNET] ASP.NET AppDomains

2003-07-30 Thread Brian Berns
Is it possible to create a second instance of a running ASP.NET instance? I would like to end up with two independent AppDomains running the same application on a single box. Additionally, all existing sessions should continue to be served by the original instance while new sessions are served b

[ADVANCED-DOTNET] Urgent problem with Event triggering order in Server Control

2003-07-30 Thread Julian Voelcker
I am trying to expand my server control knowledge and am re-developing some forums that I have written so that they operate as a single server control. I am having a problem with the order that events are triggered. Pretty well all the functionality of the control is in the CreateChildControls me

[ADVANCED-DOTNET] HTTP Module and the Timer

2003-07-30 Thread Joel Cade, MCSD
I'm attempting to monitor the progress of a file upload by comparing the Request.TotalBytes and Request.ContentLength via a timer event in an HTTP Module. It seems to be locking up. Am I on the right track? Will the timer work with the HTTP Module in this fashion, or does the module interfer wit

[ADVANCED-DOTNET] Type incompatibility between 1.0 and 1.1

2003-07-30 Thread Gibson, M (Mark)
I am getting a System.InvalidCastException under the following scenario: Server (hosted by .NET 1.0) --- public object Server.GetObject() { returns a System.Data.DataSet; } WebService (hosted by .NET 1.1) --- public object WebService.GetObjec