Problem with ODynaset::Close()

Hi,
I'm working with OO4O v. 8.1.7.3.11 and MS VC++ 6.0. My application opens multiple dynasets. When the database access is no longer needed it closes the dynasets using the ODynaset::Close method. But when I take a look at my temporary directory I can see that the number of oip... - files increases each time the Open-Methods are called and the oip... files are NOT deleted when I call the close method. Which means that the open cursors are not closed when I call ODynaset::Close(). After some time this leads to a "Maximum number of open cursors exceeded" error.
The cursors will be closed when I call the destructor of ODynaset. But the ODynaset-Objects are members of an other class and I can't call the destructor of ODynaset just to close a cursor.
Did I make a mistake or is it a bug in OO4O ?
Can anybody help me ?
Thanks in advance,
Ilona Hohlefeld

Hi again,
after making some more tests I have some interesting news:
I derive a class from ODynaset as desribed in the OO4O sample projects:
class CDeltaDynaset : public ODynaset
public:
     CDeltaDynaset();
     virtual ~CDeltaDynaset();
public:
     // strings needed for creating the queries
     CString m_strSQLQuery; // the query to be sent to the database
     CString m_strSQLSelect; // the select portion
     CString m_strSQLFilter; // the where portion
     CString m_strSQLSort; // the order by portion
     // Field/Param Data
     OField m_SERIENNUMMER_I;
// Operations
public:
     void OpenQuery(ODatabase theDB);
     void CreateSQLSelect();
     void AddFilter(CString strFilter);
     void ResetToDefaultFilter();
     void RefreshQuery();
void CDeltaDynaset::OpenQuery(ODatabase theDB)
     oresult dbresult;
     // create a query statement
     m_strSQLQuery = m_strSQLSelect;
     if (m_strSQLFilter)
          m_strSQLQuery += m_strSQLFilter;
     if (m_strSQLSort)
          m_strSQLQuery += m_strSQLSort;
     // query the database
     dbresult = Open(theDB, m_strSQLQuery);
     if (dbresult == OFAILURE)
          // processing error message
          AfxMessageBox(theDB.GetErrorText());
     // display the first record from the Customer table
     dbresult = MoveFirst();
     // retreive/store information from the database
     m_SERIENNUMMER_I = GetField("SERIENNUMMER_I");
When I use an instance of this class, call OpenQuery(...) and later call Close() (with result OSUCCESS), the cursor remains open. When I comment out the line "m_SERIENNUMMER_I = GetField("SERIENNUMMER_I");" in the method OpenQuery(...), the call of Close() will really close the cursor.
The problem seems to be the OField-Binding.
What can I do to force the Dynaset close ?
Thanks in advance,
Ilona

