Re: New Oject() {} vs. New Object(-1) {}



Thanks for the replies (and for tolerance of the typo).

I had seen no difference in the debugger, but the guidance from microsoft
was to use "New Object(-1) {}" to create an empty array -- the form "New
Object() {}" is more intuitive...

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message
news:utrmzcYRFHA.2228@xxxxxxxxxxxxxxxxxxxxxxx
> "stand__sure" <stand__sure@xxxxxxxxxxx> schrieb:
>> This has bugged me for some time.
>>
>> Is there any "behind the scenes" difference between the following two
>> snippets?
>> Dim obj1 As Object = New Oject() {}
>> Dim obj2 As Object = New Object(-1) {}
>
> After some corrections ('obj1()', 'obj2()', 'Oject' -> 'Object') there is
> no difference, not even behind the scenes, between the two lines.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>


.



Relevant Pages

  • Re: New Oject() {} vs. New Object(-1) {}
    ... I had seen no difference in the debugger, but the guidance from microsoft ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Microsoft Security Bulletin MS02-024
    ... Authentication Flaw in Windows Debugger can Lead to ... Software: Microsoft Windows ... A successful attack requires the ability to logon interactively to the ... systems and terminal servers. ...
    (microsoft.public.security)
  • RE: Problem with MFC extension DLL, threads, and .Net loader lock
    ... problem occurs outside the VS2005 debugger? ... that use Microsoft Foundation Classes version 8.0 in one or more DLL files. ... How about that mixed DLL, how do you use it in your application? ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Error Message- Ap has generated an excep- Help is Appreciated
    ... People who show unusual dedication to the newsgroup are recognized by Microsoft and given the title MVP, but no money. ... "Updnotif.exe is the Lacerte Internet Update notifier that runs in your system tray to notify you when Internet Updates are available. ... When I Click Cancel the following appears: UpNotif.Exe.-No Debugger found. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Threads Per Process. Help!
    ... I just discovered that the "WaitForDebugEvent" has a limit of 64 ... Copyright Microsoft Corporation. ... All rights reserved. ... Does your debugger get notified for ...
    (microsoft.public.windowsce.platbuilder)