Silent crash LV with threading and OOP on f2 LV2009

I have a request of object-oriented programming using a thread abstraction class. When I run my test program for 5 seconds it crashes and LV closes without any error message at all, it just silently dies.

The application is backed and I tried to strip down as far as I could and still be able to reproduce the crash. Just unzip the project and find the Program: Main.vi and run it.

This would be a matter of LV?

Grateful for the help.

/ Roger

I modified your code as shown here and had no accidents.

Are you sure that your first version should have been wired as if it were? It seems that you where to push the bad new class in the queue. LV can tolerate this right until it is time to release the buffer and then it can get confused.

Who help you?

I'll he's ca this a bug at the moment because I saw the poor behavior of the VI.lib screws.

Ben

Tags: NI Software

Similar Questions

  • problem with thread and try {} - catch () {}

    Hello

    My problem is that in the second thread of my request, there is a method (at the beginning) that connects with the server. If the connection is impossible-i try to reconnect two times. the problem is that the connection must by in a try-catch block. and when I can't connect for the first time, the program will the something something trying to reconnect. and the problem is that once my progam enters this something, the thread is dead!

    Do you have any suggestions, what can I do with it?

    concerning

    I reorganized my request. whenever I see that the thread is killed (with an exception of capture) I wait 2 seconds and start the thread. and it works like a "reconnect".

    Thank you for your time and suggestions!

    Kind regards

  • Problems with word and PDF after computer crash. Error "user has access privileges."

    Problems with word and PDF after crash

    My computer crashed and I had to run the recovery disk, the repair option, so he could run again. It does not format my computer but I had to re - install several programs. I reinstalled my copy of office for example.  I have an external hard drive where I put most of my files but since installing the recovery disc, it does not open some Word documents and gives a message error "user has not access privilege." It's the same thing with some pdf files. What can I do?  Please help because I can't open some of my documents from the University.

    Hello world
    I would like to just say thank you for your help and the problem is now solved.  In the end I paid someone to sort it out.  He explained that it was something like permissions for some of my files were owned by my old operating system and after that my computer crashed and I had to put through the recovery disc these permissions have been lost.  He told me that he had a program that looked for the old existing and re-installed.
    Thank you.

  • Thread and class with no thread

    Hi everyone , hope you can help me with this...

    I have two classes, extends a Thread and the other extends screen. My problem is that the screen needs all the information that the thread has had, but I do not know how to make the screen show upward when the thread is finished, or wait until this thread stops to see its information.

    Thanks in advance

    At the end of your thread, you can push the screen with:

    synchronized (UiApplication.getEventLock) {}

    UiApplication.getUiApplication () .pushScreen (yourMainScreen);

    }

  • ScheduledThreadPoolExecutor with minimum and maximum thread

    Hi all

    I need to implement something that is planning a number of potentially important small tasks over time. I would use a pool of threads to do this in an effective manner. I wish to have a configuration, for example, 1-10 of discussions where the threads are created as needed and if the number of threads max is reached, tasks are queued. The tasks are timed and repeat if I prefer the automated programming of the executor. The deployment environment and the number of tasks to manage will vary so adaptation of configuration and execution is important. When there is no work, I would like to scale down over time as well. Here is my small tent to reach a suitable with competition from Java API design...

    Now, looking at my options, it seems that ScheduledThreadPoolExecutor is a good match for my needs. So what I would like to implement is a mechanism to define the minimum and maximum number of threads that are created for the thread pool. I understand that it is the number of threads of"base" and the maximum number of threads in the java.concurrency terminology. However, I struggle to create what I would.

    It seems to me that the ScheduledThreadPoolExecutor is always created as a fixed size thread pool. So I can't set that I would have say minimum of threads 1 and a maximum of 10. There is the setMaximumPoolSize() method, I can call on the executor, but he seems to have no effect. If I create my own ThreadFactory, and use that to give me track when new threads are created, create a ScheduledThreadPoolExecutor with one set of threads 1, fixed the limit 2-wire and plan a set of 6 ongoing tasks in loops, it never starts higher than 1 threads. So it seems that it completely ignores the setMaximumPoolSize().

    There is the option to call allowCoreThreadTimeOut() and setKeepAliveTime() on the executor. When I look in the code of ScheduledThreadPoolExecutor, I also see that he prestarts always all discussions until number of threads core set when a task is scheduled. So even if I got the coreThreadTimeout and keepAliveTime for work, attributes that can not help me because it would always just he hike up base number. Otherwise maybe I could use that have a 0 min and max of the number of"basic". Or is the coreTimeOut for some other purpose?

    Well, the question of the "base" here is, is it possible I could create an executor who creates a number dependent threads according to the need (between x 1 and x 2 that I would define, for example, 1-10) but achieved x 2 at the start of the queue of tasks that come? It seems that the whole API is to assume I want either a fixed number of threads with the unbound queue or an unlimited number of threads with a queue bound. No way to have a set bounded discussions with min and max thread bodies, as well as the queue without terminals when the max thread count is reached? And can I get that with ScheduledThreadPoolExecutor enough, please?

    Or maybe I'm just the idea of simultaneity just bad here for somewhere? Is a kind of best practices of competitive access to pigs immediately the maximum number of threads, you think you might need later conflicts of resources? This is why there is only the size of the "fixed"? In all cases, ideas and help is appreciated.

    Well thanks for reading this far... and all answers of course!

    Yes, this particular scenario is difficult to achieve, and Yes, it seems that the standard behavior for me as well. You can sort of achieve this effect by using the feature "allow core of timeout threads. Basically, build you a pool of 'fixed' size with a queue boundless, but the flag 'allow the kernel thread timeout' set to true. This will essentially give you what you want, except that the 'min' size is 0. This seems to be a reasonable compromise to me because you do not need to write custom code (I had already implemented a scenario you describe, a queue of unlimited blocking which 'lies' to be full until the maximum pool size is reached).

    example:

            ThreadPoolExecutor executor = new ThreadPoolExecutor(maxPoolSize, maxPoolSize,
                                                                 60L, TimeUnit.SECONDS,
                                                                 new LinkedBlockingQueue(),
                                                                 threadFactory);
            executor.allowCoreThreadTimeOut(true);
            return executor;
    
  • Almost any time I use the usb climb on my computer (with flash or ipod players) it freezes and crashes windows. I am up to date with drivers with Microsoft and HP, what can I do to stop this?

    I have no problem with the usb drives but in recent times, this happens all the time.  I can go into Device Manager and uninstall my usb drivers and allows that, sometimes, but it's a temporary solution.  I am up to date with drivers with Microsoft and HP, what can I do to stop this?

    Hello

    You can try to use your boot USB storage device and check if that helps. A clean boot helps eliminate software conflicts.

    The following link has steps showing how to perform the clean boot. http://support.Microsoft.com/kb/929135  
    (1) perform the clean boot
    i. Click Start, type msconfig in the search box and press ENTER.
    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
    II. in the general tab, click Selective startup.
    III. under Selective startup, clear the check box load startup items.
    IV. click the Services tab, select the hide all Microsoft Services check box and then click Disable all.
    v. click OK.
    VI. When you are prompted, click on restart.
    VII. after the computer starts, check if the problem is resolved.

    (2) enable half the services
    (3) determine whether the problem returns
    (4) enable half of the startup items
    (5) determine if the problem returns
    (6) repeat the steps above until you find out which program or service is causing the issue
     
    After you determine the startup item or the service that is causing the problem, contact the manufacturer of the program to determine if the problem can be solved. Or, run the System Configuration utility, and then click to clear the check box of the element of the problem.
     
    Note: Please make sure that the computer is configured to start as usual by following step 7 of article http://support.microsoft.com/kb/929135 .

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
    (i) click Start, type msconfig.exe in the start search box and press ENTER. If you are prompted for an administrator password or for confirmation, type your password, or click on continue.
    (II) on the general tab, click the Normal startup option, and then click OK.

  • Boxes with numbers and letters show rather than some images on some websites

    Yammer.com and linkedin.com, images of icons, such as those that display along the top of the screen are not displayed. Instead, I see a rectangle with numbers and letters. I've seen several articles on the rectangles with numbers and letters that apply to the characters but none regarding images. I also tried the steps described in the article on the resolution of the images is not properly displayed, and nothing seems to work.

    Thank you!

    Many sites now display icons using a custom font. Firefox could not be download and using this font personalized for two reasons:

    (1) Firefox to use your fonts favorite instead of the police of the page; or

    (2) Firefox configured to do not to download fonts.

    For more information, see this thread: Yahoo mail display - action buttons like reply, delete, before them and the colors are not displayed. The solution to "clear the cache" does not help.

  • 19 of Firefox does not crashes not with the MSN homepage, Msn home page works with IE 9 well?

    I always put MSN as my homepage with all versions of Firefox. Firefox has suddenly stopped working (crashed 3 days ago). I had been running Firefox 19 a few days with no problem, simply ceased to work with MSN and just frozen screen? I tried MSN with Internet Explorer and no problems? I tried to disable the plug-ins and Java, but no use? The only way I can use Firefox is to use a different homepage, then there is no problem.

    iceman21, thanks for posting back. I'm glad that you have solved your problem.

    I suspect something may have changed, but still I have not discovered what could have any relevant change. A way or an another most users seem to be able to solve the problem, usually by disabling cookies and cache.

  • IE is slow, hangs in Google, will run Firefox under Windows 7 with speed and security?

    I'm not very tech savy English so good please. I have a desktop Dell Studio with Intel 2 Quad Processer. I have used IE for 15 years and more. Started using Google Chrome for speed and better security about 6 months without any problem. Shortly after the beginning of the year Chrome started crashing every day and from 1/14 he broke the 10-12 times a day. I don't like losing stuff and having to stop, re - load, raise or re-store that Chrome was more than that was working properly.

    Will Firefox work in my system operating system. I loan on your security, password protection and other things that are touted on your website on Firefox, but I'm mostly concerned about accidents and what are the causes. Is the problem in my own system and not questions of brower?

    I just want to surf, read, watch you tube, facebook with friends and family. I am 65 years old and retired, and I'm really disguested with all the problems I encounter.

    I think Firefox is a good product, but I need answers to the questions I asked.

    We hope to hear from someone very soon on the issues that I raised. If I download Firefox, should I uninstall IE. I already have an installed Chrome =.

    Thank you
    Jim Yeary
    jyeary3 @ spring TX

    I do not know what is causing your Chrome or IE falls down, but you can give a Firefox. I'll give you a few different things you need to do before installing Firefox to make sure that your computer works well if.

    Install all Windows updates. Check several times until there is no more.

    Update your graphics Driver. Update your graphics drivers to use hardware acceleration and WebGL

    Scan of malware: troubleshoot Firefox problems caused by malicious software

    Once you have done this, install Firefox! How to download and install Firefox on Windows

  • Problem with youtube and other video sites

    I have a problem with youtube and other video sites:

    Everything is up-to-date (flash, FF, my plug ins.) but I get crashes when loading the video. I can hear the sound but I see only the first frame of the video.

    I've reinstalled flash/firefox or tried updating them again for about 4 times now and my cookies/cache has also been errased which i usually don't do. If i enter FF's safe mode it also freezes.
    

    I hope someone can help, I looked for answers on google before and I tried everything I saw, but it did not help.

    GRTS,
    agrash

    I had the same problem, I uninstalled the plugin Flash player (Adobe Flash Player 11.0.1 152) and the problem is solved. I installed the plug-in again and the problem came back. So right now I have no flas Player liked-in, but I don't have too much problem. I hope that I will not find another problem, but it seems that everything is OK.

  • Why is the uncompadible again toolbar google with ff5 and his long, since the introduction of ff5 why havnt u fixed it

    Why is the Google toolbar always uncompilable with ff5 and his long, since the introduction of ff5, why do u not have this fixed

    You are welcome.

    Please click the button solved it next to the answer that meets or solved your problem of Firefox support, it appears when you are connected, so this thread is marked as solved to help other users who may have this same problem.

  • Tecra S3 Windows Explorer crashes on copying files and other actions

    Tecra S3 Windows Explorer crashes frequently on the copy of files and other actions. In the system event log, you find the event ID 26 Application Popup Explorer.exe Application error problem (in Dutch: Toepassingsfout) read write memory error.

    Start the Softex Omnipass Service service. Change the startup type to automatic. The problem will not happen again. You don't have to use this application after the service started.

    Post edited by: wboere

    Hello

    Unfortunately, this path is not easy to say anything because, who know what did you do with OS and how is your personal configuration. If this problem occurs because some time roll back OS to an earlier time using System Restore tool.

    Also check this page useful http://www.helpwithwindows.com/techfiles/explorer-crashes.html maybe you'll find some answers there.

  • Problems with MCE and G10-100.

    Hi all,

    I have an old G10 from 6 months which was very problematic to say the least.

    The main problem is with MCE and MY TV on the setup and constant of hanging and crashing when it is chosen also when it works sometimes in fact the image and sound just break up.

    I already reinstalled the recovery using CD, but nothing no is all the problems again.

    Any ideas?
    Thanks in advance

    PauLR

    Post edited by: PaulR

    Hi Paul

    One of my friends has laptop Qosmio and I had the opportunity to check this device. Beautiful part of material.

    On his unit, everything works fine. I checked the settings of MCE almost all because I was very interested in this topic. I didn t find something that can be like the issue you described.

    In my opinion if there is a problem after installing the OS using the recovery CD you should contact your local dealer or service partner. I'm sure that your device has a valid warranty and if there is a serious problem the warranty will cover all costs.

  • I want to buy Toshiba laptop with Ubuntu and windows

    I want to buy a new laptop.
    I don't want to pay 300 quid for yet another stupid Windows (if they are just a version properly, people don't need to keep buying new... oh wait... they make more money...).

    Others don't offer laptops with Ubuntu (and not windows).

    I find myself here, and Toshiba appear also does not provide laptops without windows.
    Why? Why Toshiba offer laptops with pre-installed Ubuntu with no windows?

    I use Ubuntu for 3 years, and altogether, he transformed my daily calculation. No more bloody virus, not 5 minutes log-ins/closures, no more program - crashing down the entire system. It is faster, safer, more flexible and * free *.

    But because Toshiba do not appear to offer it, they can't get my habit (I'm in Ireland, so Toshiba options open to me may be different in other countries).

    Hello

    First of all it s a forum from user to user and you get no response from Toshiba here in the forum.

    But as much as I know that Toshiba laptops are not delivered with the distributions Linux.
    Of course, you can install Linux if you want, but laptops are delivered with the Windows operating system. As far as I know with win 7 64 bit and 32 bit OS.

    Welcome them

  • Deploy a Lenovo with SCCM and enable Bitlocker during deployment?

    Hello!

    Anyone got information about TPM activation and activate bitlocker during the deployment of the new Lenovo with SCCM?

    Something like that but for Leonovo

    http://www.nullSession.com/2010/12/02/enable-TPM-in-task-sequence-with-SCCM-and-CCTK/

    Thank you, Magnus

    You can automate the secure TPM activation process, please see my post in another thread:

    http://forums.Lenovo.com/T5/ThinkVantage-Technologies/activate-TPM-chipset-and-suppress-F10-at-reboo...

    Any questions, let me know

Maybe you are looking for

  • How can I empty trash 'Genius '?

    10.7.5, old 32-bit Macbook Pro OSX. The Genius bar went yesterday to resolve a problem.  During which, the genius deleted all my music, photos and movies by being connected with a disc of Triage and the magic Apple Genius ID.  He stopped at the comma

  • spinning wheel of the omnipresent death in Yosemite. Any suggestions?

    The spinning wheel of death is omnipresent in my Yosemite. Can anyone help?

  • stopped working eHome Ir remote

    win xp sp3, Media Center 2005, ver 5.1.2700.2230 Microsoft eHome IR Transceiver, eHome IR USB receiver. Driver details: C:\windows\system 32\drivers\irbus.sys 1. disabled in device drivers, let the OS to detect restarts. 2 system restore in time when

  • I can't access permissions file/program...have lost control of my pc

    I'm the only person using my pc. I cannot change access permissions... or even as an administrator. topic:... is installed on my pc and I can't remove it even though I tried many different things. I seem to be on some sort of net work... .but I shoul

  • hp_tools deleted (e)

    I accidentally deleted the files inside the partition of Hp tools. How can I recover these files? and these files are needed for the system or is it not important?Please help me my laptop is hp pavilion pavilion dv7 Windows 7 64 bit