Deleting a pointer to a constant object

I have code in C++ compiled under Sun WorkShop C++ Compiler 5.0 that is able to delete a pointer to a constant object e.g const int * ptr ;
I'm able to delete it, using delete ptr;
This just a trivial example ... but I'm able to delete a pointer to any constant object. I'm relatively new to C++ so this is very confusing that it should allow me to do so. When I compile the same code in Microsoft VC++ the compiler catches it rightfully saying that it cannot overload the delete operator with a pointer to a constant or something like that ... So my question is is this an anamoly in Sun compiler ... or does the C++ standard loosely defined as to what should happen(. I thought you couldn't overload a delete operator with pointert to a constant) or maybe my shop needs a patch that will solve this problem .... ?
Just tried on Forte same thing happened.
Please Help.

Yes, it is valid to delete a const object. C++ Standard, section 5.3.5, paragraph 2:
"Note: a pointer to a const type can be the operand of a delete-expression; it is not necessary to cast away the constness"
The reason is that since you created the object dynamically, you can remove itdynamically as well. You are just not allowed to change its value while it exists.

Similar Messages

  • How do I make 2 points in two different objects to stick to eachother?

    As the topic says, I need to make 2 points in two different objects to stick to eachother, so for example when I rotate a line which is "connected" to a square object in one end, the line will rotate around that point.
    Also, if I have lets say two square objects and I "connect" one of the corners of one square object to another corner of another square object, where the points are located exactly on the same location, I need to be able to rotate any of the square objects around the point which is connected to the other square.
    Is this possible?
    Some will probably ask why I need to do this, but I can only say I do, it's a long story

    Its quite complicated guys , I'm quite sure Illy doesn't do what I'm looking for.
    It's basically a line which is "anchored" at one point and connected to a square at the other point. So when I move the square the line is being dragged with it without altering its length. And of course the "anchored" point of the line stays where it was from the beginning, while the other end is attached to the square moving with it.
    This way the squares point, the one which is connected to the line, can neither end up closer or farther from the lines "anchored" point. The square can only move around that point in an exact circle, with constant radius.
    I'm using this for measuring/map creation. It doesn't have to be 100% exact down to the millimetre, but I'd be happy if I could get it centimetres exact if you know what I mean. Of course this is on a scale of like 100x100 metres or more.
    I can do it without this "feature" too, but it takes more time and is not totally exact either.
    I can't use CAD for this, so it'll have to be Illy.

  • Two string references pointing to the same object

    Look at the following code snippet         String   s1 = "hello";
            String   s2 = "world";
            String   s3 = "welcome";
            String   s4 = "here";
            String   s5 = "hello";
      They say that references s1 and s5 point to the same object "hello".
    At run time after creating objects from s1 to s4 how the Java run time knows that there is already an object "hello" and assigns a differernt reference.

    When the jvm load the class file, all suchconstants
    found in the class are loaded in a global constant
    pool. when you assign the constant to a variable,it
    uses the same one from the constant pool.Suppose I intialize a string by getiing input
    nput from the console which already exists, in that
    case a new object will be created or the existing one
    be used.A new object will always be created in that case, but you can get a reference to the string in the pool by calling intern. See the javadoc for intern in the String class.
    Kaj

  • Why cant I delete C++ pointer in JNI DLL

    Hi,
    I'm new to JNI and pretty rusty on C++, normally I stick to 100% Java, however I had a need for some native magic. My code works well and does the job I needed however my (old) knowledge of C++ tells me that I need to clean my objects up when I'm done. However I am unable to delete a pointer and I'm pretty sure its got something to do with JNI and lots to do with my lack of indepth knowledge. Here's what my code does.
    I have a Java app (J) that statically loads my DLL
    "J" calls a native c++ function within the DLL called (S).
    "S" creates a C++ object using the "new" operator, called (T).
    "T" is a Thread which I then start ( it runs for 1minute)
    "S" does not wait for "T" to finish, instead it returns immediately, passing the pointer to "T" back to "J"
    "J" then starts a normal Java Thread and every 10secs calls a native function from the DLL, called (C), and passes the pointer to "T".
    "C" then checks "T" to find out if it has finished, if not then it returns % complete as an "int". If "T" has finished it throws an Exception, and then attempts to delete "T" calling the following code :-
    delete T;
    T = 0;
    printf("\ndone\n");However it crashed on "delete T", if I comment both these lines out everything completes ok.
    My first thought was that "T" is already deleted, however I've checked and this is not the case, it still points to a valid "T" object. I know this because if I let my Java Thread continue to query for status long after "T" has stopped it still gets the last status message.
    So my problem is, how do I delete "T"?. The system crashes if I try......interestingly enough though if I comment out the "delete T" line and leave the "T=0" line then I get an "Access Violation" error instead.
    Does this mean that C++ does not own the object anymore (becase I passed it to Java). Does Java now own it and will it garbage collect it for me?
    Thanks for any help
    Chris.

    Hi,
    Not sure how I can pinpoint the stack corruption? Here's the JNI log produce when I use "ie=0", perhaps it would mean something to you.
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0afd2bb7, pid=3584, tid=1680
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode)
    # Problematic frame:
    # C [IEConnectionJNI.dll+0x2bb7]
    --------------- T H R E A D ---------------
    Current thread (0x0acc3d28): JavaThread "Thread-0" [_thread_in_native, id=1680]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000010
    Registers:
    EAX=0x0b4cfca0, EBX=0x06c77528, ECX=0x00000000, EDX=0x0b149438
    ESP=0x0b4cfc34, EBP=0x0b4cfcb0, ESI=0x0b4cfc38, EDI=0x0b4cfcb0
    EIP=0x0afd2bb7, EFLAGS=0x00010246
    Top of Stack: (sp=0x0b4cfc34)
    0x0b4cfc34: 00001388 0acc3d28 06c77520 06c77528
    0x0b4cfc44: cccccccc cccccccc cccccccc cccccccc
    0x0b4cfc54: cccccccc cccccccc cccccccc cccccccc
    0x0b4cfc64: cccccccc cccccccc cccccccc cccccccc
    0x0b4cfc74: cccccccc cccccccc cccccccc cccccccc
    0x0b4cfc84: cccccccc 0b311910 cccccccc 0b311910
    0x0b4cfc94: 0b311910 cccccccc cccccccc 0b13d2d8
    0x0b4cfca4: cccccccc 00a86770 00000000 0b4cfce0
    Instructions: (pc=0x0afd2bb7)
    0x0afd2ba7: f0 e8 ca 5f 0c 00 8b f4 68 88 13 00 00 8b 4d fc
    0x0afd2bb7: 8b 51 10 52 ff 15 b8 d3 14 0b 3b f4 e8 b8 a0 00
    Stack: [0x0b490000,0x0b4d0000), sp=0x0b4cfc34, free space=255k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [IEConnectionJNI.dll+0x2bb7]
    j system.IEConnectionJNI.getDownloadStatus(I)Ljava/lang/String;+0
    j system.IEConnectionJNI$ProgressCheck.run()V+17
    v ~StubRoutines::call_stub
    V [jvm.dll+0x818b8]
    V [jvm.dll+0xd431d]
    V [jvm.dll+0x81789]
    V [jvm.dll+0x814e6]
    V [jvm.dll+0x9c06b]
    V [jvm.dll+0xfe7f5]
    V [jvm.dll+0xfe7c3]
    C [MSVCRT.dll+0x2a3b0]
    C [kernel32.dll+0xb683]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j system.IEConnectionJNI.getDownloadStatus(I)Ljava/lang/String;+0
    j system.IEConnectionJNI$ProgressCheck.run()V+17
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x00037180 JavaThread "DestroyJavaVM" [_thread_blocked, id=3588]
    =>0x0acc3d28 JavaThread "Thread-0" [_thread_in_native, id=1680]
    0x00aca528 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=3660]
    0x00a92730 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2336]
    0x00a913a8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3648]
    0x00a90730 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3644]
    0x00a87c18 JavaThread "Finalizer" daemon [_thread_blocked, id=3640]
    0x00a86810 JavaThread "Reference Handler" daemon [_thread_blocked, id=2144]
    Other Threads:
    0x00a84ea8 VMThread [id=3624]
    0x00a93908 WatcherThread [id=3656]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 576K, used 378K [0x02ad0000, 0x02b70000, 0x02fb0000)
    eden space 512K, 74% used [0x02ad0000, 0x02b2eb90, 0x02b50000)
    from space 64K, 0% used [0x02b50000, 0x02b50000, 0x02b60000)
    to space 64K, 0% used [0x02b60000, 0x02b60000, 0x02b70000)
    tenured generation total 1408K, used 0K [0x02fb0000, 0x03110000, 0x06ad0000)
    the space 1408K, 0% used [0x02fb0000, 0x02fb0000, 0x02fb0200, 0x03110000)
    compacting perm gen total 8192K, used 1815K [0x06ad0000, 0x072d0000, 0x0aad0000)
    the space 8192K, 22% used [0x06ad0000, 0x06c95e60, 0x06c96000, 0x072d0000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x0040c000      C:\jdk1.5.0_03\bin\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\MSVCRT.dll
    0x6d6b0000 - 0x6d836000      C:\jdk1.5.0_03\jre\bin\client\jvm.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x6d2f0000 - 0x6d2f8000      C:\jdk1.5.0_03\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d680000 - 0x6d68c000      C:\jdk1.5.0_03\jre\bin\verify.dll
    0x6d370000 - 0x6d38d000      C:\jdk1.5.0_03\jre\bin\java.dll
    0x6d6a0000 - 0x6d6af000      C:\jdk1.5.0_03\jre\bin\zip.dll
    0x10000000 - 0x10007000      C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin\breakgen.dll
    0x0afd0000 - 0x0b15f000      C:\projects\relatis_systray\IEConnectionJNI.dll
    0x61410000 - 0x61534000      C:\WINDOWS\system32\urlmon.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x77120000 - 0x771ac000      C:\WINDOWS\system32\OLEAUT32.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x5dca0000 - 0x5dce5000      C:\WINDOWS\system32\iertutil.dll
    0x5d090000 - 0x5d12a000      C:\WINDOWS\system32\COMCTL32.dll
    0x771b0000 - 0x7727e000      C:\WINDOWS\system32\WININET.dll
    0x003f0000 - 0x003f9000      C:\WINDOWS\system32\Normaliz.dll
    0x73000000 - 0x73026000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x763b0000 - 0x763f9000      C:\WINDOWS\system32\comdlg32.dll
    0x7c9c0000 - 0x7d1d5000      C:\WINDOWS\system32\SHELL32.dll
    0x773d0000 - 0x774d3000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x6d530000 - 0x6d543000      C:\jdk1.5.0_03\jre\bin\net.dll
    0x71ab0000 - 0x71ac7000      C:\WINDOWS\system32\WS2_32.dll
    0x71aa0000 - 0x71aa8000      C:\WINDOWS\system32\WS2HELP.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x71a50000 - 0x71a8f000      C:\WINDOWS\system32\mswsock.dll
    0x662b0000 - 0x66308000      C:\WINDOWS\system32\hnetcfg.dll
    0x71a90000 - 0x71a98000      C:\WINDOWS\System32\wshtcpip.dll
    0x5ad70000 - 0x5ada8000      C:\WINDOWS\system32\uxtheme.dll
    0x10100000 - 0x1010e000      C:\Program Files\Logitech\SetPoint\lgscroll.dll
    0x7c340000 - 0x7c396000      C:\WINDOWS\system32\MSVCR71.dll
    0x7c3a0000 - 0x7c41b000      C:\WINDOWS\system32\MSVCP71.dll
    0x76ee0000 - 0x76f1c000      C:\WINDOWS\system32\RASAPI32.dll
    0x76e90000 - 0x76ea2000      C:\WINDOWS\system32\rasman.dll
    0x5b860000 - 0x5b8b4000      C:\WINDOWS\system32\NETAPI32.dll
    0x76eb0000 - 0x76edf000      C:\WINDOWS\system32\TAPI32.dll
    0x76e80000 - 0x76e8e000      C:\WINDOWS\system32\rtutils.dll
    0x769c0000 - 0x76a73000      C:\WINDOWS\system32\USERENV.dll
    0x722b0000 - 0x722b5000      C:\WINDOWS\system32\sensapi.dll
    0x76fc0000 - 0x76fc6000      C:\WINDOWS\system32\rasadhlp.dll
    0x76f20000 - 0x76f47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76fb0000 - 0x76fb8000      C:\WINDOWS\System32\winrnr.dll
    0x76f60000 - 0x76f8c000      C:\WINDOWS\system32\WLDAP32.dll
    VM Arguments:
    jvm_args: -Didea.launcher.port=7534 -Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin -Dfile.encoding=windows-1252
    java_command: com.intellij.rt.execution.application.AppMain system.IEConnectionJNI
    Environment Variables:
    CLASSPATH=.;C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip
    PATH=C:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\SecureCRT\;C:\exim_downloaded\bin;C:\BES\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\BES\bin
    USERNAME=Chris
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
    Memory: 4k page, physical 2096340k(1206824k free), swap 4194303k(3968120k free)
    vm_info: Java HotSpot(TM) Client VM (1.5.0_03-b07) for windows-x86, built on Apr 13 2005 02:07:01 by "java_re" with MS VC++ 6.0

  • Cannot delete anchor points

    For some reason, I cannot delete anchor points in Flash. I
    have tried both the subselection tool and the pen tool. Does anyone
    have any idea what gives?

    I found the problem. I wasn't opening the drawing object
    layer. It's a little different in Fireworks.

  • How to delete the index for the business object BUS0033

    Hi to all experts,
    I'm applying note 1349496 the error here is no records with F4 help for the funds center .
    solution from the note
    Implement the attached program corrections. Then, in the transaction, delete the index for the business object BUS0033, reactivate it, and start the indexing in the indexing mode "Full". The system then displays the data correctly in the F4 search help.
    how to do the second part i have already applied the note .

    any help

  • How do I fix my Pen Tool/Delete Anchor Point Tool in Illustrator?

    Problem One - I'm trying to change the form of my shape, and all of a sudden my Delete Anchor Point Tool isn't working. I'm clicking (and zoomed in A LOT) and it's not clicking on or deleting any of my anchor points.
    Problem Two - I'm not sure if it's just the slow speed of my work computer, but I'm trying to trace a shape in a photo that I have locked in the background, and when I click my pen tool it makes the point like 2 to 5 pixels away from where I'm clicking, so I can't precisely trace the shape that I would like to.
    Any tips and help on this ASAP would be great! Getting stuck like this is throwing off my productivity and it's very frustrating!
    Thank you!

    The problem was Google Chrome browser!  As soon as I quit Chrome my pen tool started working again.  I didn't even need to restart Fireworks.  I wonder if it is a conflict with one of my plugins/add ons.  Most likely.
    UPDATE - I did narrow it down to one specific Google Chrome extension.  It was "Google Play Music"

  • Deleting anchor point, deletes entire path

    Need a solution...when I create a path with the pen tool I am unable to delete anchor points without deleting the entire path. Using the Pen tool + option reveals the white arrow (Direct Selection Tool) - I click and drag a box around the desired anchor point - the selected point is then black - all other points along the path are not filled with black - hence they are not selected - I hit the delete button - instead of the single selected point being deleted, the path is deleted. In the past I would have to quit and reboot PS to clear the problem - that fix is no longer working.
    Any suggestions. Thanks.
    CS4
    Mac 10.6.4
    4GB RAM

    Had another look at this and I will try to be as brief as possible.
    I forgot to point out in my first comment that I had auto add/delete points selected and with that selected the pen tool autmatically shows the delete point tool when the tool is over a point. Clicking would then remove the point and the path direction will be modified. It is not possible to remove a point from a bezier path without modifying the paths direction, or to remove an end point from a path, this is the mathmatical law involved. If you need a gap in the path, place a new point either side of the required gap the delete the path between them. T modify the end of a path, ie. shorten it, you will still need to place a point where you desire the path to end. If as you suggest the whole path is deleted I can only imagine you may be accidentaly double deleting, as the whole of the path becomes selected when you have deleted a point and a second click will delete the rest of the path.
    I have tried to reproduce your problem and so this is what i can come up with. I have been using Adobe Illustrator an Photoshop since 1990 and I have not come across this before.
    Hope you find a solution as i do appreciate the frustration it can cause.
    Mac Pro 2 x 2.8 GHz Quad Core, OSX 10.5.8, 6 GB Nvidia 8800GT, PS CS5.
    Regards

  • Why i am unable to select between 2 anchor points with in a object while dragging with direct select

    why i am unable to select between 2 anchor points with in a object while dragging with direct selection tool instead it moves

    Another option is to temporarily change your view to outline mode, when your done switch back to preview mode. Ctrl-Y or View>Outline {View>Preview} The menu option will change depending on which mode you are in.
    And another option, double click on the object in question to place it in Isolation mode. You can now edit to your hearts content. When done, click on the gray border at top of document.
    So as you can see there are multiple ways of accomplishing the same thing.

  • IWeb and constant objects.

    Is this possible not changing my constant objects e.g. header or my logo or some stripes etc ( reload again on my next pages) I would like to reload only content, not the whole page again and again. Maybe someone html guru knows how. Thanks for the future help.

    Suz, I think Eugene is thinking of having all the shared assets such as PNGs, JPGs and what not to be kept in the same folder so the browser uses its cache instead of loading images page after page.
    However, I had put that idea to sleep long ago
    http://discussions.apple.com/thread.jspa?messageID=1967646&#1967646
    http://discussions.apple.com/thread.jspa?messageID=3799379&#3799379
    It could be done though.

  • Delete a row from a data object using an AQ-driven EMS

    Hello, technetwork.
    I need to show the contents of a table that changes frequently (inserts, updates and deletes) at ORDBMS 10g in my BAM dashboard.
    What i have done is:
    - Create two different queue tables, queues.
    - Create two triggers: one for "AFTER insert or UPDATE" and the other for "BEFORE DELETE".
    - Create two EMS, one configured to Upsert operations and the other to Delete.
    - The Upsert EMS works, but the Delete EMS does not.
    - Both EMS Metrics say that they work fine and commit the messages i send to the ADC.
    - Testing showed records are populated and updated in the ADC but never deleted.
    There is a detailed user case for "Creating an EMS Against Oracle Streams AQ JMS Provider" in the Fusion Midleware Developer's Guide for SOA Suite, but it deals only with Upserts. I am using the last versions of SOA suite and Weblogic. The official support has no information either.
    I hope writing a web service client isn't the only way to delete a row from a data object. Am i missing something? Any help will be much appreciated.
    My EMS config:
    Initial Context Factory: weblogic.jndi.WLInitialContextFactory.
    JNDI Service Provider URL: t3://<spam>:80.
    Topic/Queue Connection Factory Name: jms/BAMAQTopicCF.
    Topic/Queue Name: jms/ProdGlobalBAMD_flx.
    JNDI Username: .
    JNDI Password: .
    JMS Message Type: TextMessage.
    Durable Subscriber Name (Optional): BAM_ProdGlobalBAMD.
    Message Selector (Optional): .
    Data Object Name: /bam/ProdGlobalBAM_flx.
    Operation: Delete.
    Batching: No.
    Transaction: No.
    Start when BAM Server starts: No.
    JMS Username (Optional): .
    JMS Password (Optional): .
    XML Formatting
    Pre-Processing
    Message Specification
    Message Element Name: row
    Column Value
    Element Tag
    Attribute
    Source to Data Object Field Mapping
    Key Tag name Data Object Field
    . BARCODE. BarCode.
    Added my EMS config

    Ram_J2EE_JSF wrote:
    How to accomplish this using JavaScript?Using Javascript? Well, you know, Javascript runs at the client side and intercepts on the HTML DOM tree only. The JSF code is completely irrelevant. Open your JSF page in your favourite webbrowser and view the generated HTML source. Finally just base your Javascript function on it.

  • Delete attachments linked with a business object

    Hi All,
    I have added some pdf attachments to a business object using Archivelink. I am making use of FM - ARCHIV_CREATE_TABLE.
    This worked. Now we need to either add a retention period for these attachments or archive them or delete them after a certain period of time. I tried some ways till now.. but they havent worked
    1. Setting a delete date in my FM ARCHIV_CREATE_TABLE :
    CALL FUNCTION 'ARCHIV_CREATE_TABLE'
          EXPORTING
            ar_object                      = <archiveobj>
            DEL_DATE                       = '20100624'
            object_id                      = l_arc_doc
    However when I look in OAAD, this delete date doesnt show up!
    2. Using standard reports - RSBCS_REORG, RSSO_DELETE_PRIVATE and RSSODFRE. However my attachments are not even getting selected to be deleted.
    3. I also tried with FM - archive_object_delete and ARCHIVOBJECT_DELETE. Here I am getting an error that states-
    Error during import of physical document from cluster table SOFFCONT1.
    Any ideas towards this ? All your answers are appreciated.
    Thanks, Liz

    All,
    Minutes after I wrote up this question, I tweaked a way to delete the PDF using FM -ARCHIVOBJECT_DELETE. The archive doc id to be given here is from the 'Link' table one would have configured in transaction OAC3 (part of Archivelink config).
    I would still like to know if there is a cleaner way to delete the attachments from a business object.
    Also is there is way to delete the 'link' from transaction OAAD.
    Your input is appreciated!
    Thanks, Liz

  • MAGNETIC PEN TOOL, AUTO DELETE ANCHOR POINT.

    MAGNETIC PEN TOOL, AUTO DELETE ANCHOR POINT.
    How would you like the feature to work?
    like pen tool in AI, when clicking out around shape and creating anchor points, ability to hover over previous anchors and click on them to delete them,
    also right click to automatically delete most recent path created , and ability for consecutive right clicks to keep deleting previous segments of anchor and path.
    Why is this feature important to you?
    easier editability on the fly with the magnetic pen tool..

    Many people seem to confuse joining with averaging. Like Ray says, only endpoints can be joined. In your case you don't need to join the points. Select the points you want to have in the same position and Cmd-alt-J, Both, and all the points will hop to the average position.
    Alternatively you can snap an endpoint to an anchor point. Put your cursor on the selected endpoint that you want to move and drag it till it snaps onto the anchor point you're aiming at.

  • C++ STL library error: Non-const function ... called for const object

    Hello,
    I'm using the Forte Developer 6 Update 2 C++ compiler and standard library on Solaris 9 SPARC. I've installed the recommended patch set for C++ (both the workshop and platform patches).
    In my code, I have a STL set with some elements that I want to modify, say:
    typedef set<SomeClass> MySet;
    typedef MySet::iterator MySetIter;
    I'm trying to look for an element, then update some of its fields:
    MySet theSet;
    SomeClass sci;
    MySetIter it = theSet.find(sci);
    if (it != theSet.end()) {
    it->update_some_fields();
    The above code fails with the following error (some details scrapped):
    Error: Non-const function SomeClass::update_some_fields() called for const object
    Which is weird, since set::find() seems to return a set<...>::iterator, not a set<...>::const_iterator!
    If I try a workaround, like this:
    if (it != theSet.end()) {
    SomeClass &tmp = *it;
    tmp->update_some_fields();
    I get this other error:
    Initializing SomeClass& requires an lvalue.
    Is there some way to convince the Forte compiler to work around this situation (most likely a compiler / library bug)?

    This was fixed, too, by replacing the set with a map. It seems that the issue was related to the fact that any change made to a set member is supposed to not modify the elements that make up the key (the elements that are used in the comparison function to determine the ordering). The Windows (dinkumware) implementation of the STL allows set modifications, though I don't know how they check that the key fields are not modified. The Solaris implementation (and the GNU implementation, too) disallows any modifications made to set members. At least that's what a person more knowledgeable of C++ in our office found out. So I don't think the issue was related to template constructors or any unimplemented features after all.

  • How to delete unreleased transport request where the objects are locked

    Hi Experts,
      I was created a transport request, but I am facing some probelms with taht request, now I want to delete transport request. I tried to delete them in SE10, I am getting message that the objects are locked. Please tell me how to delete unreleased transport requests where the objects belong to this transport request are locked.

    Hi,
    First go to transaction se03 Choose "Unlock Objects (Expert Tool)" option under "Requests/Tasks" and unlock your task,
    Than go to se10 and delete what you want.
    I hope it helps.
    Bulent

Maybe you are looking for