Memory leak when I use function with bstr_t type
Hello,
I use Visual C++ 6 and TestStand 3.1.
I use the tool: Purify from Rational Instruments to detect memory leak in my code.
When I use in my code, functions from the TestStand API using bstr_t types: GetValString, GetType... memory leaks appear.
Do you have an idea to solve this problem?
Thanks
Breizh,
Etes vous sur que le problèmes soit lié au type bstr_r ?
Pouvez vous me faire parvenir un exemple de code mettant en oeuvre la fuite mémoire?
Raphaël T.
NI FRANCE
Cordialement,
Raphael T
Similar Messages
-
[iPhone] Memory leak when UIWebview is loaded with URL
I have created a custom browser in my app using UIWebview . A memory leak is seen on everytime webview is loaded with provided url. A snapshot of the leak is shown below.You may note that no back trace is shown and hence cause of leak is unknown.
Snapshot of leak
Please help me with this issue as early as possible.You might want to take this discussion to the developers forums. This is a general user to user forum for using the iPhone. This is way outside the scope of general use.
-
Why do I get a memory leak when I use the Write Data Storage VI in a loop
I have a large application that I am collecting various data points from. For the most part they are simple scalar values that need to be logged on a regular basis. I was attempting to use the new TDM files and the storage VI's I though everything was working until I looked at the taskmanager and noticed that when the logging loop ran my CPU eventually went to 100% and the process memory grew from about 80,000K to 100,000K and eventually locks up the system.
I am using a state machine arch.
State 1 - open file (open create) mode)
State 2 - Write Channel Group Properties
State 3 - Loop writes 24 distinct data points to a TDM files in append mode
State 3 - Repeats [creating new rows of the same 24 data point (wait time about 1 sec)]
State 4 - Close file on exit.
Any help on this problem would be appreciated.The way I see it, it should be this way.
Message Edited by Pana-man on 09-30-2005 08:15 PM
Message Edited by Pana-man on 09-30-2005 08:18 PM
Paul <--Always Learning!!!
sense and simplicity.
Browse my sample VIs?
Attachments:
nextWeek.jpg 43 KB -
Memory leak when using Threads?
I did an experiment and noticed a memory leak when I was using threads.. Here's what I did.
======================================
while( true )
Scanner sc = new Scanner(System.in);
String answer;
System.out.print("Press Enter to continue...");
answer = sc.next();
new TestThread();
========================================
And TestThead is the following
========================================
import java.io.*;
import java.net.*;
public class TestThread extends Thread
public TestThread() { start(); }
public void run() { }
=====================================
When I open windows Task Manager, every time a new thread starts and stops, the java.exe increases the Mem Usage.. Its a memory leak!? What is going on in this situation.. If I start a thread and the it stops, and then I start a new thread, why does it use more memory?
-BrianMoveScanner sc = new
Scanner(System.in);out of the
loop.Scanner sc = new Scanner(System.in);
while (true) {
That won't matter in any meaningful way.
Every loop iteration creates a new Scanner, but it also makes a Scanner eligible for GC, so the net memory requirement of the program is constant.
Now, of course, it's possible that the VM won't bother GCing until 64 MB worth of Scanners have been created, but we don't care about that. If we're allowing the GC 64 MB, then we don't care how it uses it or when it cleans it up. -
Memory Leak when TOMCAT connects to Oracle 10g RAC using JDBC Thin driver.
We had experienced Memory leak when a Oracle 10g (10.2.0.3) RAC node was evicted. TOMCAT app server is connecting to the Oracle 10g RAC database instances using JDBC 10.2.0.3 thin driver.
Anyone had similar experience?
Any ideas? Any bugs reported/fixed?
Thanks,
RajIf you're doing XA, we absolutely do not support
driver-level load-balancing OR failover. Use neither.
For non-XA, you can use driver-level failover. For
non-XA, you could set load-balancing, but it won't
help because we get connections from the driver,
and keep them indefinitely, so the driver never gets
the chance to affect which connections the pool
uses after that. -
Memory leak in Gabor spectrogram function?
HI,
Is anyone aware of a memory leak in the SptRealFastGaborSpectrogramEx function of the signal processing toolkit? I have version 7.0.1. I have debugged everything else and cannot seem to find anything in my code.
Thanks!
MarcMarc,
I responded VIA email but I will also discuss this here.
Since you are using a C++ environment, there may be problems with calling these functions (though technically they should work). I am unable to replicate this issue in CVI (what this toolkit is made for) however, could you try to use the non-Ex version of this function? If this still does not work, please email me a small example of this behavior in a small project and I can try to see if we can locate the problem.
Brandon Vasquez | Software Engineer | Integration Services | National Instruments -
Hi,
When i use function module KKPI_BDC_ADD_ON_COSTS_CREATE to create additive costs it shows an error. The error is 'THE OBJECT IS LOCKED BY THE USER SARKARD' the transaction it uses is CK74 for creating.
I have also read about KKP4_ADD_ON_COSTS_CREATE. But i dont know the usage of it..
I think it will be helpful if u can clarify with first FM.
Kindly suggest.
Thank you.
HarshaHi Harsha,
I have a similar requirement, but the issue that I am facing is that I can not find any parameter in the FM - KKPI_BDC_ADD_ON_COSTS_CREATE for Valuation Date which is a mandatory field in CK74. How did you overcome that issue, can you please share ? -
Memory Leak when running Contacts
I am having a big memory leak when running the app Contacts on a MB Air. It gobbles up 2 GB of ram in just a few minutes forcing a reboot. I have re-installed Mountain Lion 10.8.2 and it still leaks memory. Watching Activity Monitor shows the rapid increase in Ram being gobbled up by Contacts. Used Mackeeper to clear cache as well as ran Cocktail, all to no avail. Any tips would be greatly appreciated.
The size of oracle.exe is not an indication of how the Java VM GC works; so you are not comparing apples to apples. It'll be too long to explain here but in my upcoming book (see hereafter), I gave a detailled explanation of the various memory areas the Java VM uses and how these are GCed and also how you can meausre their size (not all, though).
In short you want to use OracleRuntime methods such as
OracleRuntime.getSessionSize(); --> get he current size of Sessionspace
OracleRuntime.getNewspaceSize(); --> get he current size of Newspace
there are other memory areas described in the book
http://www.oracle.com/technology/pub/articles/mensah_dws.html
http://www.elsevier.com/wps/find/bookdescription.cws_home/706089/description#description
Sample chapter: http://www.oracle.com/technology/books/pdfs/mensah_ch1.pdf
Kuassi -
App Memory Leak When Open iPhoto
Hi everyone,
Does anyone have experienced app memory leak when open iPhoto? My free memory immediate dropped from 5000 mb to 15mb when I open iPhoto and the app never open. If I force to quit iPhoto, all return to normal and everything work fine. I only have iPhoto app running, not sure what caused the memory leak???
Looking for help.
Thanks
JHMLActually the new library was a test to see if the problem occurred only with your current library or with all libraries. The fact that switching libraries cleared up the problem is just serendipitous.
-
How can i format my external hard drive to write files from Mac without loosing the files that i alredy have on my external hard when i used it with windows?
I have been using Windows to write files to my 1TB WD external hard drive and I do not want to format to loose the files capacity of around 500GB
Someone, Please helpHi Allen,
Is there any way to store the back up to Mac and restore after formating? -
Need to remove header When using GUI_DOWNLOAD with file type "DBF"
Hi ALL,
I am using GUI_DOWNLOAD function module to downlaod data to csv file . I have taken FILE TYPE as "DBF" . After download , I have found data is downloaded along with a default header . Now how can I avoid Header while downloading.
Please help me to solve this problem.
thanks and regards,
Dilip
Edited by: dilip kumar on Jun 9, 2009 11:51 AMHello Dilip,
I tried using GUI_DOWNLOAD with FILE TYPE as "DBF", and i see the problem as mentioned. My question to you is:
1. Why do you need 'DBF' format?
2. Is it required to save the file as '.CSV'? Can you not try to save in '.XLS' file?
Plz revert back.
BR,
Suhas -
When I use FaceTime with friends who are currently outside of UK, I cannot make my voice heard after about 20mins' chatting. While this situation will be better if I restart my MBP,but only better in around 20mins.
When I use FaceTime with friends who are currently outside of UK, I cannot make my voice heard after about 20mins' chatting. While this situation will be better if I restart my MBP,but only better in around 20mins.
-
Flex sampling frequency changes when I use it with apple loops
Flex sampling frequency changes when I use it with apple loops in a 24 bit 88.2 project
sorry !
Flex changes sampling frequency when I use it with apple loops in a 24 bit 88.2 project -
I have a 6d and when I use it with the iPhone app the camera turns off after about five minutes and the connection is lost. So when I am photographing wild life I keep having to break cover to reactivate the connection. Is this correct or is there a way to keep the connection alive.
You just need to go into the menu and set the camera's sleep mode to "off" or "never". It sounds as if it's currently set to 5 minutes.
Letting the camera sit active continuously, i.e. preventing it from going into sleep mode, will drain the battery(ies) a lot faster. I don't have a 6D, nor do I leave them on full time (in fact I set sleep mode to a very short duration, since tapping any button on the camera quickly re-awakens it).... so I really don't know how quickly a battery will drain. But you might be prepared with spares. If battery life is too short for you purposes, you could add a battery grip which will double the battery capacity.
Alan Myers
San Jose, Calif., USA
"Walk softly and carry a big lens."
GEAR: 5DII, 7D(x2), 50D(x3), some other cameras, various lenses & accessories
FLICKR & PRINTROOM -
How can I get to see my app Note Taker HD in the options that I have when I use " Open with ... " I am trying to open a PDF that I have attached to a mail document in Note Taker HD.
ThanksTo buy Apps or to check out the Apps available via your iPad use the App Store App.
On your iPad your Music is kept in the iPod App and the movies are on the Movie App after you have synced the Music and Movies from iTunes on your computer to your iPad.
S.
Maybe you are looking for
-
Cannot download skype to my iPhone
I had downloaded skype to my iPhone was having problems with it skype. I deleted it and I am now trying to download again to pmt phone but I cannot download.
-
What is the role of quantity,surcharge in Condition types
Im new to CIN ,in the pricing procedure JINFAC,the below mentioned conditons types belong to BED how all those differ JEXQ IN A/R BED JEXP IN: A/R BED % JEXT IN A/R BED total same is for AED JEAP IN A/R AED % JEAQ IN A/R AED Qty J
-
How do I set up and use the TV tuner for an ENVY 23 TouchSmart​?
How do I set up and use the TV tuner for an ENVY 23 TouchSmart?
-
Ask the Expert: FSPF Concepts and Troubleshooting in Cisco SAN Environments
With Upinder Sujlana Welcome to the Cisco Support Community Ask the Expert conversation. This is an opportunity to learn and ask questions about FSPF, VSAN interaction, load balancing, and troubleshooting with Upinder Sujlana. According t
-
Trackpoint scrolling in Windows 8
On Windows 7 I use the trackpoint middle click by setting the scrolling to auto-scrolling. The generic driver that I had for Synaptics allowed this too, but the Ultranav driver on the Lenovo support site gets rid of this. Will it be put back? W540: i