Error Creating Pbni Object
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center. Forums Archive > PowerBuilder > WebServices > "Error Creating PBNI Object" Error Creating PBNI Object 8 posts in WebServices . https://groups.google.com/d/topic/sybase.public.powerbuilder.webservices/8fMWaF6ZiRg Last posting was on 2003-11-18 19:54:14.0Z Naveen Posted on 2003-11-17 21:34:48.0Z Reply-To: "Naveen"
links to the respective forums on SCN, http://sfh01.sapdevcenter.com/nntp-archive/action/article/%3C3f5441f5$1@forums-1-dub%3E or you can go to SCN and search for your product in the search box (upper right corner) to find your specific http://pbdj.sys-con.com/node/106948 developer center. Forums Archive > PowerBuilder > PB Native Interface > "Error creating PBNI object when deploying app" Error creating PBNI object error creating when deploying app 8 posts in PB Native Interface . Last posting was on 2003-09-04 20:49:44.0Z Serg Posted on 2003-09-02 07:08:37.0Z From: "Serg"
HAT RUBY SAP SEARCH SILVERLIGHT SYMBIAN VIDEO VIRTUALIZATION WEB 2.0 WEBLOGIC WEBSPHERE WIRELESS XML Home Subscribe Advertise Authors Topics Videos Events Webcasts Internet of Things | Cloud | Big Data | DevOps | Containers | Microservices | WebRTC | Java | Linux | Open Stack | Mobile | Security | SDDC PowerBuilder Authors: Chris Pollach, Yeshim Deniz, Jayaram Krishnaswamy, Kevin Benedict, Avi Rosenthal Related Topics: PowerBuilder PowerBuilder: Article PowerBuilder Native Interface Handling PBNI exceptions in PowerBuilder By Roy Kiesler Article Rating: Select ratingGive it 1/5Give it 2/5Give it 3/5Give it 4/5Give it 5/5 February 1, 2004 12:00 AM EST Reads: 8,177 Related Print Email Feedback Add This Blog This The PowerBuilder Native Interface (PBNI) is a standard C++ programming interface that allows developers to extend the PowerScript language with C++ classes and to call PowerScript functions from C++ applications. Modeled after the Java Native Interface (JNI), PBNI provides a native vehicle that extends the functionality of PowerBuilder to that of the C++ programming language. In Part 3 we triggered PowerBuilder events, called PowerScript system functions from within a PBS, and discussed accessing and manipulation arrays. In Part 4, we'll discuss handling runtime errors, debugging PBNI classes, and loading the PowerBuilder VM in a third-party application. To properly handle runtime errors in PBNI objects, it's recommended that you use exception handling mechanisms in both C++ and PowerScript. PBNI methods that are callable from PowerBuilder return a PBXRESULT (long) value. The list of possible return values is defined in pbni.h and shown in Listing 1. If an exception is caught in the PBNI method, the error handling code should return the appropriate error code to the calling PowerBuilder code as shown in Listing 2. When a PBNI object method returns any value other than PBX_OK, a PBXRuntimeError exception is thrown in the PowerBuilder application and should be intercepted by the calling PowerScript code: // PowerScript // CPBNIClass myClass TRY myClass.DoSomethingBad() CATCH ( PBXRuntimeError pbxre ) MessageBox( ?PBNI Exception?, pbxre.GetMessage() ) END TRY Neglecting to catch exceptions on the C++ side will result in a C runtime exception, as illustrated in Figure 1. Leaving a PBXRuntimeError exception uncaught will yield the familiar PowerBuilder Runtime Error (R0001). Debugging PBNI Cla