LoadPanel causes GPF

Hello

While preparing a demo , I came across the following behavior:

panel_handle = LoadPanel (0, PANEL, PANEL);

causes an error of "General Protection.

Of course, the second parameter is wrong as there should be a file name, but I would have assumed that CVI should not hang but an error instead... it is a warning.

Should it?

Hello Wolfgang,

I think we could reach the old behavior by turning warnings into errors. Basically, users would be to toggle this option or by warning by groups of warnings (levels).

A task to do has already been created, id 381598. It should be implemented in a future version.

Best regards

= Nelu F. | National Instruments.

Tags: NI Software

Similar Questions

  • RunUserInterface cause GPF on the 2nd round

    CVI 7.1.1

    DLL of CVI called by TestStand 3.1.1

    By pressing the sequence 2nd time, RunUserInterface cause general protection fault.

    Manually unload all modules in TestStand does not help.

    However, manually, stop tscvirun in CVI after the 1st round, work.

    DiscardPanel is called in the 1st round.

    How to find resources is now in memory?

    TIA.

    Problem solved.  There are dynamically created tabs (using EasyTab_ConvertFromCanvas) on the Panel, unaware how close to Panel.

  • The DiscardCtrl causes GPF

    Hi all

    I just stumbled across a problem that seems too simple to be true. If I call DiscardCtrl callback command _that_ or if I call it since the recall of panel without swallowing the same, I get a general protection fault.

    Here is an example. To test, double-click the control, and it crashes. If you double-click on the control panel or use "return 1", no problem:

    #include 
    #include 
    static int CtrlSlide=0, StyleIndex=-1;
    static int AuthorizedStyles[]={        // Should work on all of those        CTRL_NUMERIC_THERMOMETER,        CTRL_NUMERIC_TANK,        CTRL_NUMERIC_GAUGE,        CTRL_NUMERIC_METER,        CTRL_NUMERIC_KNOB,        CTRL_NUMERIC_DIAL,        CTRL_NUMERIC_VSLIDE,        CTRL_NUMERIC_HSLIDE,        CTRL_NUMERIC_FLAT_VSLIDE,        CTRL_NUMERIC_FLAT_HSLIDE,        CTRL_NUMERIC_LEVEL_VSLIDE,        CTRL_NUMERIC_LEVEL_HSLIDE,        CTRL_NUMERIC_POINTER_VSLIDE,        CTRL_NUMERIC_POINTER_HSLIDE,        CTRL_NUMERIC_THERMOMETER_LS,        CTRL_NUMERIC_TANK_LS,        CTRL_NUMERIC_GAUGE_LS,        CTRL_NUMERIC_METER_LS,        CTRL_NUMERIC_KNOB_LS,        CTRL_NUMERIC_DIAL_LS,        CTRL_NUMERIC_LEVEL_VSLIDE_LS,        CTRL_NUMERIC_LEVEL_HSLIDE_LS,        CTRL_NUMERIC_POINTER_VSLIDE_LS,        CTRL_NUMERIC_POINTER_HSLIDE_LS};
    
    static char* StrStyles[]={        "THERMOMETER",        "TANK",        "GAUGE",        "METER",        "KNOB",        "DIAL",        "VSLIDE",        "HSLIDE",        "FLAT_VSLIDE",        "FLAT_HSLIDE",        "LEVEL_VSLIDE",        "LEVEL_HSLIDE",        "POINTER_VSLIDE",        "POINTER_HSLIDE",        "THERMOMETER_LS",        "TANK_LS",        "GAUGE_LS",        "METER_LS",        "KNOB_LS",        "DIAL_LS",        "LEVEL_VSLIDE_LS",        "LEVEL_HSLIDE_LS",        "POINTER_VSLIDE_LS",        "POINTER_HSLIDE_LS"};
    
    int CVICALLBACK cb_TestSRP (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2) {
        switch (event) {
            case EVENT_RIGHT_CLICK: DoSomething(panel, control); break;
        }
        return 0;
    }
    
    int CVICALLBACK cb_QuitSRP (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2) {
        switch (event) {
            case EVENT_COMMIT: QuitUserInterface (0); break;
        }
        return 0;
    }
    
    int CVICALLBACK cbp_Change(int panel, int event,
            void *callbackData, int eventData1, int eventData2) {
        switch (event) {
            case EVENT_LEFT_DOUBLE_CLICK:
                if (CtrlSlide!=0) DiscardCtrl (panel, CtrlSlide);
                CtrlSlide = NewCtrl (panel, AuthorizedStyles[(++StyleIndex)%(sizeof(AuthorizedStyles)/4)], "", 50, 80);
                SetCtrlAttribute (panel, CtrlSlide, ATTR_CALLBACK_FUNCTION_POINTER, cb_TestSRP);
                SetCtrlAttribute (panel, CtrlSlide, ATTR_LABEL_TEXT, StrStyles[StyleIndex%(sizeof(AuthorizedStyles)/4)]);
                return 0; // Change it to 1 and there's no problem
        }
        return 0;
    }
    
    int main (int argc, char *argv[]) {
        if (InitCVIRTE (0, argv, 0) == 0)  return -1;    /* out of memory */
    
        int Pnl = NewPanel (0, "Test slide popup", 100, 100, 300, 300);
    
        int CtrlQuit= NewCtrl (Pnl, CTRL_ROUNDED_COMMAND_BUTTON, "QUIT", 0, 0);
        SetCtrlAttribute (Pnl, CtrlQuit, ATTR_VISIBLE, 0);
        SetCtrlAttribute (Pnl, CtrlQuit, ATTR_CALLBACK_FUNCTION_POINTER, cb_QuitSRP);
        SetPanelAttribute(Pnl, ATTR_CLOSE_CTRL, CtrlQuit);
        SetPanelAttribute(Pnl, ATTR_CALLBACK_FUNCTION_POINTER, cbp_Change);
    
        cbp_Change(Pnl, EVENT_LEFT_DOUBLE_CLICK, NULL, 0, 0);
    
        DisplayPanel(Pnl);
        RunUserInterface();
        return 0;
    }
    

    The problem can be "solved" read the help :

    You can't throw a control in the callback function to control, except when he responds to the EVENT_COMMIT event. Take control of its own in response callback function to other events may result in unpredictable behavior.

  • CVI 8.1 PlotPackedDigitalLines() causing GPF on Win7 Machines

    I learn some stuff FPGA, and my project to learn right now is a Logic Analyzer.

    I have an environment to test the FPGA, and it does not work properly.

    In the attached code, I have 'touch' the FPGA, an acquisition of data and then directed the dat to PC.  All this seems to work fine.

    Then I try to display the data in a digital chart...  Line 63 of the code:

    PlotPackedDigitalLines (Panel, PANEL_DIGGRAPH, LA_Memory, 16 * 1024 * 1024, VAL_SHORT_INTEGER, (void *) 0x00ff);

    When the code hits this line, I have a General Protection Fault.  It doesn't matter if it's in the debugger or standalone executable.  Occurs on multiple computers (all in running Win7 - sorry, I have not all other platforms)

    In the research forums, I found that this maybe related thread/report:

    http://forums.NI.com/T5/LabWindows-CVI/memory-leakage-in-digital-graph-control/m-p/674258/highlight/...

    What is the problem that I am running?  Is this a bug in CVI, or I'm doing something particularly stupid?  If it's a bug, is there a patch or something to fix?

    Help!

    Maybe it's a false indication, that I've never used this feature, but the documentation says the mask must be the same data type. You can try to use a pointer to a constant short integer.

  • CVI executable causes an on update of Windows 10 anniversary 0xC0000005 Access Violation.

    Created executables always causes an Access Violation (0xc0000005 exception) to the closing period on Windows 10 RS1 (update of the anniversary).

    This problem occurs in LabWindows CVI 2015 and 2015 SP1.

    How to reproduce: simple program to create and compile with the (x 86) release profile by default.

    for example:

    #include "test.h".

    int ph;

    int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpszCmdLine, int nCmdShow)
    {
    If (InitCVIRTE (hInstance, 0, 0) == 0)
    Returns - 1; / * memory * /.

    pH = LoadPanel (0, "test.uir", group of EXPERTS);
    DisplayPanel (ph);
    RunUserInterface();

    return 0;
    }

    int CVICALLBACK CallExit (int, int int event, control panel,
    void * callbackData, int eventData1, int eventData2)
    {
    switch (event)
    {
    case EVENT_COMMIT:
    QuitUserInterface (0);
    break;
    }
    return 0;
    }

    The problem is visible on the control panel > reliability history > Error Reporting:

    Also the code of the executable file (exit code) is always 0xc0000005 instead of zero.

    To check out more easily code can be called the executable through file .bat:

    off @echo
    Test.exe
    echo ExitCode = %ERRORLEVEL%
    pause

    I have observed that if multiple instances of the same program are running, only block when the last instance is closed. It seems that the problem occurs at the time that the CVI runtime is released from the ram. (The latter is only a guess)

    Hello

    We did some research and saw that the failure is related to some police files in

    c:\Windows\SysWOW64\cvirte\fonts

    c:\Windows\System32\cvirte\fonts

    Could you try deleting these files and see if the heater is always performed. If this isn't the case, it would be a work around if you do not use these fonts.

    We continue the investigation to see the exact cause

  • GPF using the Table control

    Hello world

    We use a table control to display the log files. Each row of the table represents a log file entry. In addition to that we have put in place

    Some filter chopsticks (string tonalite) to speed up filtering. This means that only the entries corresponding to these substrings are shown. So whenever the filter options

    changed to renew the contents of the table.

    This is done by DeleteTableRows, looking for entries to display, InsertTableRows and SetTableCellRangeVals.

    It works very well.

    But if we remove all the contents of the table (caused by the filter options) and then hit a button (even if the focus is on the table) you get a GPF on ProcessSystemEvents.

    This occurs only after inserting a large number of rows in the table before deleting all the. For example, a table with 5000 x 2 (rowsxcolumns) reduced to 0x2.

    1 create a table with 5000 x 2 (rows x columns) control elements.

    2 remove all lines

    3. press tab until the control panel to get the focus.

    4. hit Enter for example

    => Crash

    Someone has an idea? We have already 'dimmed' CTRL, but this is not enough to avoid that the focus on the table by pressing the tab key. So, which leads to an accident as well.

    Thanks for the help

    Philipp

    Yes, it is a known issue (396240), although it is not actually on time last updated known issues. Unfortunately there is no good solution, other than just by waiting for a version corrected to be released, which should happen soon.

    Luis

  • Update Verizon iPhone 5 new IOS 10 problem: cannot receive/send calls. Shop Verizon says it's an update causing Apple to popular phones to crash all day. Any input or advice, please?

    Update Verizon iPhone 5 new IOS 10 problem: I can't receive/send calls. The store Verizon says it's phones a popular causing update Apple crash all day. Any input or advice, please?

    Don't you say no service at the top?

  • Since the upgrade to Sierra MediaLibraryService is causing a memory leak

    Hello.

    I upgraded to Sierra, since as soon as Itunes is launched, the com.apple.medialibraryservice is originally a large memory leak, it keeps in ram more until she takes all (16 GB) and significantly slows down the computer.

    I tried to reset the nvram and smc memory, doesn't change anything.

    Does anyone have an idea on what is causing this leak and is there a solution?

    Yes, I noticed this also. After that I opened iTunes, it's just a matter of time before all the memory gets used up and all departure is wobbly. In particular, bluetooth really gets bug after a certain time, and as soon as I quit iTunes, that's fine.

  • Presentation causing Sierra to Crash and disconnection

    Hello

    I noticed a problem with macOS Sierra running on a Mid 2015 15 "MacBook Pro with the retina display. Sometimes when I press F3 to access presentation and my several computers desktop computer freezes and goes back to the login screen.

    When I log in, it's like I started a new session and the apps I had open start back once again, but with their wiped sessions. This happens to me about 3 times in a day's work, most of the time that exposed works very well. Very strange!

    Did anyone else encounter this problem at all?

    Hi there, stvwlkr!

    Thank you for joining the communities Support from Apple! Looks like you are having problems with the Mission control. I know how important it is to make sure that it works correctly. What you might want to try is then a specific restart. Read this article for trying safe mode if your Mac does not end commissioning. Although this article is about the computer does not start correctly, it can also perform repairs and stop startup items that can cause problems.

    Another option you can try is in this article: How to test a problem in another user on your Mac account. This will allow you to check to see if the problem is specific to the user or the system-wide.

    See you soon!

  • iOS default keyboard causes Apps to the freeze on more than 7

    The software keyboard appears to cause random app freezes. It's the APPLE keyboard. The gel seems to occur more frequently in the predictive text or AutoCorrect scenarios. It also occurs when you move the selector text. In addition, the same application / combinations of words seem to trigger the gel several times. More trigger-happy is hashtags in facebook.  In addition, type point 4 below, Frost occurred during after erasing an accidental space after the word "effective" here is what I tried:

    1: turn off predictive text.

    2: more backup on my 6s and the problem was not persistent.

    3: reset and recovered my newest 7s and the problem was persistent.

    4: write notes in Evernote and sticking them in the fields of text on other applications. Of workaround prevents me from losing the entered text before, but does not freeze.

    I have a very similar problem.  It is reproducible even after power off or hard reset (power and set "home" button).

    For example, I found today that it happened all the time when I tried to type "Otley" in a text message.  The keyboard froze as soon as that word was typed.  Normal service has resumed after I close the application.

    I tried the option Dictionary reset without any benefit.

    I'm on an iPhone SE with 10.5.2

  • Update of security 2016-001 cause major accident

    I just updated the 2016-001 (Sep 02/16) security update on El Capitan v10.11.6 and it has caused a major system failure, twice.

    All applications are unusable, cannot load system preferences, constantly get "led unexpected resignations" error windows pop up that won't go away.   It wont let me report it to Apple and ignore just made another appear.

    First time I started to the Cmd - R system recovery and reloaded OS - X and spent a few hours fixing all the links of the app, then reloaded the updated security after several own boots and's done it exactly the same again.

    Having just now booted to safe mode and empty the contents of/Users/yourname/Library/Caches in the trash, but it made no difference.  Have a time machine backup of it is 6 weeks, but not yet used.

    Seems that I'm not alone... maybe Apple was too fast it rush out before the big event in next weeks...

    Trash content of/private/var/folders/and restart.

  • iPad repeatedly crashing - caused by downloading movies

    I meet my 4th generation iPad's repeated crashes that seem to be caused by iTunes, downloading a movie automatically (so undemanded). There are not enough room on my iPad to download the movie, so I don't not demanding, but the iPad tries repeatedly to download the movie. I disabled automatic downloads for music, apps etc but there is no box to "TIC TAC" for movies.

    I'm at the end of my patience, my iPad becomes almost unusable due to the constant breaks down. I think I'll have to do a reset to the factory settings, but I am not convinced that it will heal. I watched the movie on my Apple TV so I can't download it!

    Any suggestions would be welcome because I am extremely bothered by this, but in every other sense, I love my iPad. But not when it crashes...

    Reset: hold the Home and Power buttons until you see the Apple logo (10 to 20 seconds).

    If this does not help, you may need to restore your iPhone: https://support.apple.com/en-us/HT204184

    If your backup in iTunes, make sure that it is an encrypted backup.

  • Whenever I have mark an unread email causes Mail to quit. I use El Capitan. Any suggestions please?

    Whenever I have mark an unread email causes Mail to quit. I use El Capitan. Any suggestions please?

    Try to rebuild the mailboxes

    Address postal (El Capitan): rebuild the mailboxes

  • 2016-004 security causing the finder update restart frequently?

    Yesterday I installed the 2016-004 security update on my iMac desktop. He seemed to have installed correctly but the finder now randomly restarts when I try to navigate/access of files. Sometimes, it crashes and the files don't load in the finder windows. If I restart the finder, manually, they will be available again, but the problem that happens all minutes of use. There do not appear to be updated later, and I don't know if it is possible to restore? I have a clone and a backup time machine, but I don't know how I would rollback of security update with time machine. I tried to restart but the problem still occurs. I tried updating to El Capitan months but had to restore the Yosemite system, because the system was apparently unable to manage treatment. I have the max 8 GB of ram installed. Any help would be greatly appreciated because it comes from my desktop and I need to restore the service as soon as possible.

    Hello, jusbajan!

    Thank you for joining the communities Support from Apple! Looks like you have a problem with the Finder doesn't work don't properly on your iMac. I know how it is important to be able to use the Finder and make it work properly at all times. I suggest you to start the computer in safe mode to see if the problem that is happening there. Read this article here: try safe mode if your Mac does not start-up. Even if the Mac starts up properly, safe mode will eliminate startup problems that could cause problems like what you experience with the Finder.

    Start in safe mode

    Follow these steps to start in safe mode.

    1. Start or restart your Mac.
    2. As soon as you hear the startup tone, hold down the SHIFT key.
    3. Release the SHIFT key when you see the logo Apple appears on the screen.

    After the Apple logo appears, this may take longer than usual to reach the login screen or your office. This is because your Mac performs a check of directory of your drive to boot in safe mode.

    To leave safe mode, restart your computer without pressing any keys during startup.

    If you do not hear a startup chime after pressing the power button, see what to do if your Mac does not illuminate.

    If you use FileVault

    If your boot drive is encrypted with FileVault, you can always hold the SHIFT key immediately after switch on/off your Mac to boot into safe mode. You may be prompted to log in twice as part of this process - first to unlock the boot disk and a second time to log in the viewfinder. You can release the SHIFT key after seeing the first login screen.

    If these steps do not help, check and see if the problem occurs with a Test user by following this link: How to test a question in another account on your Mac user. The Test user will allow you to see if the problem is specific to the user or the system-wide.

    See you soon!

  • Small vibrations cause damage to Macbook Air?

    MacBook Air 13 "early 2015. When I work on my mac on different tables, a small movement can cause a small table vibration that makes Macbook screen, shake (very little, but when even he shakes). It is not very noticeable, but I was wondering if these vibrations can damage the hinges of the Macbook and affect the ability to hold the screen in the future. I also noticed that the Macbook Pro hinges are more difficult, than Air (probably due to the fineness of the Air).

    Any movement causes stress and eventually lead to the failure of the given element.  It's a question of degree and frequency.  According to your description. continue to use your MBA and ignore this issue.  It is to small to worry.

    Ciao.

Maybe you are looking for