Similar Messages

  • XPS 1530: problem with lid close

    hello,
    i have a problem with my dell xps 1530.
    i use 2.6.35-Arch-Linux with gnome.
    The notebook does not turn off the display and goes to sleep when i close it.
    i testet it with the gnome-power-manager and acpid.
    while acpi is running i get the following message after closing in /var/log/messages.log
    ACPI group / action undefined: video / lcd
    i hope for help
    olf

    push

  • Problem with window.close and window.open

    I am having two suspected Actionscript problems which only seem to be happening with Flash player 9 and later.
    BACKGROUND:
    I have a client who needs browser-launched swf files to play from a CD-ROM (I do not want to use the Flash projector).  These files were created a few years ago using Actionscript 1 & 2 code and everything has worked perfectly until now.
    Here is the setup:
    First, an autorun file on the root of the CD runs and writes a 'trust file' to the 'Macromed' directory.  The autorun next launches 'index.htm' which is simply an html page containing a series of links (topic1.htm; topic2.htm; and so on). Next, let's assume the student clicks the 'topic1.htm' link from the 'index.htm' page.  The 'topic1.htm' link launches a web page (also located on the CD) which contains and displays 'topic1.swf'.  So far, everything works fine.
    Here is where the two problems happen.
    Problem 1:
    I have an 'Exit' button within each swf (remember each swf is contained inside an html page).  The 'Exit' button has always worked properly, but suddenly does not work in Flash player 9.  I am using the following Actionscript 2 code on the 'Exit' button:
    on (release) {
    getURL("javascript:window.close()");
    The 'Exit' button has always worked using this code (and still works in Flash player 8 and lower).  However, it does nothing when played using Flash player 9.
    Problem 2:
    There are links to html popup windows within the 'topic1.swf' file (remember 'topic1.swf' is contained inside 'topic1.htm').  Each popup window contains a swf file that is used to present a demonstration.  When the student clicks the 'demo1.htm' link from 'topic1.swf', an html popup window SHOULD load and display 'demo1.swf' inside the 'demo1.htm' window.  The main ('topic1.htm') window stays open so that the student can return to the topic after completing the demo.  This has always worked properly until Flash player 9.  Here is the Actionscript 2 code
    which I am using on the button inside 'topic1.swf' to launch 'demo1.htm':
    on (release) {
                getURL("javascript:launchWin2('webpage2.html');");
    ADDITIONAL INFO:
    'topic1.htm' contains the following code which is used to support the Actionscript code listed under 'Problem 2' above.
    <SCRIPT LANGUAGE=JavaScript>
    <!--
    var padvar="";
    var childwind;
    function launchWin2(arg) {
    openWin2(arg);
    function openWin2(arg) {
    childwind = window.open(arg,"padwind2","menubar=no,location=no,status=no,scrollbars=no,width=750px,he ight=500px,left=0,top=0");
    //-->
    </SCRIPT>
    I would appreciate any help anyone can offer.  I am wondering if the problem has to do with a need to use ONLY Actionscript 3 code from Flash player 9 onwards.
    Thanks!
    Terry

    You may have '''Switched ON Caret Browsing'''. press '''F7 (on Mac: fn + F7)''' to toggle '''Caret Browsing ON/OFF'''
    * click '''Firefox''' button and click '''Options''' -> Advanced -> General -> remove
    Checkmark from '''Always use the cursor keys to navigate within pages'''
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox
    Check and tell if its working.

  • VirtualBox programming: I have a problem with ISession::Close()

    I am trying to create my own version of a virtualbox frontend on linux using C++ with XPCOM, GTK+ and SDL. I am already able to show VM display on a GtkWindow with keyboard and mouse events. However, my program keeps hanging after calling Session->Close() just after shutting down from the guest OS.
    Already tried doing the following:
    - dispatching all xpcom events by attaching the nsIEventQueue::ProcessPendingEvents() to the GTK+ main loop (via timeout)
    - set every virtualbox components i have used to NULL (IKeyboard, IMouse, IDisplay, IConsole, IFramebuffer, IConsoleCallback)
    - including and instantiating ISession from inside the frontend class (previously passed by reference from another class)
    Is there a proper clean-up sequence that i need to follow prior to calling ISession::Close()? I checked the SDK & API documentation and was not able to find any leads.
    Thanks

    this post seems specific to standalone VirtualBox and not the VirtualBox in Sun VDI 3. For VirtualBox questions, you should post to the Forum at
    http://www.virtualbox.org/wiki/Community
    HTH

  • I have a problem with "to close/shut down" firefox. I can shut it down and reopen.It says you must shut down your firefox before reopen a new

    Hello,I have a problem when I want to restart my firefox.I press to closed and firefox looks like it closed,and when I try to reopen again it says "you must shut down previous session before a run firefox"
    It happen with downlods ,too.
    Today I tried to download a new version,last version of firefox mozilla and when I tried to install it it say because of some crushes you could not properly install new download.
    Please,is there anyway to help me?
    All the best
    Stevan

    See this: <br />
    https://support.mozilla.com/en-US/kb/Firefox+hangs#Hang_at_exit

  • Problem with window.close() and print preview in IE

    Hi all,
    In IE, when window.close() or self.close() is executed, the window is closing perfectly. But when after opening a print preview window from file menu in IE and after closing the print preview with [X] button, then the window.close() is not working. Is there any solution to close the window even after closing the print preview window? here is the sample code.
    1) Close.htm
    <HTML>
    <TITLE>TEST</TITLE>
    <BODY>
    <SCRIPT LANGUAGE="javascript">
    function CloseMe()
    window.close();
    //self.close();
    </SCRIPT>
    <INPUT TYPE="button" ONCLICK="CloseMe()" VALUE="Close Me">
    </BODY>
    </HTML>
    Thanks,

    masijade. wrote:
    nogoodatcoding wrote:
    Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5227849&tstart=0
    Why'd you start a new thread once you got an answer on the thread linked above ( and even acknowledged it ) about the fact a that it was not a Java query?Because last time it was a JSP forum, which is not JavaScript obviously, but this is a Java forum, and the designers, obviously, simply neglected to include Script in the name, of course. ;-):D Why, oh, why did they have to call it JavaScript! (And before someone starts, that was a rhetorical question!)

  • PROBLEMS WITH A "CLOSE BUTTON"

    Hello,
    I'm not a pro with flash. But I have a full flash site to
    modify, Well I did it but now I have some needs:
    This is the site:
    my site
    If you can see the pages open with an animation. I need to do
    something to close the pages to see the main animation.
    .. and to do that I thought to put a "X" button above the
    pages .. But I don't know the script to make it!
    Please someone can help me!?!?!?

    I tried with this ..... but this is the error string:
    ERROR = Symbol=symbol 653, layer=layer 53, fotogramma=1: Line
    1: The instruction must be inside the ON GESTOR
    y.onRelease=function(){
    WHAT DOES IT MEANS?!??!

  • Problem with MMPV(close period for material master records)

    Hy,
    I'm really stuck in this weird problem.
    I have already open 04.2008 period in MMPV  and in MIGO transaction I got this error message:
    Document date lies in the future.
    Posting period 004 2008 is not open.
    What should I do?
    Please, someone help me.

    First check the date in MIGO transaction.... is it current date ?
                                                                                  (April's )
    and then
    go to OBBP  and check the posting period variant,
                           of your Company code..
    Now, go to OB52  and check the periods, they should be in
                               year 2008 for your posting period variant..

  • ECR/ECO problem with automated transactions

    Hi Friends,
    I have problem with automated close of ECR.
    Description:
    I have change number with one object - Inspection Plan.
    In CC32 when "Incorrect Change" is set and I click "Erro Corrected" - nothink happen
    (it should show popup with information that transaction cc06 was automated started)
    After that when i choose "Release Change" - also nothing happen.
    (it should shop popup and set status - "Close ECO")
    Everything works ok on sandbox system but on Dev/Test/Prod it doesn't work.
    Anybody now where could be a problem?
    Thank you for any advice.

    Hi
    Pls check this Link
    SAP-ECM and PPPI Integration-Solution
    Thanks in advance

  • Mac: Problems with certain characters in the editor

    I have now downloaded the production version on my Mac and it runs just fine. The first thing I see is that the painting problems with the close icons etc. have been fixed. Thank you for that. But I still have trouble typing certain characters in the editor. I haven't reported that yet, but I have seen others report similar problems caused by missing support for international keyboards. The characters that I cannot type are |\[{]} which is pretty annoying when you're writing Java code. :-) It works fine in normal Java text fields. On my Norwegian keyboard I normally input all these characters by typing 7 and 8 combined with option or option + shift.

    Check if database characterset supports these special characters
    check client's nls settings.
    check client machine's language settings (converts characters in driver level)

  • Memory leak with Visa Close in loop

    I read the other posts about the memory leak problems with Visa Close, but eliminating the Visa Close from VI causes problems with read & write (it seems to go out of sync). Any suggestions? Example attached.
    Attachments:
    MKS_651C_Serial_Communication.vi ‏144 KB

    Solved the problem. I had to change the bit count and adjust sort. Removing the Visa Close did eliminate the memory leak.

  • Problem with SA and .vcw - close instant

    Hello i have problem with flash player i want to open vcw, but when i just move it into it closes
    - i tried to remove the the new and install older one, nothing
    - i tried to remove the registry logs and install older one, nothing
    - i tried on my virutal machine, which is XP, same thing
    - i tried to open in chrome, it opens but it laggy like hell,
    I got win 8.1 x64

    Hi,
    Please post you query at the following forum.
    http://forums.cisco.com/eforum/servlet/NetProf?page=main
    Some one with ASA knowledge will definitely get back to you.
    This forum is for SA500 series products.
    Sorry for the inconvenience.
    Thanks,
    Biraja

  • A problem with this webpage caused Internet Explorer (IE9) to close and reopen the tab

    I have IE9 (using 32-bit version) installed on a relatively new laptop with Windows 7 64-bit. Up until last weekend IE9 worked fine and Flash Player worked fine too.
    At the weekend a webpage asked for Flash Player to be updated - which I did. Ever since then whenever I go to a webpage needing Flash Player I get the message "A problem with this webpage caused Internet Explorer to close and reopen the tab". This happens twice and then an IE9 error page.
    I have read the discussions in here about the problems with Flash Player 10.3 and have tried the various solutions. I have updated to 10.3.181.16 having tried 15 and 14 previously. Same problem.
    I have reset IE9. Same problem.
    I have disabled all add-ons which stops the problem. If I enable just the Flash Player add-on then the problem recurs. Since there are so many webpages that use Flash I do not want to run my browser without this add-on running.
    If I enable the add-on and run IE9 using software rendering instead of GPU rendering then I don't get the problem. However, this isn't exactly making the best use of the resources on my laptop.
    This may well all be related to the 10.3 problems but no one seems to have mentioned having a problem with tabs closing and reopening so I thought I would post on here to check.
    Any suggestions for how to solve this (other than using software rendering)?

    Thanks again for your reply. I appreciate the time you have taken to respond.
    I think, however, you misunderstand the problem. IE9 does not reopen the tabs on just one website - it is doing this on every website that needs Flash Player. Therefore, running in Compatibility mode is not an option. In fact, because IE9 reopens the tabs so quickly and then ends up with an error page, I cannot even click the Compatibility button anyway.
    I could use ActiveX filtering - true. All that this means is that Flash does not play on any of the websites. When I want to re-enable ActiveX for a particular website where I need to see the Flash Player item, this just triggers the error.
    This problem also happened on .14, .15 and well as the current .16 version. It did not happen with the previous version of Flash Player that I had on the system (version 10.2 I think).
    The fact is that either Flash Player or IE9 or both is/are broken. The two choices I am still left with are:
    1. Use software rendering (which contradicts the latest advertisements for IE9 about unleashing the power of IE)
    2. Use another browser - I have no problems with either Firefox or Chrome

  • I use an iMac (27" 3.4) and have problems with the Magic Mouse. It does not use contact, but opens useless and unrelated submenus with every click, even on the empty desktop. I can't shift, open or close pages. Has anyone out there the same problem?

    I use an iMac 27" (mid 2011). Until recently I had OSX 10.6.8 installed, but both, the HDD and SSD had to be replaced, and I lost all the memory.
    After the repair through Apple Care I had OSX 10.7.5. (Lion) installed, which developed a Magic Mouse problem.
    Unlike with most users, I have no problems with connection, but grapple with a different kind of erratic behaviour.
    All fancy stuff is turned off in the mouse preferences. When I try to move, open or close pages, unrelated submenus pop up and hinder the
    required task. No matter how often I click, these menus stay there, and they even come up when clicking on the bare desktop.
    It renders the mouse absolutely useless, as no work can be done with it.
    The first 'Magic Mouse' had depleted batteries every few days, despite switching it off after use.
    I was supplied a new Mouse, which does better battery-wise, but the problems are the same. I can't get a result by clicking on any link, due to
    the pop-up menus, so both 'Magic Mice' are totally useless.
    At present I am using the old USB mouse from my Mac Pro, and that works still o.k.
    The problem are not the mice, but the software. The first 2 weeks after installation of OSX 10.7.5 the Magic Mouse worked though.
    I have no idea as to what the reason may be.
    Has anyone in the community ever experienced that particular problem. Any hint would be welcomed.
    Thank you!

    Not using any mouse pad, I have a very smooth desktop. But I just tried to use a sheet of A4 printing paper, but no result, the problem persisted.
    Someone on this forum suggested, that USB3 may interfere with the magic mouse.
    I have 2 LaCie HDD's about 70 cm away from the mouse, I use them on Thunderbolt. But in operation or not - the result is the same, the mouse plays up! Just now I was clicking the desktop and the mouse created a new folder!!
    Thanks for the advice, Bee
    Cheers, Gerd

  • Hello  I have a problem with Mac Pro, iPhoto does not want to stay open and close as I can figure this out?  thanks

    Hello  I have a problem with Mac Pro, iPhoto does not want to stay open and close as I can figure this out?  thanks

    Refer below link once
    App doesn’t open | Progress wheel spins continually

Maybe you are looking for