Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Release and Debug issues.

Release and Debug issues.

Scheduled Pinned Locked Moved Windows Forms
announcementdatabaseoraclewinformscom
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SPanicker
    wrote on last edited by
    #1

    Application: I have a Windows forms application which interacts with COM components to update data in the Oracle DB. Whenever I try to update the data based on a condition it never works in the full run using the release exe. But when I try the same thing through step by step debugging of the release exe, it works fine and updates the DB. This appears quite strange and inconsistent. Can someone throw light on this?

    Regards, SPanicker.

    L S 2 Replies Last reply
    0
    • S SPanicker

      Application: I have a Windows forms application which interacts with COM components to update data in the Oracle DB. Whenever I try to update the data based on a condition it never works in the full run using the release exe. But when I try the same thing through step by step debugging of the release exe, it works fine and updates the DB. This appears quite strange and inconsistent. Can someone throw light on this?

      Regards, SPanicker.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      SPanicker* wrote:

      Whenever I try to update the data based on a condition it never works in the full run using the release exe.

      SPanicker* wrote:

      Can someone throw light on this?

      Does the information in your applications logging data suggest anything?

      led mike

      1 Reply Last reply
      0
      • S SPanicker

        Application: I have a Windows forms application which interacts with COM components to update data in the Oracle DB. Whenever I try to update the data based on a condition it never works in the full run using the release exe. But when I try the same thing through step by step debugging of the release exe, it works fine and updates the DB. This appears quite strange and inconsistent. Can someone throw light on this?

        Regards, SPanicker.

        S Offline
        S Offline
        Scott Dorman
        wrote on last edited by
        #3

        You may be running in to a case where the runtime is being too agressive and running a GC too soon. How are you acessing the COM components? If you're doing this in a managed wrapper, it should implement IDisposable and include calls to GC.KeepAlive() in the appropriate functions.

        Scott Dorman

        Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]


        Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

        S 1 Reply Last reply
        0
        • S Scott Dorman

          You may be running in to a case where the runtime is being too agressive and running a GC too soon. How are you acessing the COM components? If you're doing this in a managed wrapper, it should implement IDisposable and include calls to GC.KeepAlive() in the appropriate functions.

          Scott Dorman

          Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]


          Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

          S Offline
          S Offline
          SPanicker
          wrote on last edited by
          #4

          Mike/Dorman thnx for the great inputs. I have looked into all of these issues but I find no clue why this is happening. Is this some kind of weird inconsistency which is particular to .NET 2.0+Win2000 I am using???

          Regards, SPanicker.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups