Problem get the handle to the module using CodeModuleGroup

I need to get the object moduleHandle of some modules that I don't know the name of the runtime so I use CodeModuleGroupManager.loadAll () then a loop in the list of the modules that it returns.
From there I need to obtain the handles of some modules based on information module, but it does not work.
By using the following code I get 0 or a number that appears to be no valid for a moduleHandle object.
I use this api incorrectly? I tried to get the handle based on the name and friendlyName properties. This maybe isn't the way to do it, but I couldn't figure a way deparaments.
Thus, using the information returned by the loadAll() method, I would like to know the right way to get the Handle to the module.
Any help is appreciated. Thank you.

modules = CodeModuleGroupManager.loadAll ();

for (i = 0; i numModules; i ++) {}

String fname = modules [i] .getFriendlyName ();
String name = modules [i] .getName ();

/ * 3 following below almost always return 0. Why? */
moduleHandle int = CodeModuleManager.getModuleHandle (fname);
moduleHandle = CodeModuleManager.getModuleHandle (name);
handle = int [i] modules .getHandle ();
}

CodeModuleGroupManager.loadAll returns a returns an array of CodeModuleGroups, not CodeModules.  You try to use the name of a CodeModuleGroup to get the handle of a CodeModule.

If you want the CodeModule handle, call first getModules() on your variable modules and the loop through this enumeration.  If you want that the handle of the CodeModuleGroup call getHandle on your variable modules.

Tags: BlackBerry Developers

