Visual Basic.NET My Application "Poor Performance"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joel Vazquez

    Visual Basic.NET My Application "Poor Performance"

    Visual Basic.NET Application RunTime Crashes and Stalls

    Im a newbie if you could say in .NET ive been working with it the past
    3 months and have done lots of things with it, without any prior
    knowledge.

    I have a few question regarding the stability of my application.
    I have a synchronization application that connects to a service and
    send the results to SQL Server 2000. I got all my code in just one
    form.

    This are the functions i have.
    GetOrders()
    GetPayments()
    SyncCustomers()
    SyncProducts()
    SyncInvoices()
    SyncBalances()
    SetDate()

    So i got a Synchronize Button and i execute them in that exact order.

    Private Sub btnSync_Click(B yVal sender As System.Object, ByVal e As
    System.EventArg s) Handles btnSync.Click
    'Initizalize Functions
    btnSync.Enabled = False
    GetOrders()
    GetPayments()
    SyncCustomers()
    SyncProducts()
    SyncInvoices()
    SyncBalances()
    SetDate()
    End Sub

    This module handle a lot of data for example i could have 1350 Orders
    for a whole month, have 1000 Payments, have 5000 customers and so on.

    So as you can see It handles a lot of Data.

    Ok the Main Problem when the application executes you cannot use the
    PC not even touch a damn mouse cause if you do the Form disappears and
    the Application Crashes. Dont get me wrong if I dont use the PC it
    works well and it can finish in about 15 to 30 minutes depending on
    the data and internet connection.

    IS there a way to call this functions better for a nicer performace?

    any help is greatly appreciated.

    thank you

  • Robin Tucker

    #2
    Re: Visual Basic.NET My Application "Poor Performance&quo t;

    You might want to consider executing your data operations on a seperate
    thread, to avoid locking up the GPU during long operations.

    "Joel Vazquez" <007@jamesbond. com> wrote in message
    news:cb96nvs4e0 bh3soog5p3d1jen of4h9t8gq@4ax.c om...[color=blue]
    > Visual Basic.NET Application RunTime Crashes and Stalls
    >
    > Im a newbie if you could say in .NET ive been working with it the past
    > 3 months and have done lots of things with it, without any prior
    > knowledge.
    >
    > I have a few question regarding the stability of my application.
    > I have a synchronization application that connects to a service and
    > send the results to SQL Server 2000. I got all my code in just one
    > form.
    >
    > This are the functions i have.
    > GetOrders()
    > GetPayments()
    > SyncCustomers()
    > SyncProducts()
    > SyncInvoices()
    > SyncBalances()
    > SetDate()
    >
    > So i got a Synchronize Button and i execute them in that exact order.
    >
    > Private Sub btnSync_Click(B yVal sender As System.Object, ByVal e As
    > System.EventArg s) Handles btnSync.Click
    > 'Initizalize Functions
    > btnSync.Enabled = False
    > GetOrders()
    > GetPayments()
    > SyncCustomers()
    > SyncProducts()
    > SyncInvoices()
    > SyncBalances()
    > SetDate()
    > End Sub
    >
    > This module handle a lot of data for example i could have 1350 Orders
    > for a whole month, have 1000 Payments, have 5000 customers and so on.
    >
    > So as you can see It handles a lot of Data.
    >
    > Ok the Main Problem when the application executes you cannot use the
    > PC not even touch a damn mouse cause if you do the Form disappears and
    > the Application Crashes. Dont get me wrong if I dont use the PC it
    > works well and it can finish in about 15 to 30 minutes depending on
    > the data and internet connection.
    >
    > IS there a way to call this functions better for a nicer performace?
    >
    > any help is greatly appreciated.
    >
    > thank you
    >[/color]


    Comment

    • Kevin Yu

      #3
      RE: Visual Basic.NET My Application &quot;Poor Performance&quo t;

      Hi Joel,

      Try to start the synchronization in anther thread. So the main thread can
      go on without waiting for the result.

      For more information about starting a new thread, please refer to


      frlrfsystemthre adingthreadclas stopic.asp

      HTH

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

      --------------------
      | From: Joel Vazquez <007@jamesbond. com>
      | Subject: Visual Basic.NET My Application "Poor Performance"
      | Date: Thu, 25 Sep 2003 13:28:24 -0400
      | Message-ID: <cb96nvs4e0bh3s oog5p3d1jenof4h 9t8gq@4ax.com>
      | X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
      | MIME-Version: 1.0
      | Content-Type: text/plain; charset=us-ascii
      | Content-Transfer-Encoding: 7bit
      | Newsgroups: microsoft.publi c.dotnet.langua ges.vb
      | NNTP-Posting-Host: 64.152.137.138
      | Lines: 1
      | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
      | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:141223
      | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
      |
      | Visual Basic.NET Application RunTime Crashes and Stalls
      |
      | Im a newbie if you could say in .NET ive been working with it the past
      | 3 months and have done lots of things with it, without any prior
      | knowledge.
      |
      | I have a few question regarding the stability of my application.
      | I have a synchronization application that connects to a service and
      | send the results to SQL Server 2000. I got all my code in just one
      | form.
      |
      | This are the functions i have.
      | GetOrders()
      | GetPayments()
      | SyncCustomers()
      | SyncProducts()
      | SyncInvoices()
      | SyncBalances()
      | SetDate()
      |
      | So i got a Synchronize Button and i execute them in that exact order.
      |
      | Private Sub btnSync_Click(B yVal sender As System.Object, ByVal e As
      | System.EventArg s) Handles btnSync.Click
      | 'Initizalize Functions
      | btnSync.Enabled = False
      | GetOrders()
      | GetPayments()
      | SyncCustomers()
      | SyncProducts()
      | SyncInvoices()
      | SyncBalances()
      | SetDate()
      | End Sub
      |
      | This module handle a lot of data for example i could have 1350 Orders
      | for a whole month, have 1000 Payments, have 5000 customers and so on.
      |
      | So as you can see It handles a lot of Data.
      |
      | Ok the Main Problem when the application executes you cannot use the
      | PC not even touch a damn mouse cause if you do the Form disappears and
      | the Application Crashes. Dont get me wrong if I dont use the PC it
      | works well and it can finish in about 15 to 30 minutes depending on
      | the data and internet connection.
      |
      | IS there a way to call this functions better for a nicer performace?
      |
      | any help is greatly appreciated.
      |
      | thank you
      |
      |

      Comment

      Working...