Re: forms Control collections

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Klaus Löffelmann (fornewsgroups_at_loeffelmann.de)
Date: 04/02/04


Date: Sat, 3 Apr 2004 01:31:17 +0200

VJ,

don't mix up start (also as "release build") and "start without debugging".
The release build in the vs dev environment is still debuggable (even if
only with the disassembler), and therefore slower. If you start without
debugging, how fast (or slow) is it then?
Could you also post some code to see, if we can speed things up there?
What is the time, when you run the program on its own (without the
environment)?
By the way: Are you catching and possible exception in the loop? If so, then
you should really try to run the program in not-debug-mode, since
exceptions, while running the program in the environment, take about 15
seconds to come up - no matter if you catch them, or not.

Klaus

PS: It's already half one, here, so I will only come back to you in the
morning (GMT+1).

"VJ" <vijaybalki@yahoo.com> schrieb im Newsbeitrag
news:uJNI1SQGEHA.2976@TK2MSFTNGP10.phx.gbl...
> I am testing in Release build.. I was just saying 40 Controls for a
> example.. But we actually don't know the run-time controls numbers.. my
test
> case was about 40 controls.. and it took about 20sec to find the control,
> and I am on P-4 512 Dell Laptop.. Is this normal?
>
> VJ
>
>
> "Klaus Löffelmann" <fornewsgroups@loeffelmann.de> wrote in message
> news:eRGr9KQGEHA.1368@TK2MSFTNGP11.phx.gbl...
> > VJ,
> >
> > it shouldn't be slow for "only" 40 controls. Try starting the program
with
> > "start without debugging" (don't know the exact caption of the menue
entry
> > in the "debug" menue, since I use the German version), and see how the
> speed
> > turns out then.
> >
> > Klaus
> >
> > "VJ" <vijaybalki@yahoo.com> schrieb im Newsbeitrag
> > news:O2SwC2PGEHA.2808@TK2MSFTNGP10.phx.gbl...
> > > I have a bunch of controls in my Form. Is there a way to locate a
> control
> > by
> > > using its name? , something like in ASP where they use
> > > Controls.FindControl(string name). I know using ForEach to loop
through
> > and
> > > locate a control is a option, but that seems to be slow when I have
like
> > 40
> > > controls on a form.
> > >
> > > Thanks
> > > VJ
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: How to get Interface reference counting in ATL
    ... component is actually called from an ASP page. ... application in production environment, not step by step. ... Debugging in an production environment is a very bad idea, ...
    (microsoft.public.vc.atl)
  • Re: Emacs vs GPS vs Eclipse, Ada vs Lisp vs Lua vs Java
    ... I don't expect Emacs to do that. ... Are you saying GPS supports that? ... a huge help when debugging GtkAda applications.) ... tools) as the Emacs environment. ...
    (comp.lang.ada)
  • Re: Debugging: Am I a dreamer. . . ?
    ... Are you objecting to the use of the C function printf() within a embedded ... environment for debugging or are you objecting to the use of serial port ... software UART for debugging output. ... This is in an hobbyist environment, but yes the UART driver code is included ...
    (comp.arch.embedded)
  • Re: DesignBAIS/Dave Bryant
    ... a REAL debugging environment for Visage, ... similar to the inbuilt trace/debug facilities we provide in Visage (we ... the Visage client side debugging facility has always offered this ...
    (comp.databases.pick)
  • Re: Help with CreateProcess problem
    ... This is very simple debugging. ... CreateProcess call you are making requires ASCII or wide characters? ... not correctly inherit the environment. ...
    (microsoft.public.win32.programmer.kernel)