Pro*C with Visual C++ - leaks memory with EXEC SQL CONTEXT FREE

Hello,
I am making an aplication with threads, using Visual C++ with Pro*C... and I have a problem when the aplication execute EXEC SQL CONTEXT FREE the memory reserved is not free.
this is my code:
#include <sqlca.h>
EXEC SQL BEGIN DECLARE SECTION;
sql_context ctx;
EXEC SQL END DECLARE SECTION;
EXEC SQL ENABLE THREADS;
EXEC SQL CONTEXT ALLOCATE :ctx;
EXEC SQL CONTEXT USE :ctx;
EXEC SQL COMMIT WORK RELEASE;
EXEC SQL CONTEXT FREE :ctx;
thanks in advance

Hi!
I suppose to helping in solve your question is necessary see how your application is working with threads.
Can you print them also?

Similar Messages

  • Develop streaming data processing applications in C# with Stream Computing Platform and Storm in HDInsight. Can this be done with Visual Studio Community sign up?

    Hello,
    I am a  student and love the Visual Studio Community 2013 to implement some of my research projects. I am currently working on a project that involves streaming data analysis. I found this article ( http://azure.microsoft.com/en-us/documentation/articles/hdinsight-hadoop-storm-scpdotnet-csharp-develop-streaming-data-processing-application/
    ) but do not have MSDN subscription (I cannot afford it)  as required in the article. Can this be done somehow with Visual Studio Community 2013 sign up?
    Thank you all in advance for your time and for your help.
    J.K.W

    Hi,
    I just confirmed that the key with Visual Studio Community is that, although it is free like Express, it does not have the limitations that Visual Studio Express had. So, to answer your question, Yes - you can do all your development work as a student with
    VS Community 2013 sign up. You can also refer to this blog for more details -
    http://blogs.msdn.com/b/quick_thoughts/archive/2014/11/12/visual-studio-community-2013-free.aspx
    Regards,
    DebarchanS
    DebarchanS - MSFT

  • How can I address a memory leak problem with Firefox?

    I have happily used Firefox for the past 7 years, and have rarely had difficulties. However, I am having some trouble now; Firefox (running 3.6.6) seems to have a memory leak on my machine. It's slower than what was discussed in other forum posts, but it still scales up slowly to multiple hundred MBs of Memory with very little CPU usage.
    I have tried disabling add-ons and extensions, but this does not stop the problem. I have cleared my cache and other stored data, but that also does not help. Has anyone experienced a similar problem that might be able to help?
    == This happened ==
    Every time Firefox opened
    == within last two weeks

    Hi reble0708,
    I have Java console disabled on my Firefox browser.Everything is working fine for me. There maybe other problem on your browser which is making PDF document faded and blurry. Can you post the link where you found the problem viewing the PDF document?
    Btw, you can go to ftp://ftp.mozilla.org/pub/firefox/releases/ and select the previous version of Firefox from the given options. There's no need to uninstall Firefox before you downgrade to the previous version of it.But before new installation, backup your Firefox profile folder.
    edit: replaced random unofficial download site link.

  • Memory leak issue with link server between SQL Server 2012 and Oracle

    Hi,
    We are trying to use the linked server feature with SQL Server 2012 to connect SQL server and Oracle database. We are concerned about the existing memory leak issue.  For more context please refer to the link.
    http://blogs.msdn.com/b/psssql/archive/2009/09/22/if-you-use-linked-server-queries-you-need-to-read-this.aspx
    The above link talks about the issues with SQL Server versions 2005 and 2008, not sure if this is still the case in 2012.  I could not find any article that talks about if this issue was fixed by Microsoft in later version.
    We know that SQL Server process crashes because of the third-party linked server provider which is loaded inside SQL Server process. If the third-party linked server provider is enabled together with the
    Allow inprocess option, the SQL Server process crashes when this third-party linked server experiences internal problems.
    We wanted to know if this fixed in SQL Server 2012 ?

    So your question is more of a information type or are you really facing OOM issue.
    There can be two things for OOM
    1. There is bug in SQL Server which is causing the issue which might be fixed in 2012
    2. The Linked server provider used to connect to Oracle is not upto date and some patch is missing or more recent version is to be used.  Did you made sure that you are using latest version.
    What is Oracle version you are trying to connect(9i,10g, R2...)
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Does the standard Intel HD Graphics 4000 in the 13 inch Macbook pro stand up to other graphics cards with dedicated memory ( 1GB of memory for instance)?

    Does the standard Intel HD Graphics 4000 in the 13 inch Macbook pro stand up to other graphics cards with dedicated memory ( 1GB of memory for instance)? I need a laptop for college and the Engineering program suggests a dedicated video card with minimum 1GB of video memory.

    I have a Intel HD 4000 in my Mac Mini (late 2012), and it's okay for what I need it.
    However:
    - there were a few issues with flickering on the video output to external monitors. These were solved through a firmware update that came with OSX 10.8.3 - for the majority of the users. There is apparently still a small group of users that still has issues. You can read long threads about this here:
    https://discussions.apple.com/thread/4472316?start=0&tstart=0
    and here
    https://discussions.apple.com/thread/4490924?start=0&tstart=0
    So for most of us (me included) this issue is solved, but it seems that certain displays / monitors don't work well with the intel HD4000, don't know if there is a pattern or a list of monitor models...
    - there was an issue with the color calibration on the HDMI output. No matter how much you tried to calibrate, the results remained unsatisfying. All light colors were crushed to white, wrong contrast, ...
    You can read about this here:
    http://forums.macrumors.com/showthread.php?t=1482487
    https://discussions.apple.com/thread/4480354?start=0&tstart=0
    The same firmware update improved this a little, good enough for me, but I can imagine it's not good enough if you do graphic work and need reliable colors from your monitor. On HDMI output, the thunderbolt/MDP output is fine. So it's mainly a dual monitor setup issue.
    If it's for graphic work, I'd go for a Mac Book Pro with dedicated GPU !

  • Memory leak problems with loading videos over and over.

    I'm having memory leak problems with loading videos into a VideoPlayer aswell as FLVPlayback.
    What the flash should do:
    - Should be running for 7 days without having to restart the projector.
    - Interface that shows people around a 360 3D model with 5 different parts and at the stops it makes during the rotation you can click to zoom in on a location which plays a movie for that aswell.
    - Shows a video out of 5 parts for a 360 rotation in 3D in mp4 video (added each time and cleaned up, see code below).
    - Still images are used when the video clips are done playing (MovieClip in stage).
    - Should run automatically when there is no user interaction for X minutes.
    What the problem is:
    - The flash (as a exe and swf i guess) starts to consume memory over time (say 10 hours) until the projector crashes. This usually at around 1.75 GB of memory.
    I cannot see why the Flash cannot garbage collect this and free up the memory. Mabye there is something I don't understand about the garbage collection in flash?
    Here is some code from the video loading and playing:
    var fVideo:VideoPlayer;
    VideoCreate();
    function VideoReady(pEvent:VideoEvent):void
    trace("VideoReady()");
         // start playing video
    fVideo.play();
    function VideoLoad(pUrl:String):void
         trace("VideoLoad(" + pUrl +
         VideoCreate();
         if (pUrl != "")
              if (fVideoFolder + pUrl == fVideo.source)
                   fVideo.seek(0);
    VideoReady(null);
              } else {
    trace(fVideo.state);
                   if (fVideo.state !=
    VideoState.DISCONNECTED) fVideo.stop();
    fVideo.close();                                
    fVideo.load(fVideoFolder + pUrl);
         } else {
    // error no url
    function VideoCreate():void
         trace("VideoCreate()");
         // remove old one
         if (getChildAt(0) == fVideo)
              removeChildAt(0);
         fVideo = new
    VideoPlayer(1024, 768);
         addChildAt(fVideo, 0);
         fVideo.autoRewind = false;
    fVideo.addEventListener(VideoEvent.COMPLETE, VideoDonePlaying);
    fVideo.addEventListener(VideoEvent.READY, VideoReady);

    Hmm. It's in connection with Dropbox. Så apparantly you can only use one of the two at the same time if you want the programs integrated in Finder.

  • Best practice with Listeners to avoid memory leaks

    Hi guys,
    I'm using Javafx to develop an application. I'm creating views with fxml. I'm experiencing some memory problems perhaps because I can not understand the life cycle of the controller and the views.
    For example, the listeners that I add in the controller to the components of ui, must be removed before going out from the view?
    And in a case in which there is a inner listener? For example:
    tabellaClienti.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Cliente>() {
                   @Override
                   public void changed(ObservableValue<? extends Cliente> property, Cliente oldSelection, Cliente newSelection) {
                        seleziona(newSelection);
              });in this case the listener when is destroyed?
    I'm experiencing that I got the same view (with all components) in memory many times.
    There is a guideline to follow to be sure to avoid making mistakes?
    Thanks!

    You should either remove your listener or, if you don't know when (because you lose track of your tabellaClienti), you can use WeakChangeListener.
    http://docs.oracle.com/javafx/2/api/javafx/beans/value/WeakChangeListener.html
    But I wonder why there a leaks at all, because you listener is only in the view and not on another reference, so it can be garbaged collected.
    Note that you must have a private class variable in you view holding a reference to your ChangeListener then.
    Do you know a good tool, how you can see which objects are in memory and cannot be garbaged collected? We constantly have memory issues, too...

  • HT1270 Can I replace PC3 1600 memory with PC3L 1600 memory? MacBook Pro mid 2012, i7 2.3 15"

    Can I replace PC3 1600 memory with PC3L 1600 memory? MacBook Pro mid 2012, i7 2.3 15". I know PC3 memory runs on 1.5 volts, PC3L runs on 1.35 volts.
    Are they compatible with my Mac?

    http://www.crucial.com/usa/en/memory-info < Find compatible memory
    MacBook Pro (15-inch, Mid 2012) - Technical Specifications
    MacBook Pro: How to remove or install memory - Apple Support

  • Is there a big difference between Intel Iris Pro graphics and the NVIDIA GeForce GT 750M graphics processor with 1GB of GDDR5 memory

    Is there a big difference between Intel Iris Pro graphics and the NVIDIA GeForce GT 750M graphics processor with 1GB of GDDR5 memory, is it worth paying an extra $200?

    Software support of graphics card is key.   If no graphics card is mentioned in software specs, then it can be ignored.  Mostly games and high end image and video graphics software are affected.

  • Safari Memory Leak (especially with Google Reader)

    Safari starts gobbling up memory with use, never releasing it. I have turned off extensions, moved all internet plugins to disabled directory, restarted, etc. but nothing helps. Right now its sitting at 1.5GB real memory usage.
    One quick way for me to replicate this issue is to go through a few hundred google reader items. It never releases memory even when I close that google reader tab. Any ideas or suggestions? Thanks!

    Hi
    If a new account is the same, you've done it all; bar a fresh install, unless you're quite certain everything's as standard...
    http://bugreport.apple.com and/or google feedback.

  • Satellite Pro 4600 Wireless card does not work with WIN2K ?

    I have a Satellite Pro 4600 with UK dealer installed PA3070U-1MPC wireless card running with Windows 2000
    The wireless client manager finds the network of my wireless router and reports the signal is excellent and I see all green bars swhowing.
    However I can't mske a connection, in 'connections' the wireless one says 'network cable is disconnected'
    the router works ok with other laptops in my house.
    I have latest version of Win2K also have downloaded and installed latest versions of client manager and WLAN card driver for win2k from toshiba website.
    The 'toshiba support in Turkey' told me 'I need a different driver for Win2K for my wireless card cause the win2K driver on the toshiba website is not for 'this' wireless card'. I have waited for this for 3 weeks now and have been unable to reach the elusive UK Level 3 support who supposedly have this driver. I have seen on the internet the same wireless card is has been sold as a 'made by toshiba' accessory and it says it is compatible with Wim2K
    What do I do next please ? Does this run at all with Win2K , is there 'another driver' and so on ?
    Thanks

    hello
    please be more scpecific - what do you mean by 'disconnect the LAN' - I have nothing conneced there anyway ? do you mean 'disable' the LAN even though there is nothing plugged in ? can you please post the exact sequence of this so I can try ir too.
    In the meantime my laptop has been to Toshiba for them to sort out at their highest level UK support base. I was hoping my troubles would be over - but no, read below what happened. They are basically saying my win2k is not in order but I had just installed and updated it so right now I haven't a clue what to do next.
    START QUOTE of Toshiba Support response:
    Sat Pro 4600
    Serial No: 31474181G
    Windows 2000 SP4 (customers build not recovery CD)
    BIOS V1.80 not current therefore updated to V2.60
    The notebooks wireless card is functional and has the correct driver installed, it also has the correct and latest version of the Wireless Client Manager. The wireless function appears to see the router but will not connect and obtain an IP address. Irrespective of the settings applied within Internet Explorer or the Wireless client manager you cannot obtain a connection. The customer did not have any Toshiba utilities installed such as, Power Saver, Common Modules, Chipset drivers, network device switch, I therefore installed these missing components and updated the BIOS to the most current revision. However despite this the unit will still not connect to the wireless.
    I therefore removed the customers HDD and replaced his HDD with a Toshiba loan HDD with a fresh build that I had created. When using the machine with this build the wireless connected without issue and I was able to browse the internet etc. I placed the customers HDD into our machine and the problem with the wireless was replicated on our machine here, therefore the problem is not with the wireless card or any hardware aspect of the machine, the problem lies with the customer's build of Win 2000. I examined for anything obvious but could not find anything, therefore I'm sending this machine back to customer with the advice that his build needs addressing or he needs to reload Win 2000 his machine.
    As you can see from the above comments, the machine performs as per specification with loan HDD and fresh build of Win 2000 installed, the problem is only present with you HDD and build in the machine. In addition to this I have replaced the missing screws on the base of the machine ensuring the machine is structure is maintained.
    5 x B16 Screws
    1 x B6 Screw
    1 x Memory Cover Screw
    END QUOTE

  • Visual Studio App Wizard won't install with Visual Studio 2005

    When I try run the Visual Studio App Wizard from the Acrobat SDK V8.1 on my PC it tells me 'Please install Visual Studio 2005 before install Acrobat 8 Plugin Wizard'. I have Visual Studio 2005 installed with SP1. I also have the .NET framework 2.0.50727 SP1 loaded. I see this same problem on two different PC's with the same software configuration loaded. Any known issues with that?

    I've never seen this happen. It's been a while since I last installed the
    v9 SDK and it's plug-in wizard, so I don't remember how the installation
    went.
    I do most of my plug-in work on the Mac, where there is no plug-in wizard,
    so I don't use it - not even on Windows. You do not need it to start a new
    plug-in: Just use either the Starter plug-in from the samples, or the
    BasicPlugin project. This will give you something that compiles and runs.
    Then do a few simple text replacements to give things the proper names and
    use that as your starting point. The wizard will give you a few more things
    in regards to HFTs, but it's not complicated or time consuming to do that
    by hand. The good thing about having to do this every now and then is that
    it keeps your memory fresh about how HFTs work.
    If you want to save yourself some time, create your own starter plug-in
    that you mark up with comments about what you need to replace and why - put
    all the stuff in that you usually need and then just use that every time
    you need to start a new plug-in. Setting up a plug-in framework is usually
    a very small portion of the time that you will eventually spent on the
    plug-in development, so using the wizard will not save you much in the
    overall development time.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com
    On Sat, Nov 3, 2012 at 12:55 PM, Ramon F Herrera

  • Logic Pro system overloaded and MIDI clock problems with Intel

    Hi
    I'm not a super-powerful-rich music producer. I have owned an iMac G5 1GB of RAM for tree years with a lot of problems with the memory, but i could achieve a quite good knowledge of Logic Pro 7.1.1. The thing is that with my new iMac that has a larger memory i'm not able to playback old songs, and it sounds strabge to me because the Intel iMac would have to work better than the older....I think....(the file i'm talking about has got 5 tracks, 4 freezed and one not: it sounds really strange even if I haven't 5 GB of memory!!!)
    Moreover I've had other new problems with MIDI sync but i've never used other MIDI clocks sources even if I use a M-Audio pro 88 keyboard and an audio interface ESI Quatafire 610. I know that i haven't got a great instrumentation in my hands, but this doesn't mean that it doesn't have to work.
    Do I need Logic 7.2? Do I need to change my audio interface?
    Do I need to set up logic in a way that with iMac G5 hadn't be necessary?
    I'm waiting for an answer from someone who's more capable.
    Thank you.
    Luigi
    iMac 2 GHz Intel core duo 20" 1,5 GB RAM Mac OS X (10.4.8) Audio Inteface ESI Quatafire 610

    Do I need Logic 7.2?
    absolutely definitely, you need a minimum of logic 7.2. it is the first version that is intel-native. your problems are 100% because the code you are trying to run has to be emulated first in order to be interpreted by the intel chip in your imac. this means that logic will run like a sick dog, until you give it a version that is actually compatible with your machine.

  • I have a 2011 Macbook Pro 15" Snow Leopard Quadcore icore 7 with 8Gb of RAM and Im a Webpage Graphic Designer but why is my Macbookpro is so slow!?

    I have a 2011 Macbook Pro 15" Snow Leopard Quadcore icore 7 with 8Gb of RAM and Im a Webpage Graphic Designer but why is my Macbookpro is so slow!?
    I'm opening like Skype, AIM, Chrome the Memory Hog, Adobe Photshop and Illustrator...  Its so slow! I tried Onyx, CleanMyMac, iFreeMemory or just purging  but still i still have to restart to get it back to normal after closing all the applications... im not really impressed with the memory swapping thing,Even though my inactive RAM is like 2GB its so SloW! Anyone knows how to fix this problem?

    It's hard to say why your machine is slow, but that machine with 8 GB of RAM should not be slow.  Could be any number of possible problems.  Try taking a look at the Mac OS X Speed FAQ.

  • Will the1TB SATA Hard Disk Drive Kit for Mac Pro now in the Mac Store work with my Mac Pro1,1?

    Will the 1TB SATA Hard Disk Drive Kit for Mac Pro now in the Mac Store work with my Mac Pro1,1? My details of my Mac Pro is as follows:
    Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2.66 GHz
      Number Of Processors:          2
      Total Number Of Cores:          4
      L2 Cache (per processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1.33 GHz
      Boot ROM Version:          MP11.005C.B08
      SMC Version (system):          1.7f10
      Hardware UUID:          00000000-0000-1000-8000-0017F2059956

    It will say "green" and use less power, park its head probably, and while early units had some trouble they have evolved. Variable rpm or slower rpm also. They can be much less expenisve way to add storage. 
    WD Caviar Green
    WD Green 2TB
    For the system, 640GB is a nice size. Look for 64MB cache to help insure your drive is the latest models which will also say "6G SATA 3" which is fine.
    WD Caviar Black 1TB 6Gb
    WD Black Caviar 2TB
    larger means higher density platter, I find the 1TB and larger Blacks to run hotter/warmer and companys want drives to be able to run warmer or with less cooling. - but for really cold drives other than SSD I have found all my WD 10K VRs to have the absolute coldest temps.
    Just noticed Amazon having better prices than Newegg on 1TB - and WD and Hitachi.
    Green for your external backup, for media libraries that are not high volume access, to run cool and less power. Enterprise for system and performance.  TimeMachine sometimes makes a poor backup method with some green cases.

Maybe you are looking for

  • Batch Derivation - No sender found during both Manual deriv & Order release

    Folks, I'm trying to simulate the batch derivation functionality but couldn't get it work. I have used both manual and release production order derivation events. Necessary configuration is setup including batch where used list and related derivation

  • Using %=request.getContextPath()% path in .js file.?

    Hi, I was using java script code in my JSP itself.This was working fine.but when i moved the code in .js file,it stopped working.!!!. Please suggest how to make it work. Cheers: Akash.

  • 'ANY' clause with a function

    Hello Folks, I have a function that takes an input (Nallax) and outputs ('N', 'A', 'L', 'L', 'A', 'X') when I try to use it in a join condition, it really doesn't work example select * from DUAL where dummy = any FUNCTION('XASDCF') -- returns null wh

  • Imovie project won't open in imovie?

    I was working on my macbook in iMovie '09 on a project on a seagate external hard drive and the events was on the hard drive also. I've never had any problems with it crashing on me until this project and I just used it the day before. After 15 minut

  • Narrow the subscription rights for fulfilled license.

    How we can narrow the rights of already fulfilled license? Here is an example what i tried to do that. 1 I created a fulfillment link with 3 years expiry of a loan 2 Then i created another link with 10 days using same orderid as in first step. But wh