need traceback from "has encountered an error and must close"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?Um9iZXJ0IFN0eW1h?=

    need traceback from "has encountered an error and must close"

    Hello All,
    I am new to these forums and reasonably new to Visual Basic.net.
    I have been converting a couple of visual basic 6 programs to VB.NET.
    The programs began failing under windows Vista, so I used the facilities
    of Visual Studio 2005 to convert them to .NET and then cleaned up the
    errors. The applications now use both Flexgrid and the printing compatablity
    library.

    The applications run great under Vista (where they were compiled) and XP.
    Windows 2000 is somewhat more problematic. On some machines they
    work and others they get the dreaded "has encountered and error and must
    close message". The windows 2000 machines have both .net 1.1 and .net 2.0
    loaded and all windows update maintenance applied. The error report shows
    that an "invalid operation" occured and lists the modules loaded.

    If I could get a resonable traceback, maybe I could see what is missing
    on the troubled machines. Either that or change my code to avoid the
    problem.

    Is there a way to get more information out of the error report? A traceback
    to
    where it was in my program would be nice.

    Thank you for any advice you can offer.


    --
    Robert Styma
    Principal Engineer (DMTS)
    Alcatel-Lucent
  • Cor Ligthert[MVP]

    #2
    Re: need traceback from "has encountered an error and must close"

    The least you can do is to set a Try catch block around the failing code
    something as

    \\\
    Try
    here is my failing code
    Catch ex as exception
    debug.writeLine ex.ToString
    end try
    ///

    The error will then be showed in your output window.

    As a hint, try to get as soon to replace your msflexgrid by a datagridview,
    as the msflexgrid is only giving trouble in Net. (It is not in the offical
    VB namespace of Net but in the so called compatible namespace).

    Cor


    "Robert Styma" <rollingbigbob@ newsgroup.nospa mschreef in bericht
    news:59674EB5-3676-4BAE-BC6E-1B6DF3909D1A@mi crosoft.com...
    Hello All,
    I am new to these forums and reasonably new to Visual Basic.net.
    I have been converting a couple of visual basic 6 programs to VB.NET.
    The programs began failing under windows Vista, so I used the facilities
    of Visual Studio 2005 to convert them to .NET and then cleaned up the
    errors. The applications now use both Flexgrid and the printing
    compatablity
    library.
    >
    The applications run great under Vista (where they were compiled) and XP.
    Windows 2000 is somewhat more problematic. On some machines they
    work and others they get the dreaded "has encountered and error and must
    close message". The windows 2000 machines have both .net 1.1 and .net 2.0
    loaded and all windows update maintenance applied. The error report
    shows
    that an "invalid operation" occured and lists the modules loaded.
    >
    If I could get a resonable traceback, maybe I could see what is missing
    on the troubled machines. Either that or change my code to avoid the
    problem.
    >
    Is there a way to get more information out of the error report? A
    traceback
    to
    where it was in my program would be nice.
    >
    Thank you for any advice you can offer.
    >
    >
    --
    Robert Styma
    Principal Engineer (DMTS)
    Alcatel-Lucent

    Comment

    • Jeffrey Tan[MSFT]

      #3
      Re: need traceback from &quot;has encountered an error and must close&quot;

      Hi Cor,

      Thank you. However, it seems that I can not find the FlexGrid control in
      Microsoft.Visua lBasic.Compatib ility.VB6 namespace:
      Gain technical skills through documentation and training, earn certifications and connect with the community

      .vb6.aspx

      Best regards,
      Jeffrey Tan
      Microsoft Online Community Support
      =============== =============== ===========
      Delighting our customers is our #1 priority. We welcome your comments and
      suggestions about how we can improve the support we provide to you. Please
      feel free to let my manager know what you think of the level of service
      provided. You can send feedback directly to my manager at:
      msdnmg@microsof t.com.

      This posting is provided "AS IS" with no warranties, and confers no rights.


      Comment

      • Jeffrey Tan[MSFT]

        #4
        Re: need traceback from &quot;has encountered an error and must close&quot;

        Oh, no one loses in technical discussion :-). Also thank you for your great
        contribution in the MSDN newsgroup.

        Best regards,
        Jeffrey Tan
        Microsoft Online Community Support
        =============== =============== ===========
        Delighting our customers is our #1 priority. We welcome your comments and
        suggestions about how we can improve the support we provide to you. Please
        feel free to let my manager know what you think of the level of service
        provided. You can send feedback directly to my manager at:
        msdnmg@microsof t.com.

        This posting is provided "AS IS" with no warranties, and confers no rights.

        Comment

        • Jeffrey Tan[MSFT]

          #5
          Re: need traceback from &quot;has encountered an error and must close&quot;

          Hi Robert,

          Thanks for your confirmation. Glad to know that you finally got it work. It
          is cool that the performance also boosts.

          If you need further help, please feel free to post, thanks.

          Best regards,
          Jeffrey Tan
          Microsoft Online Community Support
          =============== =============== ===========
          Delighting our customers is our #1 priority. We welcome your comments and
          suggestions about how we can improve the support we provide to you. Please
          feel free to let my manager know what you think of the level of service
          provided. You can send feedback directly to my manager at:
          msdnmg@microsof t.com.

          This posting is provided "AS IS" with no warranties, and confers no rights.

          Comment

          Working...