[Fault] exception, information=[object Exit] from C++ code

I'm creating a small bit of C++ to CrossBridge into our AS3 AIR application but I'm getting an odd error which isn't really giving me any explanation as to what's going on.
My C++ CrossBridge code:
#include <stdlib.h>
#include <stdio.h>
#include "AS3/AS3.h"
#include "my_code.h"
int main()
  AS3_GoAsync();
// Runs the encode on the data passed in, encodes it to JPEG, passes out a pointer to it
void encodePixels() __attribute__ ((used,
  annotate("as3sig:public function encodePixels(pixelsIn:int, width:int, height:int, quality:int):int"),
  annotate("as3package:my_package")));
void encodePixels()
  uint * pixels;
  int wid;
  int hei;
  int qual;
  AS3_GetScalarFromVar(pixels, pixelsIn);
  AS3_GetScalarFromVar(wid, width);
  AS3_GetScalarFromVar(hei, height);
  AS3_GetScalarFromVar(qual, quality);
  MyCode * Fast = new MyCode();
  AS3_Trace("instantiated");
  Fast->init(qual);
  AS3_Trace("Initialised");
  int ptr = Fast->encode(pixels, wid, hei);
  AS3_Trace("Encoded");
  AS3_Return(ptr);
// Gets the length of the encoded data
void getLength() __attribute__ ((used,
  annotate("as3sig:public function getLength():int"),
  annotate("as3package:my_package")));
void getLength()
  //int length = Fast.length();
  //AS3_Return(length);
  AS3_Return(0);
It seems to fall over on:
int ptr = Fast->encode(pixels, wid, hei);
and doesn't even seem to enter the method at all. I'm somewhat new to C++ so I expect it's probably some kind of problem there. Any ideas?

Please create an issue here:
https://github.com/crossbridge-community/crossbridge/issues
A compact zipped example with a makefile would help to try it instantly.
Also check out the updated SDK releases:
CrossBridge-Community | SourceForge.net

Similar Messages

  • Cannot Retrieve data from Information objects - BW

    Hi all, I am having a problem with extract some data from BW.
    I have a BW query that I was extracting some data. I could extract all level of the hierarchy. I mean, when I did a universe, it shows every dimention and information.
    After create an universe and configured a connection, I did my report in WEBI and than a dashboard in xcelsius. I had to fix something in the universe and in the report, but sudenly the connection was down (I was doing a remote connection to the server). I don´t know why, my report couldn´t extract data from information, but only dimention.
    I didn´t change the query and I have tryed to create another universe connection and new universe. I have tryed to create a new connection with another BW query too. The result was the same... No data from Information objects but only from dimention objects.
    BO can´t extract (information objects) data from BW.
    PS: I have stoped the services and started again twice.
    Thank you very much and please... If anybody knows about it, tell me...
    Version:
    BO XI 3.1
    SAP BW 7.0

    Hi,
    what's your BI Platform version, Support package, and Patch level?
    What's your ERP version information?
    Regards,
    H

  • Can the user exit  EXIT_SAPMM07M_004 be called from an FM exit in my code?

    Hi ,
    When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.

    > When I create a Goods Receipt by tx MB1C , an MM adapter(FM user exit) is kicked off in my workspace creating documents wrt to that goods receipt.However if a batch does not exist during MB1C , it says that a batch would be created.But when i do a save , the user exit is kicked off before it returns to the SAP code to create a batch.As a result no MM documents are created in my workspace.Now I want that the batch be created while in my user exit and I want to implement the customer user exit EXIT_SAPMM07M_004(for copying the batch characteristics) .Is it possible to call this exit from my code?Kindly suggest.
    Can you call the user exit? - Yes ofcourse.... but why dont you just add the same code that is in your exit instead of calling the user exit?
    User exits are developed and called from appropriate places where sap can take the changes and apply to the transaction. there is no restriction on calling the user exit (atleast programmatically) but you need to think 100 times before you call the user exit.
    For example, you want to call user exit 'A' in your program because you want to use the code in this user exit in your program '1'. Why dont you just write the code in program '1' with what is in user exit 'A' ?
    Calling user exit in your program does not really helps. Better find out different ways. once again, user exits are embedded in sap business applications and remember they are not independent FM's as you think
    Good luck

  • Acrobat 9.2 crash after exit from Acrobat

    I have a plugin for Acrobat 8.0 and re-compiled for Acrobat 9.0 using the 9.0 SDK.  It works fine except when I exit from Acrobat, Acrobat always crash in any of the Acrobat Pro 9.x versions. The crash log always show the same place.  It does not matter if I disable or enable the update. Always the same place to crash. Does anyone have any ideas?
    Process:         AdobeAcrobat [29144]
    Path:            /Applications/Adobe Acrobat 9 Pro/Adobe Acrobat Pro.app/Contents/MacOS/AdobeAcrobat
    Identifier:      com.adobe.Acrobat.Pro
    Version:         9.2.0 (9.2.0)
    Code Type:       X86 (Native)
    Parent Process:  launchd [119]
    Interval Since Last Report:          668 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  24 sec
    Per-App Crashes Since Last Report:   1
    Date/Time:       2009-10-14 15:10:00.939 -0400
    OS Version:      Mac OS X 10.5.8 (9L30)
    Report Version:  6
    Anonymous UUID:  F9997425-181F-4A46-8222-B1BAA9558760
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000015fffcc1
    Crashed Thread:  18
    Thread 0:
    0   dyld                              0x8fe1764c ImageLoaderMachO::doBindLazySymbol(unsigned long*, ImageLoader::LinkContext const&) + 300
    1   dyld                              0x8fe06ed5 dyld::bindLazySymbol(mach_header const*, unsigned long*) + 149
    2   dyld                              0x8fe18c2f stub_binding_helper_interface2 + 21
    3   ...adobe.acrobat.amtlibwrapper    0x188c42e2 0x1883b000 + 561890
    4   ...adobe.acrobat.amtlibwrapper    0x188c4343 0x1883b000 + 561987
    5   ...adobe.acrobat.amtlibwrapper    0x18851355 AVAMTForegroundUpdateCheckEnabled + 84063
    6   ...adobe.acrobat.amtlibwrapper    0x18843989 AVAMTForegroundUpdateCheckEnabled + 28307
    7   ...adobe.acrobat.amtlibwrapper    0x1883cc26 AVAMTForegroundUpdateCheckEnabled + 304
    8   com.adobe.Acrobat.framework       0x803d4a07 AcroSecurityBailOutImpl + 2997119
    9   com.adobe.Acrobat.framework       0x803d4a79 AcroSecurityBailOutImpl + 2997233
    10  com.adobe.Acrobat.framework       0x800ffc97 AcroSecurityBailOutImpl + 28175
    11  com.adobe.Acrobat.framework       0x8038cb91 AcroSecurityBailOutImpl + 2702601
    12  com.adobe.Acrobat.framework       0x8007ff72 AcroBundleThreadQuitProc + 3096
    13  com.adobe.Acrobat.framework       0x7fe43320 RunAcrobat + 326
    14  com.adobe.Acrobat.Pro             0x00002e8b start + 2371
    15  com.adobe.Acrobat.Pro             0x0000264a start + 258
    16  com.adobe.Acrobat.Pro             0x00002571 start + 41

    iPhoto is missing bits of itself. You need to reinstall it.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • ABAP-User Exit CONFPP05 (T-code co11n) ---- Duprec exception

    I'm currently working on user exit CONFPP05 (T-code co11n)
    I'm trying to validate shift hour not more than 8 hours.
    total_jam = v_iserh + v_ism01 + v_ism02 + v_ism04 + afrud_tab-ism01 + afrud_tab-ism02 + afrud_tab-ism04.
    IF total_jam > 8.
       MESSAGE 'Jam Total Shift > 8 !!!' TYPE 'E'.
    ENDIF
    and I'm facing a problem, when i give error message with type E.
    When the program execute that error, the program succesfully run the error message, buat after that, when I press ENTER or SAVE button, it give me runtime error
    here I catch some error
    "Exception condition "DUPREC" raised."
    Error analysis A RAISE statement in the program "SAPLCORB" raised the exception condition "DUPREC". Since the exception was not intercepted by a superior program, processing was terminated.
    Short description of exception condition:
    For detailed documentation of the exception condition, use
    Transaction SE37 (Function Library). You can take the called
    function module from the display of active calls.
    Trigger Location of Runtime Error
    Program                                 SAPLCORB
    Include                                 LCORBU08
    Row                                     100
    Module type                             (FUNCTION)
    Module Name                             CO_RU_DI_AFRU_INSERT
    How can I deal with this problem?

    Hi
    Keshav is right. To display the messages see SAP Note 406633 - No information messages from customer exit. For further information see SAP Note 367489 - Customer exits of confirmation.
    Regards
    Eduardo

  • PowerPivot refresh error with data feed from sharepoint list with empty exception information

    Hi,
    My Powpivot refreshing error seems to be different from what others already experienced.
    Scenario:
    Constructed an external data source in the format of Http://<server_IP>/sites/<mysitecollection>/_vti_bin/listdata.svc
    selected one table with some of the needed columns in the next step
    Create calculate colums etc.
    Create pivot tables etc.
    All worked well offline
    Upload the workbook into PowerPivot Gallery
    Reference it from a page through Excel Web Service webpart allowing manual refresh
    The refresh always reports failure with the named external data source
    I opend the log file in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS and located the following error messages:
    ASPPHOST::ShowEngineError: Out of line object 'DataSource', referring to ID(s) 'f8939b694cae', has been specified but has not been used。The following exception occurred while the managed IDbCommand interface was being used: .
    Please note in the above message, NO detailed exception message was given. In other words,
    the exception information is empty.
    I checked as many things as I possibly could includin the security accounts etc. All seem to be right. But this empty exception got me stuck here.
    What could possibly go wrong? Any help will be appreciated.
    Thanks.

    Hello,
    Here is a good article regarding Where to get information about data refresh failures for your reference, please see:
    http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
    In addition, which credential option you're configured for the PowerPivot data refresh in SharePoint farm? You can go through the following articles regarding configure the PowerPivot data refresh:
    Configure the PowerPivot Unattended Data Refresh Account (PowerPivot for SharePoint):
    http://technet.microsoft.com/en-us/library/ff773327.aspx
    Configure Stored Credentials for PowerPivot Data Refresh (PowerPivot for SharePoint):
    http://technet.microsoft.com/en-us/library/ee210671.aspx
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • Error: There was a failure to call cluster code from a provider. Exception message: Generic failure . Status code: 5015. SQL 2012 SP1

    Hi,
    Please help. I was trying to remove a SQL 2012 SP1 two node clustered instance using setup (Mantenance -> Remove Node)
    I started by doing this on passive node (and was successful) but when I ran setup on active node just before finishing successfully I got this error:
    TITLE: Microsoft SQL Server 2012 Service Pack 1 Setup
    The following error has occurred:
    The resource 'BCK_SG1DB' could not be moved from cluster group 'SQL Server (SG1DB)' to cluster group 'Available Storage'. 
    Error: There was a failure to call cluster code from a provider. Exception message: Generic failure . Status code: 5015.
    Description: The operation failed because either the specified cluster node is not the owner of the resource, or the node
    is not a possible owner of the resource.
    For help, click:
    http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3000.0&EvtType=0xE8049925%25400x42B4DED7
    BUTTONS:
    OK
    I noticed that SG1DB instance was removed on both nodes but on Failover Cluster Manager -> Services and Applications the SQL server instance for SG1DB is still there. So I tried to delete it but got the error:
    Failed to delete SQL Server SG1DB. An error was encountered while deleting the cluster service or
    application SQL Server SG1DB. Could not move the resource to available storage. An error occured
    while moving the resource BCK_SG1DB to the clustered service or application Available Storage
    Any ideas why it failed or how could I delete the SQL server instance from Clauster?
    Thx

    Hello,
    Please read the following resource.
    https://support.microsoft.com/en-us/kb/kbview/313882?wa=wsignin1.0
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • How to get exit code from C code when calling java method via JNI?

    Hi, All
    in my project, i need to call a java method from C code using JNI, yet I do
    not know how to
    retrieve the exit code of java program. the java code is like below
    public static void main(....)
    if(error){
    System.exit(-77);// the exit code is -77
    and the JNI c code may like below
    /* Invoke main method. */
        (*env)->CallStaticVoidMethod(env, mainClass, mainID, mainArgs);
    //here I want to retrieve the exit code from java to check if there is an
    error
    any suggestions? thanks

    Hi Liang Zhang,
    In your C code add:
    void (JNICALL y_exit)(jint code) {
    and when you are initialazing JVM options add:
    JavaVMOption options[...];
    options[...].optionString = "exit";
    options[...].extraInfo    = y_exit;
    See http://java.sun.com/j2se/1.3/docs/guide/jni/jni-12.html
    Best regards, Maksim Rashchynski.

  • Get Exception Information from RFC Response Message

    Hi All,
    I want to make RFC call from ABAP system to XI RFC Adapter. I found that on the caller side, the RFC has the following interface for RFC exception.
    Exception
    __Name
    __Text
    __Message
    ____ID
    ____Number
    __Attributes
    ____V1
    ____V2
    ____V3
    ____V4
    Can anybody tell me how to get the info contained by this exception structure from RFC caller side (ABAP program)?
    Thanks, Jerome

    Hi Madan,
    My problem is how to display the exception information on the caller side. The called side is able to throw exception now.
    Thanks, Jerome

  • Memory leak problem while passing Object to stored procedure from C++ code

    Hi,
    I am facing memory leak problem while passing object to oracle stored procedure from C++ code.Here I am writing brief description of the code :
    1) created objects in oracle with the help of "create or replace type as objects"
    2) generated C++ classes corresponding to oracle objects with the help of OTT utility.
    3) Instantiating classes in C++ code and assigning values.
    4) calling oracle stored procedure and setting object in statement with the help of setObject function.
    5) deleted objects.
    this is all I am doing ,and getting memory leak , if you need the sample code then please write your e-mail id , so that I can attach files in reply.
    TIA
    Jagendra

    just to correct my previous reply , adding delete statement
    Hi,
    I am using oracle 10.2.0.1 and compiling the code with Sun Studio 11, following is the brief dicription of my code :
    1) create oracle object :
    create or replace type TEST_OBJECT as object
    ( field1 number(10),
    field2 number(10),
    field3 number(10) )
    2) create table :
    create table TEST_TABLE (
    f1 number(10),f2 number (10),f3 number (10))
    3) create procedure :
    CREATE OR REPLACE PROCEDURE testProc
    data IN test_object)
    IS
    BEGIN
    insert into TEST_TABLE( f1,f2,f3) values ( data.field1,data.field2,data.field3);
    commit;
    end;
    4) generate C++ classes along with map file for database object TEST_OBJECT by using Oracle OTT Utility
    5) C++ code :
    // include OTT generate files here and other required header files
    int main()
    int x = 0;
    int y = 0;
    int z =0;
    Environment *env = Environment::createEnvironment(Environment::DEFAULT);
    Connection* const pConn =
    env->createConnection"stmprf","stmprf","spwtrgt3nms");
    const string sqlStmt("BEGIN testProc(:1) END;");
    Statement * pStmt = pConn->createStatement(sqlStmt);
    while(1)
    TEST_OBJECT* pObj = new TEST_OBJECT();
    pObj->field1 = x++;
    pObj->field2 = y++;
    pObj->field3 = z++;
    pStmt->setObject(1,pObj);
    pStmt->executeUpdate();
    pConn->commit();
    delete pObj;
    }

  • Does wscompile generate "fault" tag in WSDL file from Java exception class?

    I'm trying to generate WSDL files from Java classes. I defined some of my own exception that inherits from "RemoteException", but wscompile doesn't generate the corresponding complex type and "fault" tag. Does anyone know if this is a bug or wscompile doesn't support from Java Exception to fault?
    Thanks

    It will if the exceptions do not inherit from RemoteException.

  • How to access an object's variable from native code

    i am passing an object in a native method.i have to change the value of the object's variable.how do i access the variable of object and assign it new value from c++ code.when i try to access it i get a message that the variable must have a class/sruct/union type.
    pl. help.

    I'll tell You if You send me the structure of this object in Java. And a name of field what are You thinking about.
    Maciek

  • Can u access Oracle9i Reports objects from Java Code?

    Hi,
    How can you access Oracle9i Reports (Rel 2) objects like Body, DataSource, Groups etc from Java Code?
    What are the available APIs?
    I went thru the APIs at http://otn.oracle.com/products/reports/htdocs/getstart/docs/Javadocs/oracle/reports/plugin/definition/package-summary.html
    However various constructors stated in these APIs are using classes from "oracle.reports.definition" package which are difficult for me to locate.
    For eg. Report constructor is using oracle.reports.definition.RWReport and there is no API documentation available for RWReport class.
    Please suggest me the site for the above APIs or the method to get a reference to "Report" instance.
    Thanks
    Rakesh.

    Thanks Tugdual for your quick reply.
    Thats exactly what I am trying to do. I want to develop a utility which can have a subset of Report Developer's functionality.
    Currently using Reports Developer & Report Wizard, I can create a report by providing SQL statement and few parameters (like Report Style, Calculated Fields, Template file etc). I want to put all these parameters in a XML file and run my java utility (based on the APIs which I am looking for) which will use these XML parameter file and generate a '.rdf' file.
    Also, could you please suggest me the site for oracle.reports.definition package API or the way to get a reference to oracle.reports.plugin.definition.Report instance.
    Thanks,
    Rakesh

  • Exit from Director with error code

    Hi all!
    How can I exit from director with specifyed error code by
    using lingo or JavaScript syntax?
    I want to catch its error code in batch file for example to
    do something special.
    Sample batch file I want to use:
    myprojector.exe
    if %ERRORLEVEL% == 10 goto GO_TO_SOMETHING_WRONG
    But now, by default director quit with error code 0.
    Thanks in advance

    lis0x90 wrote:
    > How can I exit from director with specifyed error code
    by using lingo
    > or JavaScript syntax?
    >
    > I want to catch its error code in batch file for example
    to do
    > something special.
    > Sample batch file I want to use:
    >
    > myprojector.exe
    > if %ERRORLEVEL% == 10 goto GO_TO_SOMETHING_WRONG
    >
    > But now, by default director quit with error code 0.
    I don't know of any way to do that, but you could get the
    projector to
    create a (zero byte) file if there's an error and in the
    batch file check
    for the existence of that file. (Not forgetting to delete
    that file, if it
    exists, when the projector starts.)
    Andrew

Maybe you are looking for

  • Playback Issues with multiple framerates and Blackmagic Decklink 4K Extreme

    I recently swapped by AJA Kona Card for a Blackmagic Decklink 4K Extreme in order to get external monitoring in DaVinci Resolve. I'm working in a 1080p 23.976 project that includes some 29.97 SD and HD footage. When loading this 29.97fps footage into

  • Can't get video drivers to work

    I've used the same method to install Arch Linux since Windows 8 was released and it has worked perfectly in all that time. This is the method: http://www.neuraladvance.com/dual-booti - g-lvm.html http://www.neuraladvance.com/installing - linux.html N

  • How can I install Win XP instead of Win 7 on mac?

    I bought a MacBook Pro 2.3GHz dual-core Intel i5 (Mac OS X 10.6 Snow Leopard) and found out the Boot Camp requires windows 7. I don't have windows 7 but windows XP (SP3). I have already finished the partition by bootcamp and succeed in windows XP ins

  • Connecting iphone 4s to router

    Hi this might be a silly question but i,m just wondering if anyone knows if it is possible to connect an iphone 4s to a router that has no internet connection thus using the iphone for wireless broadband? Many thanks in advance.

  • Possible to "Print" a list of items?!

    We are starting over... with a classic 5th gen. 30gig and a Touch with 16 gig. Since Windows default backup program zipped all my files down into a bazillion little folders, I have been trying to unzip and drag to restore my awesome itunes library si