Problems to regain the QML C++ enum; JS is undefined instead of an int.

I followed the path of BB to regain the enums in C++ QML discussed here:

http://supportforums.BlackBerry.com/T5/native-development/HOWTO-C-enum-in-QML/m-p/2345641#M21139

However I'm getting back the value JS "undefined" of my logic of C++ biz instead of what I want (i.e., an integer that corresponds to my enum type).

The scenario is that I want to restore the data from the application of a backup and do a lot of validation of each step of the restore if something goes wrong, I can post a dialogue of restoration has failed no credits that could help the user recover.

I have a class enum setting as follows:

#ifndef RESTOREFAILURETYPE_HPP_
#define RESTOREFAILURETYPE_HPP_

#include 

class RestoreFailureType: public QObject
{

    Q_OBJECT
    Q_ENUMS(Type)

public:

    enum Type {
        Success = 0,
        JSONReadFail = 1,
        UndoFileRemoveFail = 2,
        CopyToUndoFail = 3,
        DestFileRemoveFail = 4,
        CopyBackupFileFail = 5,
        ValidateSchemaFail = 6
    };

    RestoreFailureType();  // Empty constructor defined in .cpp file
    virtual ~RestoreFailureType(); // Empty destructor defined in .cpp file
};

#endif /* RESTOREFAILURETYPE_HPP_ */

I save this class as an increables type in my app delegate:

qmlRegisterUncreatableType("myApp.restoreFailureType", 1, 0, "RestoreFailureType", "RestoreFailureType provides enum values.  It cannot be instantiated.");

I have a DataManager class that takes care of managing the operations of store, backup, restore, etc CRUD/user support, with what restoration function:

In DataManager.hpp:

Q_INVOKABLE RestoreFailureType::Type restoreFromBackup(QString backupFileName, int selectedIdForUndo);

