3 Replies Latest reply on Apr 5, 2004 7:49 PM by 82532

    OSession Memory Leak

    418417
      I’m trying to use oo4o in a VC++ application, but I have a memory leak which seems to originate with the creation of an OSession object.
      In my Application class, I call OStartup, create an OSession and then connect to my database using ODatabase. Do some processing and when finished call OShutdown.
      When running my application in debug mode, the IDE informs me that there is memory leak, I have tracked the use of the particular memory address to the line ‘OSession defsess(0);’

      Details of the error follows:-
      Detected memory leaks!
      Dumping objects ->
      {69} normal block at 0x00375010, 1368 bytes long.
      Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      {66} normal block at 0x00372C78, 7 bytes long.
      Data: <XP1800 > 58 50 31 38 30 30 00
      Object dump complete.
      --------------------------

      I know that I don’t need to declare an OSession explicitly, but can do so implicitly by declaring a Odatabase, but this make no difference to the memory leak.

      Has anybody else come across a similar problem?

      Any advice would be appreciated.