> Is it possible to read the file from the cache, once it is read ...till the
> browser is refreshed?
>
I you want to read cached XML, keep in mind that an instance of XmlTextReader
can be constructed from any stream, including a MemoryStream. Is that what
you're wanting to do?
___
Following suggestions in Chris Sell's article about accessing properties
of a form using multiple threads, I decided to implement this in my
program. I first made up a quick test program to make sure I understood
everthing that was happening. After successfully implementing the test
program (Which
Hi,
We have a web application where users will be adding compiled
user controls into the site. (Ascx + *.dll)
I need to be able to catch and handle compiler errors in the main web
project.
When I drill down, way down, in the exception object I can see the
error message that is shown if there i
> As I understand XMLTextReader is a non-cached way of reading an XML
file,
> where I will have to load the file first.
>
> Is it possible to read the file from the cache, once it is read
...till
> the
> browser is refreshed?
>
> Any pointers to the above would be of great help.
I'm sorry, I don'
Yogesh Shetty wrote:
> Can this be optimized further :-)
Type-safe collections from CollectionGen should (I think) eliminate the last
bottleneck (which isn't benchmarked here), which is casting from Object to
real type when retrieving elements.
Brad
--
Read my web log at http://www.quality.nu/
Hi,
I don't know on what list I should post this message. If this is not the right
list, please excuse me.
This is how I'm trying to use DTOs to transfer data between layers in a
distributed system and I'm sure there are a lot of mistakes in it. Any ideas about it
are very welcomed. (T
Hi all,
As I understand XMLTextReader is a non-cached way of reading an XML file,
where I will have to load the file first.
Is it possible to read the file from the cache, once it is read ...till the
browser is refreshed?
Any pointers to the above would be of great help.
Thanks & Regards,
Aj
Thx for the response...
Arraylist with 20 lakhs record but this time with class reference
VC++ - 93 ms
Silicon Graphic List - GPF
C# (Debug Version ) - 110 ms
C# (Release Version ) - 93 ms
Can this be optimized further :-)
Regards
Yogesh Shetty
Team COE
Financial Technologies (India) Ltd.
U
looks more promising.
thanks, werner
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
> Can this be optimized further ?? I know this is the price we have to
> pay for using managed code, once container is fully populated we
> performed a search,traversing,hot spot insertion etc... the difference
> between .NET & VC++ was negligible but SGL was at its best.
> unfortunately SGL is s
However I would still expect considerably worse performance from the CLR
solution because it will be boxing everything that goes in there.
So for this benchmark, what are you trying to measure? Do you only care
about the performance of a container of ints, or are you trying to infer
something mo
We have built a small windows service using SQL Server WMI Provider,
Every time a connection is established a WMI async event is triggered by
SQL Server WMI Provider and this trigger is handled by a custom
component. We do some custom business logic check and if the user is not
a legitimate user t
PLEASE - you benchmark two different things :-)
C#:
ArrayList ElementObject= new ArrayList();
C++:
VECTORINT intList;
intList.reserve(500L);
I strongly suggest you do reserve the space in the ArrayList, too.
Currently ArrayList (in the C# code) gets expanded multiple tim
HI,
We have performed a benchmark for the following collection
1.VC++ List collection
2.Silicon Graphic List collection ( VC++ )
3..NET ArrayList collection
We populated about 50 lakh records and below are our observation
1.VC++280 ms
2.SGL
Yes, you're correct -- this can cause issues with versioning. Especially
when referenced from another module. Consider, since the constant is
embedded directly in the metadata, you no longer require the referenced
module *at all* -- changing the original value will have no effect until
all referen
Noam,
Sorry for the unfinished example... Just for completeness (I still have to
get used to this web interface. The tab key does not quite act as I would
want it to...):
public class MyConstants
{
public const int TweeEnVeertig = 42;
public const string HalloWereld = "HelloWorld";
}
class Qu
There is an equivalent, use const. (Note that a const can not be static)
According to the C# lang spec at [1]:
"Whenever an expression is of one of the types listed above and contains
only the constructs listed above, the expression is evaluated at compile-
time. This is true even if the expressio
Noam,
When you use constants the compiler will embed (substitute) their values
at compile time in the IL , so I presume that would be the equivalent.
I.e.:
const int THIS_VAL = 10 ;
const int MAX_THAT = 255 ;
Then, if you reference THIS_VAL or MAX_THAT in your code like so...
if( myValue >
I don't know the details of your design, but perhaps you can use ordinary
(non-singleton) objects that simply maintain their state in a shared, machine-wide
medium (eg: a file with a well-known pathname).
Of course you'd need to synchronize access to the file... but depending on your usage
st
Some time ago, Noam Arbel wrote...
>#define THIS_VAL 10
>#define MAX_THAT 255
>
>One solution is to create a class with all static const variables (it that
>even allowed?). But there are 2 issues with that; one is that the
>assignment is done at runtime (or is the compiler smart enough to assign
Some time ago, Sills, Adam wrote...
>Are both instances of VS.NET using the same developer profile?
Yes, "Visual C++ 6.0 developer".
-kkm
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.deve
No preprocessor in C#. So your out of luck for traditional defines. I
usually make an internal static class with the consts...
Thanks,
Shawn Wildermuth
[EMAIL PROTECTED]
> -Original Message-
> From: Moderated discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED]] On Behalf O
> One solution is to create a class with all static const variables (it
that
> even allowed?).
This is pretty much exactly what const fields are for. E.g.
class Foo
{
public const int THIS_VAL = 10;
public const int MAX_THAT = 255;
static void Main()
{
Console.WriteLine(MAX_THA
> From: "Craig Lee" <[EMAIL PROTECTED]>
>
> This was happening to me as well, and I discovered that ASP.NET
> was throwing this exception whenever I made a call to
> Response.Redirect( "",true ). The boolean tells it to cancel any
> current output - this seemed to be where the exception was comin
24 matches
Mail list logo