in DataManager.cpp (here I show a fake draft.  Since not even that much is still working, the rest of the logic of biz is not relevant to this discussion:

RestoreFailureType::Type DataManager::restoreFromBackup(QString backupFileName, int selectedIdForUndo) {
    return RestoreFailureType::Success;
}

And in my QML UI layer, I import the type:

import myApp.restoreFailureType 1.0

And a FilePicker component supports passing the name of the backup file to the DataManager.  The FilePicker and his onFileSelected() slot:

      FilePicker {
            id: backupRestoreFilePicker
            type: FileType.Other
            allowOverwrite: true
            directories : ["/accounts/1000/shared/documents/MyApp"]
            viewMode: FilePickerViewMode.ListView
            onFileSelected: {
                if (mode == FilePickerMode.Saver) {
                    // Save mode stuff for doing backups
                } else if (mode == FilePickerMode.Picker) {
                    var restoreResult =  _dataManager.restoreFromBackup(selectedFiles, _appSettings.selectedId);
                }
            }
        }

I tried to remove the code down for everything that is relevant to this question.

When I put a breakpoint on the line where the var restoreResult JS is defined:

var restoreResult =  _dataManager.restoreFromBackup(selectedFiles, _appSettings.selectedId);

and step, restoreResult, var JS becomes the value "indefinite".  From what I read in the thread mentioned above, restoreResult is supposed to get a whole number (in this case he should get zero method justiciable restoreFromBackup how I generated), that I can then compare to imported enum type.  I should be able to compare the return value of restoreFromBackup to see if it is equal to one of:

RestoreFailureType.Success

// or:

RestoreFailureType.JSONReadFail

// or:

RestoreFailureType.UndoFileRemoveFail

// or:

RestoreFailureType.CopyToUndoFail

// etc...

I think others have got it working, and miss me him probably just a few details.  A lot of satisfaction to anyone who can identify the error/omission or even give a good lead.  In addition, comments are welcome on if I'm trying to manage this scenario in a recommended manner.  My intention is to use the listed failure code to customize a SystemDialog message that may help the user recover from a restore operation has failed.  The restore file might have been corrupted in a way that is not analyzable JSON, or the user could have selected a file that isn't even a backup file created by my application, or they could have revoked authorization, or JSON can be analyzable, but the user could not resist the temptation to manually change the values in their backup file etc.

Hmm,

Sometimes all you have to do is to talk, even if you speak to yourself.

I changed my function DataManager to return my type listed as int instead of as the enum, and I don't have the correct integers in QML, anything can still be compared using the enumerated type.  So:

Q_INVOKABLE RestoreFailureType::Type restoreFromBackup(QString backupFileName, int selectedIdForUndo);

becomes

Q_INVOKABLE int restoreFromBackup(QString backupFileName, int selectedIdForUndo);

and

RestoreFailureType::Type DataManager::restoreFromBackup(QString backupFileName, int selectedIdForUndo) {
    return RestoreFailureType::Success;
}

becomes

int DataManager::restoreFromBackup(QString backupFileName, int selectedIdForUndo) {
    return RestoreFailureType::Success;
}

and I can do now:

var restoreResult =  _dataManager.restoreFromBackup(selectedFiles, _appSettings.selectedId);if(restoreResult == RestoreFailureType.Success) { // Do success stuff} elseif(restoreResult == RestoreFailureType.JSONReadFail { // Do JSON read fail stuff} else...

This isn't quite how it was recommended in the thread, I mentioned in the previous post... but it seems to work for what I need.

Tags: BlackBerry Developers

Similar Questions

  • On the QML and C++ integration (getting "undefined")

    This subject has been discussed often and I went through a lot of discussions, but I have not found a solution for my problem so far.

    What I want to do in my application:

    I have a container that displays an html page. No, I want a part of the html page dynamically filled a C++ function. Here is my Code:

    // HTMLCreator.hpp
    
    #ifndef HTMLCREATOR_HPP_
    #define HTMLCREATOR_HPP_
    
    #include 
    
    class HtmlCreator : public QObject{
    Q_OBJECT
    Q_PROPERTY(QString html READ html WRITE setHtml NOTIFY htmlChanged)
    public:
        HtmlCreator(QObject *parent = 0);
        ~HtmlCreator();
    
        Q_INVOKABLE QString html();
    
        Q_INVOKABLE void setHtml(QString html);
    
    signals:
        void htmlChanged(QString);
    
    private:
        QString m_html;
    };
    
    #endif /* HTMLCREATOR_HPP_ */
    
    // HtmlCreator.cpp#include "HtmlCreator.hpp"
    #include 
    
    QString HtmlCreator::html(){
        return m_html;
    }
    
    void HtmlCreator::setHtml(QString html){
        if(html != m_html) {
            m_html = html;
            emit htmlChanged(m_html);
        }
    }
    
    // applicationui.cppPage* ApplicationUI::doLoadPageDetails(){
    
        qmlRegisterType("myHtmlCreator", 1, 0, "HtmlCreator");
    
        QmlDocument *qml = QmlDocument::create("asset:///PageDetails/PageDetails.qml").parent(this);
        qml->setContextProperty("app", this);
    
        HtmlCreator *HtmlCreator = new HtmlCreator();
        qml->setContextProperty("HtmlCreator", HtmlCreator);
    
        Q_INVOKABLE QString HTMLString = "";
    
        HTMLString.append("
    A
    a
    "); HTMLString.append("
    B
    b
    "); MinutesData->setHtml(HTMLString); Page* newPage = qml->createRootObject(); AbstractPane *root = qml->createRootObject(); return newPage; }
    // PageDetails.qml
    
    import myHtmlCreator 1.0
    
    Page{[...]Container {
            layout: DockLayout {
            }
            horizontalAlignment: HorizontalAlignment.Center
            verticalAlignment: VerticalAlignment.Top
    
            ScrollView {
                id: scrollView1
                scrollViewProperties {
                    scrollMode: ScrollMode.Vertical
                }
                layoutProperties: StackLayoutProperties {
                    spaceQuota: 1.0
                }
    
                scrollViewProperties.pinchToZoomEnabled: false
                scrollViewProperties.overScrollEffectMode: OverScrollEffectMode.None
    
                visible: true
                WebView {
                    id: webViewScrollable1
    //                url: "local:///assets/examples/test4.html"
    
                    settings.viewport: {
                        "initial-scale": 1.0
                    }
                    settings.zoomToFitEnabled: false
                    settings.textAutosizingEnabled: false
                    settings.defaultFontSizeFollowsSystemFontSize: true
                    settings.imageDownloadingEnabled: false
                    settings.binaryFontDownloadingEnabled: false
                    settings.cookiesEnabled: false
                    settings.javaScriptEnabled: false
                    settings.activeTextEnabled: false
    
                    html: " ...  lots of html code displayed correctly" +
                    HtmlCreator.html +
                    "" +
                    ""
                }
            }
    

    Now to the point where with HtmlCreator.html do I put her thong in the app I see "undefined" text

    What I'm doing wrong here?

    I found the solution!

    I missed to add my class as an attached object. So the container, the label or in my case WebView where I want to use the Q_Properties defined in my class, I have to add:

    attachedObjects: [
      HtmlCreator {
        id: htmlCreator
      }
    ]
    

    and then I can get the property

    htmlCreator.html
    

    But unfortunately
    the string I get is empty, so I'm still something missing here.

  • problem with changing the order of tab on tab control

    Hello

    I am aware that the same question has been asked over three years - but I can't yet find the problem in what I'm doing...

    Description: I have two controls tab, A tab with three tab and tab B with two controls on a Panel. For the following discussion, tab B is of no interest. Each tab control has several numerical indicators, of type integer and double. Now, I want to add a fourth tab control to A tab. This method works.

    Following and problematic stage, in the Publisher of the IUR I select the new tab (most right) and move two positions to the left. It's still ok until I try to display a numeric value of order of tab 3 (the new tab control is left to it). I get an error in calls to SetCtrlAttribute, complain about an invalid control ID... However, I didn't touch any control over the tabs, or add a new control. In addition, I did not touch the generated include file... Visual inspection did not show any changes in the include file (the new tab control is listed only when certain controls are added)

    Posting numbers on the first/far left tab control work only on 3 and 4 which are suitable for the new (and still empty) new tab will generate this error. Adding a control to the new label does not change the bahavior.

    Help is appreciated!

    Wolfgang

    Wolfgang,

    When you get the handle for your tab using GetPanelHandleFromTabPage:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 0, & TabHandle);

    the third parameter is an index for the specific tab you want to address.  If you change the order of the tabs, you can change the index, too.  For example, assume that you have a digital control on the third tab from left to right.  You want to assign some value, so this, you:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);

    SetCtrlVal (TabHandle, TAB_numMyNumeric, 1);

    Now, you add a new tab to the left of the tab with the digital contorl.  The new tab is now index 2 and the original tab is index 3.  When you call:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);

    you get the handle to the new tab.  There is a control with the same ID as TAB_numMyNumeric, so that you get a runtime error.

    Personally, I like to use an enumeration to my tabs so I can keep the lines:

    enum {MY_FIRST_TAB, MY_SECOND_TAB, MY_THIRD_TAB,...};

    So if I redesign the tabs or add a new one I just re - order enums and everything works fine.  Also, I used the same names in my constants of tab, to help keep things straight:

    GetPanelHandleFromTabPage (MainPanelHandle, PANEL_FIRST_TAB, MY_FIRST_TAB, & TabHandle);

    Tony G.

  • Node of devices for the control of 'ENUM '.

    Hello world

    I had some problems to understand the 'NumItem' property for the control to enum with property node.

    I am trying to use this property to control the iterations of a 'loop' For.

    Here is the related link: http://forums.ni.com/ni/board/message?board.id=170&message.id=400341&query.id=479803#M400341

    Thanks for jmcbee.

    the problem I have is that I did not find property 'NumItem' it, or I find some possible properties instead of him.

    I be gracious, if someone of you could give me an idea.

    PS: I'm using Labview 8.6.

    Thanks in advance,

    -Kunsheng

    "NumItem" is short for "number of items". Glance for this.

  • Determine the owner of the QML object attached to C++

    I have a C++ class that I exposed to QML the usual way, and I'm tying to control QML. The problem is that it cannot be instantiated without setting. This is exactly the same that how LayoutUpdateHandler works, but I just can't understand how this class manages about who controls it is attached to.

    The LayoutUpdateHandler constructor takes a pointer to a control as an argument. There is a constructor without arguments, but the docs say that if you use it, there is no way to define the target control later, do the actually useless LayoutUpdateHandler. Here is a typical use of QML:

    Container {
       attachedObjects: [
          LayoutUpdateHandler {
             onLayoutFrameChanged: {
                // ---Do some stuff
             }
          }
       ]
    }
    

    Don't forget that LayoutUpdateHandler MUST have the target of control set when it is instantiated, it can be done later. Somehow the code above works, and the class instantiated with the parent container as the argument to the constructor object. Now I need to do the same thing with my own class, but I can't understand how to move on the instantiation of the parent control. No matter what I try the argument never happened and only the parameterless constructor is never called.

    Anyone have an idea how it works and how I can get the QML to instantiate my class with the parent control passed as argument?

    You're not the only dev who has tried to do.  I did it too and have been successful. You are on the right track.

    Your class must inherit from BaseObject and override its classBegin() function.  This function will be called after your class has been instantiated, and her mother has been defined.

    For example, I'm doing something like this:

    class MyClass : public BaseObject
    {
    public:
        explicit MyClass();
        explicit MyClass(Control *target)
        virtual ~MyClass();
        virtual void classBegin();
    private:
        void setTargetControl(Control *target);
    };
    
    MyClass::MyClass() : BaseObject(0)
    {
    }
    
    MyClass::MyClass(Control *target) : BaseObject(target)
    {
        setTargetControl(target);
    }
    
    MyClass::~MyClass()
    {
    }
    
    MyClass::classBegin()
    {
        BaseObject::classBegin();
        if(parent()) {
            Control *target = qobject_cast(parent());
            setTargetControl(target);
        }
    }
    
    MyClass::setTargetControl(Control *target)
    {
        // Do your actual initialization here, which requres the target control.
        // In this case, the target control is the control that has this as part of
        // its attached objects block in QML-land
    }
    
  • Exponent of the QML C++ objects

    Hello

    I am new to qml and BlackBerry. What I want to do is basically described in this link:

    http://developer.BlackBerry.com/native/documentation/Cascades/dev/integrating_cpp_qml/index.html#exp...

    under "C++ objects exposing to QML.

    I did everything as described in the link. The point where I'm stuck is how to get out of here

    MyCppClass *cppObject = new MyCppClass();
    qml->setContextProperty("cppObject", cppObject);
    

    here

    Label {
      text: "Value of cppObject: " +  cppObject.value
    }
    

    When I know the code I need to create an instance of my class in the main.cpp file [MyCppClass * cppObject = new MyCppClass();] then setContextProperty to make it able to expose values to qml [qml-> setContextProperty ("cppObject", cppObject)]; and I can get the value by writing "cppObject.value" in my qml file.

    However, I get this result in the Console:

    ReferenceError: Can't find variable: cppObject

    I need to add something in the qml code so that the functions defined in C++ can be used in qml?

    I hope that these are enough information to help me here.

    All understood why I got this error.

    After you have created an instance of the class

    TMinutesContact *MinutesContact = new TMinutesContact();
    qml->setContextProperty("MinutesContact", MinutesContact);
    

    I need to set up

    AbstractPane *root = qml->createRootObject();
    
    app->setScene(root);
    

    to fill the contacts added with my duties of the class 'MinutesContact '.

    I don't know yet what exactly setScene does so that it now works.

    The App I'm trying is essentially over. The only thing missing was to implement you can get data of the qml code C++ objects. I am familiar with C++, but qml is new to me. So first of all, I had to struggle with all this code in this app.

    For all postal code containing in this app would be too much. And I don't know if I'm already good enough to choose just the necessary part that is important for my problem.

  • A return to the QML container onCreationComplete event Q_String

    Hello

    I'm trying to regain a QString funcition onCreationComplete a container.

    Here is the code I use.  When I debug the QML debugger jumps on the

    event and moves on to the next control.  I'm guessing that there is an error of some sort, but I don't know what it is.

    Thanks in advance.

    file .qml

    onCreationCompleted: {}
    If (ListItemData.channelName is {MSNApp.getSelectedChannel ()})
    Background = Color.create("#74D2F7")
    }
    }

    all files

    public:

    QString Q_INVOKABLE getSelectedChannel();

    private:

    QString selectedChannel;

    .cpp file

    selectedChannel = 'Home';  Download initialized in the constructor

    QString ApplicationUI::getSelectedChannel() {}

    Return selectedChannel;
    }

    Aparently there is a bug when it comes to properties of context and ListView.  I found this work around.

    Thanks for the suggestions.

    http://supportforums.BlackBerry.com/T5/Cascades-development/cannot-access-context-property-from-INSI...

    Best regards

    John

  • Problem to save the changes to the register at the next reboot

    Hello

    I've been infected 2 days ago and Windows Update does more (error code 80246008). So I cleaned the files corrupted with MicrosoftFixit found on the Web.

    Finally, I got the BITS service works again with the next batch, who calls himself the file 'BITS.reg ': program

    SC create BITS binpath = "c:\windows\system32\svchost.exe-k netsvcs" = delayed auto start
    Regedit /s c:\Users\fab\Desktop\BITS. REG
    net start bits
    rmdir /q /s %windir%\SoftwareDistribution
    regsvr32 /s c:\windows\system32\wuaueng.dll
    regsvr32 /s wuaueng1.dll
    regsvr32 /s atl.dll
    regsvr32 /s c:\windows\system32\wups.dll
    regsvr32 /s wups2.dll
    regsvr32 /s wuweb.dll
    regsvr32 /s c:\windows\system32\dllcache\wucltui.dll
    net start wuauserv

    I have run this command as an administrator file and the BIT key appears in the registry with Windows Update work very well.

    The problem is that the changes in the registry is not taken into account for the next boot of Windows 7
    : I no longer see the BIT key and I have to run this program bacth whenever there is a new startup of Windows 7.

    Is it a straight issue of permissions on this key? I have change the owner as an administrator?

    Here is the BITS.reg file:

    ------------------------------------------------------------------------------------------------------------------------

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS]
    'DisplayName"="@%SystemRoot%\\system32\\qmgr.dll,-1000 '.
    "ImagePath" = hex (2): 25, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 52, 00, 6f, 00, 6f, 00,------.
    74,00,25,00, 5 C, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 D, 00, 33, 00, 32, 00, 5 C, 00, 73,------.
    00,76,00,63,00,68,00, 6f, 00, 73, 00, 74, 00, 2nd, 00, 65, 00, 78, 00, 65, 00, 20, 00, 2d, 00,------.
    6 b, 20, 00, 00, 6F, 00, 65, 00, 74, 00, 73, 00, 76, 00, 63, 00, 73, 00, 00, 00
    'Description"="@%SystemRoot%\\system32\\qmgr.dll,-1001 '.
    "LocalSystem ObjectName"=""
    "ErrorControl" = DWORD: 00000001
    "Start" =: 00000002
    "DelayedAutoStart" = DWORD: 00000001
    'Type' = dword:00000020
    "DependOnService" is hex (7): 52, 00, 70, 00, 63, 00, 53, 00, 73, 00, 00, 00, 45, 00, 76, 00, 65, 00,------.
    6th, 00, 74, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 00, 00, 00, 00
    "ServiceSidType" = DWORD: 00000001
    "RequiredPrivileges" is hex (7): 53, 00, 65, 00, 43, 00, 72, 00 65 00, 61, 00, 74, 00, 65, 00, 47,------.
    00, 6 c, 00, 6f, 00, 62, 00, 61, 00, 6 c, 00, 50, 00, 72, 00, 69, 00, 76, 00, 69, 00, 6 c, 00, 65, 00,------.
    67,00,65,00,00,00,53,00,65,00,49,00, 6 d, 00, 70, 00, 65, 00, 72, 00, 73, 00, 6f, 00, 6,.
    00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00, 6 C, 00, 65, 00, 67, 00, 65, 00,------.
    00,00,53,00,65,00,54,00,63,00,62,00,50,00,72,00,69,00,76,00,69,00, 6 C, 00, 65,.
    00,67,00,65,00,00,00,53,00,65,00,41,00,73,00,73,00,69,00,67,00, 6F, 00, 50, 00,------.
    72,00,69,00, 6 d, 00, 61, 00, 72, 00, 79, 00, 54, 00, 6f, 00, 6 b, 65, 00, 00, 6F, 00, 00, 50, 72,------.
    00,69,00,76,00,69,00, 6 C, 00, 00, 65, 00, 67, 00, 65, 00, 00, 00, 53, 00, 65, 00, 49, 00, 6F,
    63,00,72,00,65,00,61,00,73,00,65,00,51,00,75,00, 6f, 00, 74, 00, 61, 00, 50, 00, 72,------.
    00,69,00,76,00,69,00 6 C 00, 65, 00, 67, 00, 65, 00, 00, 00, 00, 00
    "FailureActions" = hex: 80, 51, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 00, 00, 00, 14, 00, 00,------.
    00,01,00,00,00,60, EE, 00, 00, 01, 00, 00, 00, c0 d4, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Parameters]
    "ServiceDll" = hex (2): 25, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 d, 00, 52, 00, 6f, 00, 6f,
    00,74,00,25,00, 5 C, 00, 53, 00, 79, 00, 73, 00, 74, 00, 65, 00, 6 D, 00, 33, 00, 32, 00, 5 C, 00,------.
    71.00, 6 d, 00, 00, 72, 67, 00, 2nd, 00, 64, 00, 6 c, 00, 6 c, 00, 00, 00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Performance]
    "Library"="bitsperf.dll."
    "Open" = "PerfMon_Open."
    "Collect"="PerfMon_Collect."
    "Close" ="PerfMon_Close."
    "InstallType" = DWORD: 00000001
    "PerfIniFile"="bitsctrs.ini."
    "First of all Counter" = dword:00000774
    "Last Counter" = dword:00000784
    "First aid" = dword:00000775
    "Last Help" = dword:00000785
    "Object list"="1908."
    'PerfMMFileName '=' Global\\MMF_BITS_s. '

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Security]
    "Security" = hex: 01, 00, 14, 90, 90, 00, 00, 00, a0, 00, 00, 00, 14, 00, 00, 00, 34, 00, 00, 00, 02,------.
    00,20,00,01,00,00,00,02, c0, 18, 00, 00, 00, 0c, 00, 01, 02, 00, 00, 00, 00, 00, 05, 20, 00,------.
    00,00,20,02,00,00,02,00, 5 c, 00, 04, 00, 00, 00, 00, 02, 14, 00, ff, 01, 0f, 00, 01, 01, 00,------.
    00,00,00,00,05,12,00,00,00,00,00,18,00, ff, 01, 0f, 00, 01, 02, 00, 00, 00, 00, 00, 05,------.
    20,00,00,00,20,02,00,00,00,00,14,00, 8 d, 01, 02, 00, 01, 01, 00, 00, 00, 00, 00, 05, 04,
    00,00,00,00,00,14,00, 8 d, 01, 02, 00, 01, 01, 00, 00, 00, 00, 00, 05, 06, 00, 00, 00, 01, 02,------.
    00,00,00,00,00,05,20,00,00,00,20,02,00,00,01,02,00,00,00,00,00,05,20,00,00,------.
    00,20,02,00,00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\Enum]
    "0" = "Root\\LEGACY_BITS\\0000."
    "Count" = DWORD: 00000001
    "NextInstance" = DWORD: 00000001

    ----------------------------------------------------------------------------------------------------

    Any help would be appreciated

    Maybe the virus or parts of it is still there. Here are some tests I ran:

    • Reboot safe mode to check if the problem persists.
    • Restart in Repair Mode, and then load the system hive (probably located on drive C :) to check if the key has survived the shutdown process.
    • Create the artificial key HKLM\SYSTEM\CurrentControlSet\Services\BITSTest and fill it with some values and data to see if the problem affects a new key or if it focuses on the BITS.
    My own attitude is that an infected machine is a compromised machine. I don't have the time or patience to do battle with these facilities.
  • problem with playing the clash of clans

    I'm having some problems while playing the clash of clans on my 2 mini ipad screen does not seem to meet sometimes as if it was some sort of delay so I have to tap several times in order to use a filter or throw the troops on the battlefield.

    Hi Trinitygr,

    Thanks for posting in the Community Support from Apple! I understand that you are having problems with your iPad screen while playing a game. I like to play games on my iPad and I don't see how this could be a nuisance. I'm happy to offer assistance.

    Are you only had this problem when using the app clash of Clans, or does it happen in all applications? I recommend to start by following the steps described in this article:
    If an application you have installed unexpectedly closes, unresponsive, or does not open

    Take care!

  • Problem connecting to the server

    Whenever I open the pictures, I get an alert that reads: 'there was a problem connecting to the server "my-server", which is another Mac on my network.

    If I close the dialogue box, Photos keeps trying to connect and it appears again a few seconds later.

    Does anyone have an idea as Photos is all this and how I can stop doing?

    No idea - don't forget we can not see you if you have details

    We do not yet have an idea what software you use or you use 'MyServer' for

    What are the versions of the operating system and Photos do you use? What is your server? How are you connected to it?

    LN

  • Problem connecting to the server after moving

    Hi, I keep getting the message "there is a problem connecting to the server"192.168.0.19"etc. This happened after I moved. New ISP, new router. I have an Airport Express and a NAS connected to it. Time Machine and Icloud on the NAS. I think that the NAS has this IP address before moving. There are now 192.168.10.176. Everything works, but I get the pop up frequently.

    I look at the accounts and start but nothing. I reboot safe mode does not remove the problem. So, what can I do?

    I'm on Yosemite with MBR.

    Can you connect using the new IP address?

  • There was a problem connecting to the server 'SERVER NAME' error guard appearing

    There was a problem connecting to the server 'SERVER NAME' error guard appearing even though the server is not on my current network.  I recently moved my iMac to a different location and a different network, and now he constantly tries to connect to the old server.  This message appears every 30 seconds and several of those who appear (see pictures) it's extremely frustrating because it makes the machine almost useless because I am constantly closing them.  No matter how many times I try to stop the activity monitor it it keeps reappearing, and I even tried a few terminal commands that I found online, then restarted the computer, but still had no success.  I would appreciate all the advice really.

    I hope that gives you an idea of what I got!

  • I worked on a large document for several years and all of a sudden I can't scroll to the bottom of the screen with my two fingers on the touchpad, well that I have no problem scrolling to the bottom of this page to search for similar issues.

    I worked on a large document for several years and all of a sudden I can't scroll to the bottom of the screen with my two fingers on the touchpad, well that I have no problem scrolling to the bottom of this page to search for similar issues. I can navigate only to go up and down with the arrow keys.

    What version of Pages is running on your MBP?

    What version of Mac OS X is running on your MBP?

    The MBP is not iOS running.

  • Problem of "Ask the update" of Firefox?

    Hey, recently my firefox had a strange problem, when I click on help and "On Firefox" to see if I need to apply the updates I always see the button 'Apply update', naturally, I clicked it, Firefox resets but the button remains when I check again instead of saying "Firefox is updated", when I check the site of Firefox , it says my version is up to date, I have tried to uninstall firefox and put it back, even once, I tried to install firefox while having already installed, and the problem remains, however, if I run firefox as administrator, he said his day, is this a problem of update or I'm just being too paranoid?

    Software update does not properly

    Check and tell if its working.

  • Check error: there was a problem connecting to the server Apple ID

    When I try to connect to my iTunes on my Windows laptop account it is said there is a problem connecting to the Apple ID server. This problem did not begin until 2 days. I have the latest version of iTunes and Windows.

    What is the number of the version of iTunes?

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    Start by missing error MSI.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    More information area has direct links with the current and recent buildings if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit-for old video cards) as a workaround for problems with installation or operation, or compatibility with QuickTime software or a third party.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    Leave a post by: turingtest2

    On the PC, when connecting each device, it loads a separate driver. You can try this trick when you want to get iTunes recognizes the iPhone 6. Thanks to the user of the CSA turingtest2 for the tip.

    Try the following:

    Open Control Panel > Device Manager

    Plug in your device

    Locate Bus USB Controllers > Apple Mobile Device USB Driver.
    It is also possible that the device may appear under imaging devices, portable devices or other devices or as a device USB of MTB.

    Right-click and select software update of the driver...

    Click Browse my computer for driver software

    Go to C:\Program Files\Common Apple Mobile Device Support\Drivers or
    C:\Program Files (x 86) \Common Files\Apple\Mobile Device Support\Drivers

    Click on let me pick from a list of drivers for devices on my computer

    Click on Apple Mobile Device USB Driver

    Click Next, then close and exit the Device Manager

    Leave a post by: ChrisJ4203

Maybe you are looking for