Similar Questions

  • Problem with the module "Automation" in WindowsAzure

    Top: Problems with the module used "Automation" service "WindowsAzure.

    Hello!

    I really need your help to decide my problem of "Azure Automation". My boss has set a task for the 'Automation' module allows you to make a backup of Virtual Machines.

    To understand my problem, I do the next:

    1. describe the situation of all;

    2. describe the problems that appear in this situation;

    3. my conclusions.

    In addition, I am attaching the necessary information: my PS-scripts (from Windows and the automation of azure), log (with my notes) and screenshots (images with my notes) see file .rar Add_info (annex).

    1 description any situation

    For our development projects, we have several Virtual Machines on service cloud "WindowsAzure. We need to make backups of discs with Virtual Machines each week. Earlier, for this task, I used Windows PowerShell on my computer and my PS-script (see Ann 0 - VM (backup) of the WPS_snapshot). I created a new storage 'backupstor' and containing 'snaps-drive '. When I run PS-script with my computer, I have backup of disks virtual Machin in the container "snaps-disk", without problem.

    Now I have a new task "automatically make the process of creating backup of Virtual Machines (VM snapshots). I tried to use automation module (overview). Can I change my PS script for the 'Automation' module and create folders (see Ann 1 - records (make backups of virtual machines) _Azure_Automation).

    I need to make a backup of Virtual Machine 'bosard' in the cloud 'cloudnet. "Bosard" on the disc size ~ approximately 90 000 000 000 bytes (total size of the default drive size 127 GB/136 367 309 312 bytes)

    2. description of the problems that appear in this situation

    My steps:

    1. I start files to make a backup of Virtual Machine disk (see annex 1 - files (make backups of virtual machines) _Azure_Automation))

    2. it starts successfully and generate the name of backup 1 (blob) - snapshot-bosard - osdisk_07.10.2014_07h00m39s.vhd (see image 1 - start copy backup 1 and annex 2 - log file copy process)

    3. the process of backup copy 1 (blob) will...

    Problem 1:

    4. the process of backup copy 1 (see Appendix 2 - process log file copy) automatically stops and complete to copy the part 1/3 bytes copied 28311552000only. Important: The size of my virtual machine disk ~ on 90 000 000 000 bytes.  (Maximum possible) of total capacity of the disk where the Virtual Machine is used - 136 367 309 312 (127 GB). (See picture 2 - stop backup copy 1)

    5. I have Virtual size 1 backup - 28311552000bytes, when the size of my VM - 90 000 000 000 / 136 367 309 312 bytes.

    Problem 2:

    6. after the termination of the process automatically makes copy backup 1, records (see annex 1 - files (make backups of virtual machines) _Azure_Automation) automatically start (see picture 2 - stop backup copy 1) and folders automatically create new snapshot Backup 2 - name - bosard - osdisk_07.10.2014_07h31m33s.vhd (see annex 2 - process log file copy, image 3 - stop the copy backup 1 & Begin copy backup 2 and 5 - backupStore_Azure (process)of image)

    7. I pressed "stop" and stopped the process of copy and folders (picture 4 - I stopped the process of creating backup 2 & records). And how result I had size Backup 1 and 2 = 0 bytes (see image 6 - backupStore_Azure (I order records))

    Note:

    1 problem 1: the process of backup of virtual machine does not complete and stops automatically.

    2 problem 2: the process of creating new second backup starts automatically. And as a result, we do not have the backup of virtual machine, when I use the 'Automation '.

    3. my conclusions

    I think that:

    1. my PS script for Automation (files) is not correctly. Then I need your help, how to fix this.

    2 may be the module "Automation" is not working correctly. And the module 'Automation' needs repairs and settings.

    In addition, I am attaching the necessary information (see the Add_info (annex) .rar file):

    Ann WPS_snapshot 0 - VM (backup)

    Ann 1 - records (make backups of virtual machines) _Azure_Automation

    Ann 2 - log file copy process

    image 1 - start the copy backup 1

    image 2 - stop copy backup 1

    image 3 - stop copy backup 1 & Begin copy backup 2

    4. I stopped the image create backup processes 2 & records

    image 5 - backupStore_Azure (process)

    image 6 - backupStore_Azure (I order records)

    Thank you

    Kind regards

    Mikhail

    Hello

    You can get the assisted support from the following link on this point:.

    http://azure.Microsoft.com/en-us/support/options/

  • control of fascist style of addons is a bad thing and prevents from getting the modules there are out there of dev.

    control of fascist style of addons is a bad thing and prevents from getting the modules there are out there of dev.

    This will be only stifle creativity and prevent new addons are made.

    Said heavyoak

    control of fascist style of addons is a bad thing and prevents from getting the modules there are out there of dev.

    This will be only stifle creativity and prevent new addons are made.

    How is that what does strike you?
    https://blog.Mozilla.org/addons/2015/08/21/the-future-of-developing-Firefox-Add-ons/

    «We are implementing a new extension API, called WebExtensions...» »

    The infrastructure of the current extensions will be gone and with it will have the advantage of current extensibility that Firefox had more Chrome and Opera. Kinda like the rating "fascism" for "communism".

    So at the end of next year we can be moaning about something much bigger than the current "signature" minor schism or "bump in the road."

  • When I go to get the modules (7.0.1), there is no evidence, except the info bubble "which are the modules. How to make this work?

    When I go to get the modules (7.0.1), there is no evidence, except the info bubble "which are the modules. How to make this work? The rest of the functions in this section seems to work. And I can get MY addons, but not the available modules.

    On the left side, click Extensions.

  • How to access the modules using the script?

    Hi can someone help me how to link to the module using script if you have ideas to share with the me...

    Thanks in advance

    (There are two ways to load the modules, 1) ModuleLoader class component ModuleManager 2).

    The ModuleLoader component's mxml, so I will not provide an example.

    The ModuleManger class is for loading modules via actionscript.

    Here is a link to resources on the loading of modules as well as the code example.

    http://help.Adobe.com/en_US/Flex/using/WS2db454920e96a9e51e63e3d11c0bf64277-7ffd.html#WS2d b454920e96a9e51e63e3d11c0bf69084 - 7 d 20

    -Darrell

  • Problem in the export using the QUERY functionality

    Problem in the export using the QUERY functionality


    I'm trying to export some rows in a table using the query functionality
    and I have some errors... I'm using the syntax is

    system@orcl QUERY = scott.emp expdp: '"WHERE emp_no = 123455" '
    DIRECTORY = data_pump_dir DUMPFILE = data_pump.dmp
    LOGFILE = data_pump_12345.log INDEX = n

    Can someone tell me please the problem with that statement

    I also tried to use the simple export

    exp file system@orcl = orcl_export.dmp log = orcl_export.log
    tables = Scott.EMP index = QUERY = n------"WHERE emp_no\ = 123455\"

    and this error

    EXP-00008: ORACLE error 904
    ORA-00904: identify invalid

    My os is Solaris
    Please let me know what the problem

    Hello

    Try to create parfile and use that, otherwise, you will need to escape each clause correctly to run exp or expdp successfully.

    test.par

    tables=emp
    query="WHERE emp_no=123455"
    
    or
    tables=myobjects
    query="WHERE owner='SYS'"
    
    $> exp username/password parfile=test.par
    
    Export: Release 10.2.0.1.0 - Production on Thu Mar 19 10:17:48 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining Scoring Engine options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    
    About to export specified tables via Conventional Path ...
    . . exporting table                      MYOBJECTS      22650 rows exported
    Export terminated successfully without warnings.
    

    Concerning

    Published by: OrionNet on March 19, 2009 10:21

  • Connect the PS module. I get the module to the MAX, but can't seem to read from this module

    Hello

    I'm back to LV and was trying to change an old Win98 computer to a new one with XP. The program should contact FP-1000 (+ FP-TC-120 and FP-TB-x) through serial ports. He finds the data with MAX and them can read. But when the program, which is set up like that (only changed the port serial numbers), try to read, he cannot do so.

    It is worth noting that the program is able to write via a serial port to a eurotherm controller, but not to read that as well.

    The errors are:

    Reading VISA: 0xBFFF0072

    VISA read: 0x3FFF0006, both are made in PS Read.

    Why is it so? Errors are read out OR spy. I tried to set up the connection using NOR-Serial Troubleshooting Wizard, but it does not find the material although MAX may.

    Kind regards

    thomasho

    It fixed...

    A source of inspiration here:

    http://forums.NI.com/T5/FieldPoint-family/communication-failure-FP-1000-module-with-serial-Connectio...

    and I see now that it wasn't a necessary position.

    Basically, the problem was that I changed the read FP FP advice and for some reason that it worked... Don't ask me why...

    Concerning

  • KB952287 is a problem with the module installer and will not install, error code 800706BE

    Hi, I have a laptop Dell Inspiron 1520 with Vista Home Premium. I'm having problems installing SP1 and have identified that one KB952287 that causes the problem. The update causes exactly the same problem. While installing the update, an error message appears that says "Module of Windows Installer has stopped working and needs to close", then the updater freezes and never completed the update. The update log provides the following information.

    Fix for Windows (KB952287-french)

    Installation date:? 03 /? 04 /? 2009 20:06

    Installation status: failed

    Error details: Code 800706BE

    Update type: Important

    Difficulty for KB952287

    More information:
    http://support.microsoft.com/?kbid=952287 .

    I've contacted Microsoft Support on this issue and they could not help but suggest to post here.

    Thanks in advance for any help.

    If you don't want to go in this direction, you should call dell and ask for a replacement recovery media.

    And maybe ask a copy directly from the operating system without any OEM software or all the changed settings. (a copy of the DVD retail)
    See you soon

    Today, it was a good day, I didn't have to use my AK.

  • PROBLEM: getting the translations of Cascades library

    I have problems to get translations from my library to application project project

    Thanks to Isaac Gordetzky, the library model was a great starting point and I got some more tips from him

    So in the meantime, I've solved some taks:

    1 library Project creates translation files

    I had to add a skeleton bar - descriptor.xml for the library project and add my local it

    2. get a tr() work in C++

    I had to replace

    TR ("...")

    with
    QT_TRANSLATE_NOOP("My::namespace::MyClass","...")

    3. use of QRC

    In my .pro I inserted

    RESOURCES += baasParseLibrary.qrc

    where baasParseLibrary is my name of the library

    This is the content of baasParseLibrary.qrc:

    
    
    
    translations/baasParseLibrary_de.ts
    translations/baasParseLibrary_en.ts
    
    
    

    4 initialize the QRC in my application

    In main.cpp, I inserted before the Application has been created

    Q_INIT_RESOURCE (baasParseLibrary);

    5. provide the translator of my library code

    Add a method to the API from my library:

    void MyLibApp::updateTranslations() {
    static QTranslator * m_pTranslator = new QTranslator(
            QCoreApplication::instance());
    QString locale_string = QLocale().name();
    QString file_name = QString(":/baasParseLibrary/translations/baasParseLibrary_%1").arg(locale_string);
    if (m_pTranslator->load(file_name, "app/native/qm")) {
        QCoreApplication::instance()->installTranslator(m_pTranslator);
    } else {
        qDebug() << "cannot load " << file_name;
    }
    }
    

    Then, my app, I'll call updateTranslations()

    PROBLEM:

    the file updateTranslations() cannot be loaded into the translator.

    so there must be something wrong.

    Question: the prefix and file in the correct QRC file?

    prefix /baasParseLibrary is the name of the library project in the workspace - not the physical location on disk

    in updateTranslations() I am the same way by referring

    Or am I missing something else?

    I never hepatitis did something with the QRC or translations of libraries before.

    all other things work - getting active such as the images in the library

    Thanks for the tips

    Hi Isaac,.

    Thanks for your tip. You're right, I should use the *.qm files in the file of the QRC. because they have been compiled in the process of generation of library before .qm.

    Then I got the libraray of loaded files. (Both: APP and LIB)

    But still has no translations.

    tried many variations and then found the reason. We changed all the

    tr("..")
    

    in

    QT_TRANSLATE_NOOP("ekkescorner::parse::ParseREST","...")
    

    Let the libraray compile without error

    It does not work as I discovered today.

    But I remembered that you mentioned a second notation that might help.

    And YES: now we'll find translations if you use

    ::ekkescorner::parse::ParseREST::tr("...")
    

    curious: the two create exactly the same content in the *.ts files, but only the last works.

    ... will blog about all this later when to publish my Libraray Parse.com for waterfalls on Github.

    --------

    Finally, I want to check my code is correct to add the two translators.

    Here are the usual stuff generated by the waterfalls inside the APP project model:

    void ApplicationUI::onSystemLanguageChanged() {
        QCoreApplication::instance()->removeTranslator(m_pTranslator);
        // Initiate, load and install the application translation files.
        QString locale_string = QLocale().name();
        QString file_name = QString("baasParseTest_%1").arg(locale_string);
        if (m_pTranslator->load(file_name, "app/native/qm")) {
            QCoreApplication::instance()->installTranslator(m_pTranslator);
            qDebug() << "load translator file from APP: " << file_name;
        } else {
            qDebug() << "cannot load " << file_name;
        }
        mServer->updateTranslations();
    }
    

    as you see after the first initialization of the app translator, I call the library:

    void ParseREST::updateTranslations() {
        static QTranslator * m_pTranslator = new QTranslator(
                QCoreApplication::instance());
        QCoreApplication::instance()->removeTranslator(m_pTranslator);
        QString locale_string = QLocale().name();
        QString file_name = QString(":/baasParseLibrary/translations/baasParseLibrary_%1").arg(locale_string);
        if (m_pTranslator->load(file_name)) {
            QCoreApplication::instance()->installTranslator(m_pTranslator);
            qDebug() << "load translator file from LIB : " << file_name;
        } else {
            qDebug() << "cannot load " << file_name;
        }
    }
    

    and the debug, I see:

    INFO load the APP translator file: 'baasParseTest_de_DE. '

    INFO load file of the translator of LIB: ': / baasParseLibrary/translations/baasParseLibrary_de_DE.

    and translations of C++ and QML are now working.

    I wonder about the removeTranslator() - the call of methods and thought, that the second he would remove the first. but it seems that you are right and I have to remove always.

    ... Thanks again... next step done using waterfalls providing libraries not only C++ code but also translations and assets such as images

  • Problem in the module ReCaptcha.

    Schermata 2015-03-31 alle 20.39.26.png

    The problem is the following: when the contact module is empty all States are also the same. What can I do?

    Thank you

    Bug. I'll write it upward to be set for a later version.

    To avoid it you want or need to switch to the use of a police police Web or Web safe for this text and not a system font.

    In general (for any text on the web) you must use Web fonts whenever possible and only fall back to use a Web safe font or the police System when no acceptable Web font cannot be found to be acquired.

    Use a system font will result in the block of text to be converted to a picture. Each image on a website is a separate file to download from the server. A page with several blocks of text labels/text that everyone uses a system font will be so poor some net connections page load performance. A Web font has this problem, because the police is downloaded one time.

  • Unable to get the search using query RIDC idc on Protocol

    Hi all

    I'm having a strange problem when querying ucm using CRMI.

    When I use the connection of client for the idc as protocol below

    IdcClient idcClient = manager.createClient ("idc://abc.xyz.com: < port >");

    result is null.

    but when I use the connection of client for HTTP as below

    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    game is not null. I get the content

    I use the weblogic user to create the connection that my code is as below

    IdcClientManager Manager = new IdcClientManager ();
    try {}

    Create a new connection to IdcClient idc on Protocol (i.e. connection socket for content server)
    IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport"); It does not work

    to use the connection through the web - start
    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    UserContext IdcContext = new IdcContext ("weblogic", "weblogic1");
    DataBinder dataBinder = idcClient.createBinder ();
    dataBinder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
    dataBinder.putLocal ("QueryText", "xRegionDefinition < match > 'NEWS_RD' < AND > xWebsiteObjectType < match >"Data file"");
    ServiceResponse response =
    idcClient.sendRequest (dataBinder, userContext);
    DataBinder responsed = response.getResponseAsBinder ();
    DataResultSet = myDataResultSet
    responsed.getResultSet ("SearchResults");
    int i = myDataResultSet.getRows () .size ();
    If (i == 0) {}

    System.out.println ("found content no.");
    } else {}
    System.out.println ("content is present");
    }

    } catch (IdcClientException e) {}
    System.out.println ("inside the exception" + e.getStackTrace ());
    }
    }

    I cannot understand why its happening.
    I spent we I could search using idc also, but then many use same AAU so someone might have changed some configurations that I can't understand

    Is your WLS server running and available to the managed server admin? Or you run the server managed mode the independence? If the server administrator is not available, applications via the Protocol of idc using "external" (like weblogic) users will fail. However the http requests will continue to work.

    One way to test this is to use "sysadmin" as the user when it connects using the Protocol of the idc. If it works, then this probably means that WLS server admin is unavailable.

  • Getting the IP using a DDL trigger

    I created a DDL trigger that is triggered AFTER the DDL on SCHEMA.
    The unique attribute that seems to not work is the ORA_CLIENT_IP_ADDRESS
    If I try to create the following:

    CREATE OR REPLACE TRIGGER control_ddl
    AFTER the DDL ON SCHEMA
    BEGIN
    RAISE_APPLICATION_ERROR (-20000, 'Id' |) ORA_CLIENT_IP_ADDRESS | "conducted a DDL");
    END;

    and then I try to create a table, I get:

    ID made a DDL

    Could the reason because I do not have the ip address? A problem of grant? A network configuration issue? What else?
    I would like to get the IP address of the PC a person has made the DOF since and not the connection (by using the ORA_LOGIN_USER attribute), because all my colleagues use the same login to access DB
    Thank you!

    This construction in funciton gives the ip address of the machine, you can save it into a varchar2 variable and use it in your trigger.

    select sys_context('USERENV','IP_ADDRESS') from dual;
    
  • Problem with the iPad using kindle app.

    WE have 2 iPads, iPad 3 and the air of aniPad. Nor are working using the kindle App freezes and looks like he's trying to download or open a book. Which of the two in the lower part shows also cloud and who is on the side of the unit?

    Amazon made the kindle app, not Apple.

    If you have problems with the app-contact Amazon Kindle.

    http://www.Amazon.com/GP/help/customer/display.html?nodeID=200298460

  • How to get the nodename using GetVersionEx

    My current code uses call unix ' uname ' to get the "struct utsname" nodename string. " I want to replace this call with equivalent windows. I discovered GetVersionEx in windows, but it does not give me the string nodename. Can anyone suggest me the replacement of exact windows for uname.

    Hello

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums

    Link to the MSDN Forums is provided below.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • How to get the path (using &lt; input type = "file" / &gt;)

    Hello world

    I create a HTML form that has an entry of type = "file".  This will give you a dialog box browse for your user to search for a file on the operating system.

    And my code:

    function handleFileSelectForMyShop (evt)
    {
    var blnFileReaderSupported = false;

    Try
    {

    Debug.log ("handleFileSelect", "start handleFileSelect");
    reader of var = new FileReader();
    blnFileReaderSupported = true;
    var files = evt.target.files;
    var size = files.length;

    Debug.log ("handleFileSelect", "handleFileSelect # selected files:" + size, debug.info);

    for (var i = 0; i)< size;="">
    {
    Debug.log ("handleFileSelect", "in the handleFileSelect analysis the index file" + i, debug.info ");
    var f = files [i];
    Reader.OnLoad = (function (theFile)
    {
    Debug.log ("handleFileSelect", "start reader.onload", debug.info);
    return Function
    {
    Debug.log ("handleFileSelect", "start Function", debug.info);

    Debug.log ("handleFileSelect", "reading file" + theFile.name + "(" + theFile.size + "") "" + theFile.type, debug.info);

    If (theFile.type.match ('image.*')) {}
    var path = e.target.result;
    alert (path);
    create the path

    } else {}
    jAlert ("Please select photo!', 'Error'");
    }
    };
    })(f);

    If ((f.type.match ('image.*')) |) (f.type.match ('audio.*')) | (f.type.match ('video.*')))
    {
    Debug.log ("handleFileSelect", "in handleFileSelect call reader.readAsDataURL for type" + f.type, debug.info);
    Read in the media file in the form of a data URL.
    reader.readAsDataURL (f);
    }
    }

    Debug.log ("handleFileSelect", "Complete", debug.info);
    }
    {} catch (e)
    Debug.log ("handleFileSelect", e, debug.exception);
    If (! blnFileReaderSupported)
    {
    Alert('Error.) The FileReader API is not supported. ") ;
    }
    }
    }

    function doPageLoad()
    {
    Try
    {
    ELE var = document.getElementById ('txtFile_staffInfo');
    If (ele)
    {
    ele.addEventListener ('change', handleFileSelectForMyShop, false);
    }
    imgSelectPictureClick = 0;
    }
    {} catch (e)
    Debug.log ("doPageLoad", e, debug.exception);
    }
    }

    window.addEventListener ("load", doPageLoad, false);

    Note: And alert (path) leads to a Base64 string! It is not a path of the image that I browse a Spain file on the operating system.

    I want to have a full path of the file. For example: file:///accounts/1000/appdata/WebWorksAppTemplate.testa3NBcHBUZW1wbGF0ZSAgICA/shared/camera/image01.jpg

    I hope to see your reply soon!

    Thank you and best regards,

    A Pham

    A Pham

    I think that you can not get the absolute path of a file due to browser security, when you use the

    It's something that you need probably a PlayBook extension for.

Maybe you are looking for

  • Firefox hangin

    I used Firefox for years without any problem, in the last 2 weeks, it blocks continuously, accidents etc. I have to update several times a day without success

  • Toshiba 40RL953 became unresponsive; green light at the edge of

    Today I have updated the firmware on my TV via the internet. After the update had completed, I browsed some improvements for awhile and watched television. An hour or later, I became a game of children on Toshiba places.After finishing with the game,

  • Separation of accounts

    I share my MAC with another person. Our respective data and browsing history keeps bleeding in all lines of account.  How can I keep our completely separate accounts?

  • Why is it so slow to solve the problems of El Capitan Apple?

    Check out this forum, I see very little solution to the many problems and defects associated with El Capitan. I certainly saw no miracle for the two problems I encountered with the last OSX 10.11.2 update. Are all these tech support people very well

  • EA6350 2 weeks just stop working, power light only

    I just bought an EA6350 less than 2 weeks ago and came home yesterday night with no network no internet. The main power light is on top, but that's all, there is no activity light flashes on any wired connections that are wired and the Ethernet of my