We are looking at using the WinFormsControlHelpers.h (thank you very
much, Chris Sells and Mark Boulter :) to host some of our WinForms
controls in an old MFC app. It is working very well aside from one
small issue which is tab order.
MFC pays no attention to the TabIndex property (just using the
I take it for granted that I expressed clearly enough in my last message, It seems I
am wrong :(
I use 3 different languages to develop the same functions to compare different
performance
of the languages.
for example to test the performance of socket operations :in c#
DateTime start, end
TimeS
What is the exact text of the exception that you catch when you execute
the delete operation?
Peer code review time:
> connectionString = "Provider=SQLOLEDB;Data
> Source=Ravi;Initial Catalog=Master;" +
> "Integrated Security=SSPI;";
>}
>
>OleDbConnection connection = new OleDbC
> This is true, but the presence of code turns out to be irrelevant.
Yes, I should have made this clearer. Of course the presence of code does
have a one-off cost which you will pay when the assembly gets loaded and
when methods get JITted, but as you say this does not affect the size of
each obj
I would use reflection to see if there were any accessible constructors
of foo.bar that took a single integral parameter...benefits being that
this would work for non-COM .net objects as well.
Justin E. Pitts
Technical Consultant
Data and Application Integration Services
Big Lots - World's Best Ba
This is true, but the presence of code turns out to be irrelevant. An
object with no data AND no code will also consume memory. Exactly the
same amount of memory will be consumed in either case.
The type header pointer is the same size for all objects - it's just a
pointer! And the sync block in
It gets worse. Look at the following code:
using System;
class Class1
{
static void Main(string[] args)
{
ArgIterator iter = new ArgIterator(Foo(__arglist(1, 2, 3)));
}
static RuntimeArgumentHandle Foo(__arglist)
{
return __arglist;
}
}
This is effectively the same as return
> It's hardcoded in the compiler. If you've got the Rotor
> sources installed, the check is done in TYPESYM::isSpecialByRefType().
> http://dotnet.di.unipi.it/Content/sscli/docs/doxygen/csharp/sy
mmgr_8cpp-
source.html#l02546
Hmmm. I really wonder why they didn't simply add an attribute t
I'd suggest you should use SQLDMO for database management like this. You
can use SQLDMO straight from .NET and it has handy methods for
dropping/creating/attaching etc databases and other sql server
maintainance tasks.
FB
> I am working on c# I need a help on Command obect.
> I am creating one d
I am working on c# I need a help on Command obect.
I am creating one database ,adding a table adding a record and I am
trying
to delete the database .Its always telling that connection is opened.
I can give you the code pls tell me any wrong.
I dont know how to destroy Command object completely.
I
It's hardcoded in the compiler. If you've got the Rotor sources
installed, the check is done in TYPESYM::isSpecialByRefType().
http://dotnet.di.unipi.it/Content/sscli/docs/doxygen/csharp/symmgr_8cpp-
source.html#l02546
Regards,
Jeroen
>
> -Original Message-
> From: Frans Bouma [mailto:[E
Every object carries around a vtable pointer (because System.Object has
virtual functions) and a sync block index. So yes, instantiating even an
object with no data will consume memory.
--
Ivan Towlson
White Carbon
-Original Message-
From: Moderated discussion of advanced .NET topics.
[
> I wrote:
>
> > I would guess that it has not so much to do with ArgIterator being a
> > special type, but that in this instance, iterator itself is stack
> > allocated. Frankly, I don't think this requires documentation. We
> > all know that you can't return a stack allocated struct from a
>
Hi,
I installed a couple of my components in the GAC using the following
command.
gacutil /nologo /if C:\EPM\Bin\BTA.EPM.Agent.dll
and uninstalled using
gacutil /u BTA.EPM.Agent
This worked fine but today I came up with this problem. It says something
about the Windows Installer but I have
The COM platform provided the moniker mechanism to create objects in a certain fashion
and initialize those objects a certain way. This was quite convenient when
representing the object specification as a string.
If I want a user to be able to configure a .net object construction, how would I g
Does anyone know what factors affect the memory size an object will
consume by simply creating a new instance? I know that member-level value-
types will consume memory respective of their data type (Int32 consumes 4
bytes, etc.). What about code? Does a class that contains no member
variables, but
Ravi
Thx for the response: I could not see the file you mentioned to unzip from,
so I cannot compare my solution and yours, but I have also played around
over the weekend, and here is my solution: (In my limited test environment,
it seemed to work 100%)
I create a factory type class with the abil
I am trying to create a new appdomain and load an assembly into it using
the AppDomain.Load() method. When I try the following code
AppDomainSetup domainSetup = new AppDomainSetup();
domainSetup.ApplicationBase = @"";
domainSetup.ApplicationName = "Component";
It's impossible to tell what you mean by this message. It's possible
that you're saying that Java is 10 times slower than VC, or possibly
that it's 10 times faster. (I'm guessing though that you mean C# is in
the middle.)
Where does the TCP echo server come into this? What are your tests
actuall
Ravi-
I'm assuming you tried to attach something to the message, but I
think you can't add attachments in the discussion group messages.
Anyway, I look forward to your example...
-ed
-Original Message-
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] O
I wrote:
> I would guess that it has not so much to do with ArgIterator being a
> special type, but that in this instance, iterator itself is stack
> allocated. Frankly, I don't think this requires documentation. We
> all know that you can't return a stack allocated struct from a
> function.
>
21 matches
Mail list logo