Detecting whether vi has been called or run
Ok, I must have missed something because I can't figure out how to
detect whether a VI has been RUN (i.e. is a top-level VI) or has been
called from another VI. I can get at the "Callers" VI server property
to see if the array is empty or not, but if any VI that calls the VI in
question is in memory at all, it gives a false positive. The "First Call?" VI is useless too since it gives a "true" whether the VI is top-level or has been called from some other top-level VI.
Am I missing something obvious?
"lanmat" <[email protected]> wrote in message news:[email protected]..
Ok, I must have missed something because I can't figure out how to
detect whether a VI has been RUN (i.e. is a top-level VI) or has been
called from another VI. I can get at the "Callers" VI server property
to see if the array is empty or not, but if any VI that calls the VI in
question is in memory at all, it gives a false positive. The "First Call?" VI is useless too since it gives a "true" whether the VI is top-level or has been called from some other top-level VI. Am I missing something obvious?
Hi,
The Callers property returns all vi's in memory that call the vi. So that won't work.
Try the Call Chain function. If there is only one element, the vi (the current run of it) is top level.
You can also use the property "Execution>State", which returns "Running" or "Running Top Level". But the call chain is easier.
Remember, if you put the call chain code in a sub vi (you should) you have to check if there are two elements!
Regards,
Wiebe.
Similar Messages
-
I have a main program where I call a sub-vi. In this sub-vi, there is a while loop that is used to wait for commands in the sub-vi. While the while loop is running, I cannot continue with normal operation of the main program. I would like get the sub-vi to run independently once it has been called, but not hold up the main program. As well, I need to still be able to send data to the sub-vi
One way is to use VI Server, which has been mentioned by others. This will allow you to start another VI (by name) and run it entirely independently of the calling VI. This is a good way to start various independent VIs from a main menu, for example. None of the VIs thus called need have any connection to the others.
Another way it to have the SubVI in a separate while loop on the calling VI's BD. Then, use a local var to start this sub VI from the main loop. The calling VI sets a local START bit and continues running. The sub VI's while loop watches for this START bit to go true, and then runs the Sub VI. The advantage here is that one can more easily pass arguments to the SubVI when it is started, using local vars, which are preferable to globals. Once the Su
bVI is running, however, you must use a global Stop Bit, set in the calling VI, to stop it when the calling VI exits, or the calling VI will hang up, waiting for the Sub VI to close and exit its while loop.
If you need an example of this, email me. ([email protected]). I can also recommend Gary W. Johnson's excellent book which discusses this. ("LabVIEW Graphical Programming", 2nd Ed).
Note: Where possible, I try to call a subvi from within the main VI, wait till it is done, then continue. It avoids the use of locals & globals, and results in cleaner code, with fewer "race" conditions. However, the main VI stops until the subVI is done, hence one should make the subVI modal. -
Can you programatically detect that a form has been called by another form?
Can you programatically detect that a form has been called by another form using Open_Form?
When closing a form I want to do one thing if it was opened stand-alone and another thing if it was called using Open_Form by another form.
Thanks in advance.Maybe, Tony, also
GET_APPLICATION_PROPERTY built-in ; it can
be used to retrieve information about the calling (parent) and called
form (child).
The following example describes a way to perform a query on the child form
using a value from the parent form; if the form is a child form, it first
executes a query, otherwise the form goes into insert mode automatically.
WHEN-NEW-FORM-INSTANCE
======================
BEGIN
:GLOBAL.APP_NAME := GET_APPLICATION_PROPERTY(CALLING_FORM);
IF :GLOBAL.APP_NAME IS NOT NULL THEN
EXECUTE_QUERY;
END IF;
END;Regards -
Hi, first time posting on the forum. I own a 2011 IMAC i5 with 12gb of ram 27 inch. Over the last five days the computer has been crashing and running very erratically. When the computer has crashed the entire computer has become unresponsive and frozen, requiring a reboot or two. At other times the computer has slowed way down and the dreaded spinning beachball has appeared and the computer takes its sweet time trying to process something. Iphoto has also crashed independently when the beahball will not disappear. THE entire system is running way below its usual stellar quad performance. I have run a ram test and everything has come back clean, I have fixed any broken permissions, and deleted any newly added software (starcraft2). There is over 250Gb of hard drive free and the activity monitor shows no unusual processes. The computer automatically updated it self recently to 10.8.1 has this caused a conflict with some software? Or is there a deeper problem?
Below are the console reports. There are also reports for unversalaccessd , mdworker, Isregister, loginwindow, iphoto, DMproxy which can be supplied.
Thanks for any help.
Richardx
Interval Since Last Panic Report: 337136 sec
Panics Since Last Report: 1
Anonymous UUID:
Sun Aug 12 20:59:17 2012
panic(cpu 3 caller 0xffffff80118b7b95): Kernel trap at 0xffffff801183fbea, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000010, CR3: 0x00000000bddec000, CR4: 0x0000000000000660
RAX: 0xffffff8011e8eb04, RBX: 0x0000000000000000, RCX: 0xffffff8011e8eb00, RDX: 0x0000000000000000
RSP: 0xffffff817272bd90, RBP: 0xffffff817272bdc0, RSI: 0x00000000533ce620, RDI: 0xffffff802e075618
R8: 0x000000000002a1d7, R9: 0x0000000000000000, R10: 0xffffff8163066000, R11: 0x0000000000000201
R12: 0xffffff802e075618, R13: 0xffffff802e075620, R14: 0xffffff8048c3af58, R15: 0x0000000000000001
RFL: 0x0000000000010082, RIP: 0xffffff801183fbea, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x0000000000000010, Error code: 0x0000000000000000, Fault CPU: 0x3
Backtrace (CPU 3), Frame : Return Address
0xffffff817272ba30 : 0xffffff801181d5f6
0xffffff817272baa0 : 0xffffff80118b7b95
0xffffff817272bc70 : 0xffffff80118ce4ad
0xffffff817272bc90 : 0xffffff801183fbea
0xffffff817272bdc0 : 0xffffff801181a32a
0xffffff817272be50 : 0xffffff801184f990
0xffffff817272be80 : 0xffffff8011820abd
0xffffff817272beb0 : 0xffffff8011810448
0xffffff817272bf00 : 0xffffff80118195fb
0xffffff817272bf70 : 0xffffff80118a5ad6
0xffffff817272bfb0 : 0xffffff80118ced13
BSD process name corresponding to current thread: ScreenSaverEngin
Mac OS version:
12A269
Kernel version:
Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64
Kernel UUID: 8D5F8EF3-9D12-384B-8070-EF2A49C45D24
Kernel slide: 0x0000000011600000
Kernel text base: 0xffffff8011800000
System model name: iMac11,3 (Mac-F2238BAE)
System uptime in nanoseconds: 213783527015426
last loaded kext at 26227504573982: com.apple.driver.AppleUSBCDC 4.1.21 (addr 0xffffff7f93a52000, size 16384)
last unloaded kext at 26341760265155: com.apple.driver.AppleUSBCDC 4.1.21 (addr 0xffffff7f93a52000, size 12288)
loaded kexts:
org.virtualbox.kext.VBoxNetAdp 4.1.6
org.virtualbox.kext.VBoxNetFlt 4.1.6
org.virtualbox.kext.VBoxUSB 4.1.6
org.virtualbox.kext.VBoxDrv 4.1.6
com.Cycling74.driver.Soundflower 1.5.1
com.apple.filesystems.afpfs 10.0
com.apple.nke.asp_tcp 7.0.0
com.apple.filesystems.msdosfs 1.8
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleBluetoothMultitouch 75.15
com.apple.filesystems.autofs 3.0
com.apple.iokit.IOBluetoothSerialManager 4.0.9f8
com.apple.driver.AGPM 100.12.69
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AppleHDA 2.3.0f2
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport 4.0.9f8
com.apple.driver.AudioAUUC 1.60
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.ApplePolicyControl 3.2.6
com.apple.driver.AppleUpstreamUserClient 3.5.10
com.apple.driver.AppleMikeyDriver 2.3.0f2
com.apple.driver.AppleBacklight 170.2.3
com.apple.kext.AMDFramebuffer 8.0.0
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.AMDRadeonAccelerator 1.0.0
com.apple.driver.AppleIRController 320.15
com.apple.driver.AppleUSBCardReader 3.1.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 34
com.apple.iokit.SCSITaskUserClient 3.5.1
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.2.0
com.apple.driver.AppleFWOHCI 4.9.5
com.apple.driver.AppleUSBHub 5.1.6
com.apple.driver.AirPort.Atheros40 600.70.23
com.apple.iokit.AppleBCM5701Ethernet 3.2.5b3
com.apple.driver.AppleAHCIPort 2.4.0
com.apple.driver.AppleUSBEHCI 5.1.5
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleACPIButtons 1.6
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.6
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 196.0.0
com.apple.nke.applicationfirewall 4.0.39
com.apple.security.quarantine 2
com.apple.driver.AppleIntelCPUPowerManagement 196.0.0
com.apple.security.SecureRemotePassword 1.0
com.apple.driver.AppleBluetoothHIDKeyboard 165.5
com.apple.driver.AppleHIDKeyboard 165.5
com.apple.driver.IOBluetoothHIDDriver 4.0.9f8
com.apple.driver.AppleMultitouchDriver 235.27
com.apple.kext.triggers 1.0
com.apple.iokit.IOSerialFamily 10.0.6
com.apple.driver.DspFuncLib 2.3.0f2
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport 4.0.9f8
com.apple.iokit.IOAudioFamily 1.8.9fc9
com.apple.kext.OSvKernDSPLib 1.6
com.apple.iokit.IOSurface 86.0.2
com.apple.iokit.IOBluetoothFamily 4.0.9f8
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.driver.AppleGraphicsControl 3.2.6
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleSMC 3.1.3d11
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.AppleHDAController 2.3.0f2
com.apple.iokit.IOHDAFamily 2.3.0f2
com.apple.driver.IOPlatformPluginFamily 5.2.0d16
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOAcceleratorFamily 19.0.26
com.apple.iokit.IONDRVSupport 2.3.4
com.apple.kext.AMD5000Controller 8.0.0
com.apple.kext.AMDSupport 8.0.0
com.apple.iokit.IOGraphicsFamily 2.3.4
com.apple.iokit.IOUSBHIDDriver 5.0.0
com.apple.iokit.IOSCSIBlockCommandsDevice 3.5.1
com.apple.iokit.IOUSBMassStorageClass 3.5.0
com.apple.driver.AppleUSBMergeNub 5.1.5
com.apple.driver.AppleUSBComposite 5.0.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.5.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOAHCISerialATAPI 2.5.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.5.1
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOUSBUserClient 5.0.0
com.apple.iokit.IO80211Family 500.15
com.apple.iokit.IOEthernetAVBController 1.0.2b1
com.apple.iokit.IONetworkingFamily 3.0
com.apple.iokit.IOAHCIFamily 2.2.0
com.apple.iokit.IOUSBFamily 5.1.6
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.8.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 220
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 344
com.apple.iokit.IOStorageFamily 1.8
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.6
com.apple.iokit.IOPCIFamily 2.7
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0
System Profile:
Model: iMac11,3, BootROM IM112.0057.B01, 4 processors, Intel Core i5, 2.8 GHz, 12 GB, SMC 1.59f2
Graphics: ATI Radeon HD 5750, ATI Radeon HD 5750, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54313235533654465238432D48392020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54313235533654465238432D48392020
Memory Module: BANK 0/DIMM1, 4 GB, DDR3, 1333 MHz, 0x859B, 0x435435313236344243313333392E4D313646
Memory Module: BANK 1/DIMM1, 4 GB, DDR3, 1333 MHz, 0x859B, 0x435435313236344243313333392E4D313646
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x8F), Atheros 9280: 4.0.70.23-P2P
Bluetooth: Version 4.0.9f8 10405, 2 service, 18 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: ST31000528AS, 1 TB
Serial ATA Device: PIONEER DVD-RW DVRTS09
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfa100000 / 2
USB Device: External HDD, 0x1058 (Western Digital Technologies, Inc.), 0x0900, 0xfa140000 / 5
USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfa120000 / 4
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 3
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0xfa111000 / 6
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfd100000 / 2
USB Device: IEEE-1284 Controller, 0x067b (Prolific Technology, Inc.), 0x2305, 0xfd140000 / 5
USB Device: Built-in iSight, apple_vendor_id, 0x8502, 0xfd110000 / 4
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 3Update Soundflower to the most recent version. You have an unsupported edition. http://code.google.com/p/soundflower/downloads/detail?name=Soundflower-1.6.6b.dm g&can=2&q=
-
Make sure both attached files (Run LabVIEW_Cursor_TestCase.vi, SimpleVI.vi) are in the same folder. Run LabVIEW_Cursor_TestCase.vi notice that the -3 error code is returned from "Set Cursor.vi" after it has been called with 30 different panel refs. If "Set Cursor.vi" is replaced with "Set Busy.vi" the same error occurs.Is there a workaround for this problem other that setting the cursor image manually in user32.dll? I must be able to open more than 30 panels and set them all to busy. In the test case I used a single VI, simply to demonstrate the error.
Message Edited by Jerred on 05-04-2007 10:06 AM
Attachments:
LabVIEW_Cursor_TestCase.vi 68 KB
SimpleVI.vi 13 KBThis bug is fixed in LabVIEW 8.0 and later. Unfortunately, I know of no workaround in LabVIEW 7.x. When I encountered this bug in one of my UIs in LabVIEW 7.x, my "fix" was simply to ignore the error outputs from the cursor VIs, and to live with the fact that I had no custom cursors after 30 windows had been opened.
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
How to know that a method has been called and returning value of a method
Hi, everyone! I have two questions. One is about making judgment about whether a method has been called or not; another one is about how to return "String value+newline character+String value" with a return statement.
Here are the two original problems that I tried to solve.
Write a class definition of a class named 'Value' with the following:
a boolean instance variable named 'modified', initialized to false
an integer instance variable named 'val'
a constructor accepting a single paramter whose value is assigned to the instance variable 'val'
a method 'getVal' that returns the current value of the instance variable 'val'
a method 'setVal' that accepts a single parameter, assigns its value to 'val', and sets the 'modified' instance variable to true, and
a boolean method, 'wasModified' that returns true if setVal was ever called.
And I wrote my code this way:
public class Value
boolean modified=false;
int val;
public Value(int x)
{val=x;}
public int getVal()
{return val;}
public void setVal(int y)
val = y;
modified = true;
public boolean wasModified()
if(val==y&&modified==true)
return true;
}I tried to let the "wasModified" method know that the "setVal" has been called by writing:
if(val==y&&modified==true)
or
if(x.setVal(y))
I supposed that only when the "setVal" is called, the "modified" variable will be true(it's false by default) and val=y, don't either of this two conditions can prove that the method "setVal" has been called?
I also have some questions about the feedback I got
class Value is public, should be declared in a file named Value.java
public class Value
cannot find symbol
symbol : variable y
location: class Value
if(val==y&&modified==true)
*^*
*2 errors*
I gave the class a name Value, doesn't that mean the class has been declared in a file named Value.java*?
I have declared the variable y, why the compiler cann't find it? is it because y has been out of scale?
The other problem is:
Write a class named Book containing:
Two instance variables named title and author of type String.
A constructor that accepts two String parameters. The value of the first is used to initialize the value of title and the value of the second is used to initialize author .
A method named toString that accepts no parameters. toString returns a String consisting of the value of title , followed by a newline character, followed by the value of author .
And this is my response:
public class Book
String title;
String author;
public Book(String x, String y)
{ title=x; author=y; }
public String toString()
{return title;
return author;
}I want to know that is it ok to have two return statements in a single method? Because when I add the return author; to the method toString, the compiler returns a complain which says it's an unreachable statement.
Thank you very much!Lets take this slow and easy. First of all, you need to learn how to format your code for readability. Read and take to heart
{color:0000ff}http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html{color}
Now as to your first exercise, most of it is OK but not this: public boolean wasModified()
if (val == y && modified == true)
return true;
y being a parmeter to the setValue method exists only within the scope of that method. And why would you want to test that anyways? If modified evaluates to true, that's all you need to know that the value has been modified. So you could have public boolean wasModified()
if (modified == true)
return true;
}But even that is unnecessarily verbose, as the if condition evaluates to true, and the same is returned. So in the final analysis, all you need is public boolean wasModified()
return modified;
}And a public class has to be declared in a file named for the class, yes.
As for your second assignment, NO you cannot "return" two variables fom a method. return means just that: when the return statement is encountered, control returns to the calling routine. That's why the compiler is complaining that the statement following the (first) return statement is unreachable.
Do you know how to string Strings together? (it's called concatenation.) And how to represent a newline in a String literal?
db -
Hi,
I am running: Weblogic 6.1, SP2
Driver : weblogic.jdbc.oci.Driver
Reason for not using the "thin" driver, which works, is limit
on size of Clob
Previous references to this problem in this newsgroup indicate driver problems
with older versions of WL.. I am using the latest..
The SQLException I get is "After clearParameters() has been called, all parameters
must be reset before executing". This happens the second time the code below is
excuted ( ok the first time )
"clearParameters()" is never called explicitly in my code.
The exception occurs on the "spFunc.execute();" statement at the very end of this
code:
// OBS:connection, conn_, is opened from a connection pool
before this code is called and cloesed afterwards.
conn_.setAutoCommit(false);
// ============== Initializing clob ==================
SerialStatement stmt = (SerialStatement)conn_.createStatement();
stmt.execute("INSERT INTO lc_clob_temp VALUES (1, EMPTY_CLOB())");
// OBS: using a prepared statement here will result in SerialClob
// exception when using setClob in the prepared statement
below
// This is probably a bug ( worked in WL 5.1 ). We had this
as a support case 270952 with WebLogic.
stmt.execute("SELECT * FROM lc_clob_temp WHERE id = 1");
ResultSet crs = stmt.getResultSet();
weblogic.jdbc.rmi.SerialClob xmlClob = null;
while ( crs.next() ) {
xmlClob=(weblogic.jdbc.rmi.SerialClob)crs.getClob("newclob");
// Call Oracle's stored procedure for calling Oracle XSU.
SerialCallableStatement spFunc =
(SerialCallableStatement)conn_.prepareCall(
"declare " +
"insCtx sys.DBMS_XMLSave.ctxType; " +
"begin " +
"insCtx := sys.DBMS_XMLSave.newContext(?); " +
"sys.DBMS_XMLSave.setBatchSize(insCtx,0);" + "sys.DBMS_XMLSave.setCommitBatch(insCtx,
0);" +
"? := sys.DBMS_XMLSave.insertXML(insCtx,?); " +
"sys.DBMS_XMLSave.closeContext(insCtx); " +
"end;"
spFunc.setString(1, viewName );
spFunc.registerOutParameter (2, Types.NUMERIC);
Writer outstream = xmlClob.getCharacterOutputStream();
outstream.write(xml.toString());
outstream.flush();
outstream.close();
spFunc.setClob( 3, xmlClob);
spFunc.execute();
spFunc.close();Hi,
I am running: Weblogic 6.1, SP2
Driver : weblogic.jdbc.oci.Driver
Reason for not using the "thin" driver, which works, is limit
on size of Clob
Previous references to this problem in this newsgroup indicate driver problems
with older versions of WL.. I am using the latest..
The SQLException I get is "After clearParameters() has been called, all parameters
must be reset before executing". This happens the second time the code below is
excuted ( ok the first time )
"clearParameters()" is never called explicitly in my code.
The exception occurs on the "spFunc.execute();" statement at the very end of this
code:
// OBS:connection, conn_, is opened from a connection pool
before this code is called and cloesed afterwards.
conn_.setAutoCommit(false);
// ============== Initializing clob ==================
SerialStatement stmt = (SerialStatement)conn_.createStatement();
stmt.execute("INSERT INTO lc_clob_temp VALUES (1, EMPTY_CLOB())");
// OBS: using a prepared statement here will result in SerialClob
// exception when using setClob in the prepared statement
below
// This is probably a bug ( worked in WL 5.1 ). We had this
as a support case 270952 with WebLogic.
stmt.execute("SELECT * FROM lc_clob_temp WHERE id = 1");
ResultSet crs = stmt.getResultSet();
weblogic.jdbc.rmi.SerialClob xmlClob = null;
while ( crs.next() ) {
xmlClob=(weblogic.jdbc.rmi.SerialClob)crs.getClob("newclob");
// Call Oracle's stored procedure for calling Oracle XSU.
SerialCallableStatement spFunc =
(SerialCallableStatement)conn_.prepareCall(
"declare " +
"insCtx sys.DBMS_XMLSave.ctxType; " +
"begin " +
"insCtx := sys.DBMS_XMLSave.newContext(?); " +
"sys.DBMS_XMLSave.setBatchSize(insCtx,0);" + "sys.DBMS_XMLSave.setCommitBatch(insCtx,
0);" +
"? := sys.DBMS_XMLSave.insertXML(insCtx,?); " +
"sys.DBMS_XMLSave.closeContext(insCtx); " +
"end;"
spFunc.setString(1, viewName );
spFunc.registerOutParameter (2, Types.NUMERIC);
Writer outstream = xmlClob.getCharacterOutputStream();
outstream.write(xml.toString());
outstream.flush();
outstream.close();
spFunc.setClob( 3, xmlClob);
spFunc.execute();
spFunc.close(); -
Every time I start iTunes I get the message: "iTunes exec has been set to run in compatability mode for an older version of Windows. Turn off compatability mode for iTunes before you open it." How do I turn off the compatability mode? Particularly when I have to do it before I turn on iTunes.
Try the following document, only be sure that none of the boxes in the compatibility mode tab are checked (not just the compatibility mode box itself):
iTunes for Windows: How to turn off Compatibility Mode -
recieved error message that states" itunes exe has been set to run in compatibility mode for an older versions of windows for best results turn off compatibility mode for itunes before you open it. How do i access compatibility mode and turn it off ? Believe i have Windows 7.
Try the following document, only be sure that none of the boxes in the compatibility tab are checked (not just the compatibility mode box itself):
iTunes for Windows: How to turn off Compatibility Mode -
How to check if a function module has been called dynamically in programs
Hi,
I wanted to know if there is a way to check if a function module has been called dynamically in any programs. In SE37, if you click on where used list for a FM, it shows FM not found in programs (Possibly dynamic calls).
I am checking if the function module /SDF/RBE_EXECUTE_SQL_WRAPPER has been used in any of SAP programs. Your help is greatly appreciated.
Best regards,
Sivaone way will using program RPR_ABAP_SOURCE_SCAN search for complete source codes with a find string RBE_EXECUTE_SQL_WRAPPER .
PS But it the function module name comes from a table ( Table entry value) then it is difficult to find
a® -
Cannot reference this before supertype constructor has been called
I'm confused. I would like it easier for a user to use a class where one item can be determined from another, but I'm having a problem with the constructors.
First, one constructor that works fine:
public UndirectedGraph(List nodes, List edges) {
this(nodes, edges, 100, 100, true, false);
}which then calls the ultimate constructor that accepts all those other parameters.
The problem is with this one:
public UndirectedGraph(List nodes) {
this(nodes, collectEdges(nodes), 100, 100, true, false);
}collectEdges returns a List of Edges, so technically all should be fine. However, this won't compile, with the message:
UndirectedGraph.java [37:1] cannot reference this before supertype constructor has been called
this(nodes, collectEdges(nodes));
^
1 error
Errors compiling UndirectedGraph.Is there a workaround for what I'm trying to do? It'd be a lot easier to have this collectEdges() method in this single place than in any class that's using this one.You HAVE to call the super constructor before you do anything else in the constructor. You can make calls to this but the final constructor to be executed has to make the super call. I am assuming you are subclassing something here because this should not show up as an error if there is a default constuctor. The reson for this is that a subclass is built on top of its parent classes meaning it can access information in them methods in them etc. Even in the constrcutor it can do this so the super class MUST be created before the subclass.
-
A way to set a flag in java layer when native method has been called?
Hi,
I'm calling a native method from the java layer through to a native c function. Is there a way I can set a flag in the java layer when this native method has been called?
Thanks!1. Create a wrapper method. The wrapper method is the only exposed method. It calls the native method. It sets the flag.
2. Set the flag in the native method itself.
3. You might be able to use the debugging API to do this however it is going to require quite a bit of work. And it injects itself at runtime.
Is there a reason for this request? There might be other solutions if a general problem was posed. -
How to see whether GR has been done on PO or Inbound Delivery
Hi Gurus
How to know whether GR has been done on PO or inbound delivery. Is there any report or tables through that we can see this.
Regards
IrfanHi
If you check the material document posted for GR it should specify
If the GR is done with respect to Inbound delivery then the inbound delivery number will be in material document if I remember it correctly.
Please check and advice
Deepak -
Should I upgrade to Mavericks now from 10.6.8 (i-Mac, mid 2007, core 2 duo)? Will Mavericks be more secure than 10.6.8 ? I have the latest version of 10.6.8 and have upgraded my memory to 4GB. This could be one reason for me to make the move now.
10.6.8 has been great, it runs great with all my apps but am concerned about lack of support now. I know my PC apps will not work but maybe some apps that work now will "walk away" from 10.6.8 and then there's the security question of above.
I am also concerned about iPhoto 9 transition to i-Photo 11 and compatibility of my Time Machine WD Passport HD (format: Mac OS Extended (Journaled) based on several questions in applicable forums.
Thanks for your help in this important decision!If I were you I would stick with Snow Leopard. It's much better suited to your old hardware. That said:
Upgrading from Snow Leopard to Lion or Mavericks
To upgrade to Mavericks you must have Snow Leopard 10.6.8, Lion, or Mountain Lion installed. Purchase and download Mavericks (Free) from the App Store. Sign in using your Apple ID. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
OS X Mavericks- System Requirements
Macs that can be upgraded to OS X Mavericks
1. iMac (Mid 2007 or newer) — Model Identifier 7,1 or later
2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) —
Model Identifier 5,1 or later
3. MacBook Pro (Mid/Late 2007 or newer) — Model Identifier 3,1 or later
4. MacBook Air (Late 2008 or newer) — Model Identifier 2,1 or later
5. Mac mini (Early 2009 or newer) — Model Identifier 3,1 or later
6. Mac Pro (Early 2008 or newer) — Model Identifier 3,1 or later
7. Xserve (Early 2009) — Model Identifier 3,1 or later
To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
Are my applications compatible?
See App Compatibility Table — RoaringApps.
Upgrading to Lion
If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax. It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
Lion System Requirements
1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
or Xeon processor
2. 2GB of memory
3. OS X v10.6.6 or later (v10.6.8 recommended)
4. 7GB of available space
5. Some features require an Apple ID; terms apply. -
How can we know in classic scenario, whether confirmation has been done in
Hi ,
In Self service procurement with classic scenario:
I believe that we can do confirmation in EBP or in R/3.
How can we know in classic scenario after confirmation, whether confirmation has been done in EBP or in R/3.
Also please give an idea is there any configuration difference for confirmation need to do in EBP.
thanks
RESHMAHello Reshma,
>
Reshmab wrote:
> How can we know in classic scenario after confirmation, whether confirmation has been done in EBP or in R/3.
> (...)
Using Web GUI (ITS or Portal), if you look at the SC history (or PO history) in table mode, if column where you find SC number as no value for confirmation (confirmation with SRM number range), this means PO was confirmed directly in R/3 with a Goods Receipt.
Using SAP GUI, if confirmation was done in SRM purchasing document exists in CRMD_ORDERADM_H for PROCESS_TYPE = 'CONF',
>
Reshmab wrote:
> Also please give an idea is there any configuration difference for confirmation need to do in EBP.
> (...)
There is no specific customizing to allow SRM confirmation: just give correct role to users in order access to confirmation transactions (authorization object BBP_PD_CNF ). Check with roles EMPLOYEE* or PURCHASER*.
Regards.
Laurent.
Maybe you are looking for
-
SSAS Tabular : MDX query goes OutOfMemory for a larger dataset
Hello all, I am using SSAS 2012 Tabular to build the cube to support the organizational reporting requirements. Right now the server is Windows 2008 x64 with 16GB of Ram installed. I have the following MDX query. What this query does is get the membe
-
I am getting an error message when initializing iTunes. iTunes was not properly installed. If you wish to import or burn CD's you need to reinstall iTunes. I uninstalled, cleaned the reg, and reloaded a few times. Diagnostic DVD/CD test results "Uppe
-
Where should I set up my FTP server if I have no money to spend? I would prefer if someone answers this quickly as I want this site up and running soon.
-
Network shared process variable timeout error
I am in the process of migrating my large application from LV10 to LV 11 and Stepped on this Barkers Nest. Not O.K. Code O.K. Code I tried to isolate this error into a VI on it's own and the bug went away. Has anyone else seen anything else like this
-
Another CS6 Hard Drive Thread...
I hate to do this... because it has been covered A LOT, but I wanted to toss out a drive configuration I am thinking about buying. sata 6gb 1: 180GB SSD (os/apps) 2: 180GB SSD (media/projects) 3: 180GB SSD (page/cache) 4. 180GB SSD (preview/exports)