Twice Bitten...

Can someone explain to me why following the recommendations causes problems?
It may be a 3.0 vs 2.2.1 issue. I'm throwing that out just as food for thought.
But, I think I've been bitten by this on both 2.2.1 and 3.0.
For memory managment, anything you alloc/init, you release.
Anything you retain using:@property (retain) object* obj;
you are supposed to (in 3.0, under viewDidUnload, in 2.x under dealloc) provide aself.obj = nil;
as well as in dealloc add [obj release];
Well, I do that, and I run into EXCBADACCESS errors.
IF I comment out, either the self.obj = nil, or the release statements, all is cool.
I only have an iPod Touch to test on device, and it is still on OS 2.2.1, since it's "borrowed" and the owner and I have not discussed the $10/$5 upgrade fee to bring it current.
I've run into this EXCBADACCESS on the simulator before and the solution was to comment out the self.obj = nil lines, and that solved the problem. When I started device testing this week, however, the problem reared it's ugly head again, and so I commented out the code in all of my viewDidUnload blocks. For 2.2.1 testing, viewDidUnload does not exist, so those are only compiled under
#ifdef _IPHONE_30
#endif
code blocks to allow testing on older devices.
So,... can someone explain why this happens?
Since release is supposed to work if the value is nil, and setting the pointer to nil does an implicit release (on the pointer, before setting it to nil), this should only be a problem if the dealloc is called before viewDidUnload.
Oh wait... doesn't viewDidUnload get called after, oh right.
This doesn't explain why the following in dealloc also seems to crash....
self.obj = nil;
[obj release];
I'm sorry, but the apple documentation seems to botch the explanation completely and seems to have it backwards, at least from how it works operationally.
I'm happy to code it whatever way works. I'd just like to understand why!
Thanks.

reststop wrote:
For memory managment, anything you alloc/init, you release.
Anything you retain using:@property (retain) object* obj;
you are supposed to (in 3.0, under viewDidUnload, in 2.x under dealloc) provide aself.obj = nil;
as well as in dealloc add [obj release];
Don't do both, your else you will get...
Well, I do that, and I run into EXCBADACCESS errors.
... exactly.
IF I comment out, either the self.obj = nil, or the release statements, all is cool.
According to the "dealloc" section in the Objective C 2.0 language guide you are supposed to use "release", but "If you are using the modern runtime and synthesizing the instance variable, however, you cannot access the instance variable directly, so you must invoke the accessor method". Of course, that is kind of backwards logic. What it really means is you should use "self.obj = nil".
I've run into this EXCBADACCESS on the simulator before and the solution was to comment out the self.obj = nil lines, and that solved the problem.
There isn't any specific "EXECBADACCESS" error. That just means your program has one or more bugs. There could be any number of changes you need to make. You should review that code because "self.obj = nil" is something that you need.
I'm sorry, but the apple documentation seems to botch the explanation completely and seems to have it backwards, at least from how it works operationally.
It does look backwards, but when deallocating memory, doing it twice isn't twice as good

Similar Messages

  • New Infinity advice please?

    Hi,
    Looking for hints/advice to ensure I get a smooth install of Infinity please.
    Currently I have two lines, one of which is on BeThere ADSL2 which I would keep for a short while after BT Infinity install, then drop.
    The other line I would use for BT Infinity and currently it is just a voice line (hired from BT, calls with TalkTalk).
    The master socket is in the hallway (traditional setup), with various extensions all round the house. BT checker is indicating 62mb/20mb on Infinity2 for this line.
    Main computer is in dining room (no phone extensions) which currently connected to the BeThere hub/router (which in a different room) via 500mb Homeplug and all works just fine. Other computers/Ipods/devices connected via either Homeplugs or WiFi. Occasional IP address conflicts on network, but usually easily resolved.
    What would be my ideal setup for BT Infinity?
    I'd rather not have a bunch of new cabling, but recognise that I may have to.
    I'm thinking the following could be some good setups.
    1. Infinity Hub and Router in Hallway by master socket and then data pumped into network via Homeplugs.
    Would the Infinity engineer be ok with this, or would he (maybe a she?) insist that main computer is also located by Master Socket? 
    2. Infinity Hub by Master socket and Router in different room.
    Here I imagine that the router is connected to the hub via Homeplug/Ethernet. Again would the engineer be ok with this?
    3. Master socket is moved from Hallway to computer room.
    This would have the advantage of the hub, router and main computer all being located in the same place.  However I'm not clear if this can be done as part of the Infinity install or has to be ordered separately. Also I’m concerned about messy cabling.
    What I want to avoid is arranging for things temporarily (e.g. moving computer) on the install date, having the engineer declaring all is ‘OK’ and then later, if there is a problem, for BT to say I’m on my own.
    Let’s just say twice bitten in the past by BT/Openreach and three times shy.
    Thanks for any help
    Edward

    Oh, I have plenty of homeplugs and indeed Ethernet cables. My concern is if the engineer says he will not work with the homeplugs when doing the Infinity install.
    Sadly I have bitter experiences with BT/Openreach. One time they got me to open a broadband account for purposes of being a Fibre trialist when they should have checked that my faceplate was not compatible. They did compensate me a bit financially (after a great deal of hassle) but I still ended up with losses.
    It is a great pity that BT/Openreach still have an effective monopoly on Fibre.
    thx
    Ed

  • New rig nightmare.

    I've spent the past 10 months filming a run n gun/interview based activist film and needed to buy a laptop capable of dealing with editing on the hoof so i opted for the MSI GT72.
    OS: Windows 8.1
    CPU: Sharkbay Core i7-4870HQ (2.5GHz - 3.7GHz)
    Display: 17.3" FHD, Anti-Glare (1920*1080) eDP IPS
    Memory Supplied: 4 x 8GB
    Graphics Chipset: NVIDIA GeForce GTX980M (Maxwell)
    Graphics Memory: GDDR5 8GB
    Storage: 4 x 128GB SSD + 1 x 1TB 7200RPM
    This thing is blazing fast and is more than capable of meeting my requirements but where im having issues is with the SSDs. They came pre configured in RAID 0 and less than 30 days after receiving this machine one of the SSDs died whilst using Premiere and now a week on a second has gone whilst using photoshop, i'm not sure the incidents are connected but it certainly has given me food for thought which leads me here to ask this question;
    i have 4x128gb SSDs and a 1tb 7200 rpm drive, what would my best disk setup be? RAID 0 is out as far as im concerned, twice bitten, thrice shy lol.
    Thanks in advance for any help received

    ...yes....Bill would be correct regarding the Samsung XP941....if you can get one, or, even the new XP951. I see 3 256 GB XP941 units available for $250 right now on Amazon....512GB for over $600.  Crucial DOES make M.2 SSDs, however, the 128 GB version only writes at just over 300MB/sec. compared to 500 for the larger version M.2 SSD. I read at B&H Photo that the 256 GB Crucial M.2 SSD is now discontinued.
    I see tonight a newer 512GB Crucial M.2 M600 SSD is available at "Next Warehouse" for $326. Two of those in RAID 0 would give over 1GB/sec. read and write speeds at an expensive price for 1 TB of storage : $652 !!! Your factory Lite-on SSDs are probably not as good as the Crucials PLUS I have read that these M.2 SSDs HEAT UP pretty good,so, maybe THAT affected yours, with 4 running at the same time in RAID 0. I would go with a single XP 941 to replace that RAID 0 mess...like Bill advised. Then, maybe replace the 7200 rpm spinner with a 2.5 inch M550. Use external ports for backing up
    Welcome to NextWarehouse.com 

  • PTax ded Twice incase of WPBP SPLIT (Mid month Transfer)

    Hi Friends:
    In SAP, whenever an Employee transfers from one state to another then system deducts P Tax Twice in that Payroll Period and this is a standard behaviour. (Due to two Splits and two regions)
    Ex: 1- 15 in MH and 16 to 30 in AP then P tax of MH is deducted for 1-15 days GROSS and P Tax of AP deducted for GROSS on 16 to 30.
    Now, i want to deduct only the P Tax for the Last split record in that Payroll Period. That is P tax for Extire GROSS to be deducted based on AP Region slab.
    Has anyone faced this scenario/ issue. Any Exits/ BADI's available to achieve this?
    regards,
    Srikanth

    Hi
    If you want to differ from the standard calculation then you can use the BADI
    HR_IN_CALC_PTX_BASIS
    Regards
    Sumit Pradhan

  • Got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?

    got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?

    If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad via your computer's iTunes and restore/resync your content to it

  • I'm on ff 3.5.5 for Mac. I've been prompted twice to download latest version. Each time I have dragged the ff icon from applications folder to the dock and all seems ok. But next time I start ff it says I'm on 3.5.5 and should update to latest version!

    There was no "update failed" message
    I wonder whether I'm doing the right thing when I drag to the dock. There's only one ff icon in the applications folder. The first time I was prompted to update it showed that days date next to the icon as if the update was successful. The second time was a few days later but I think it was still the same date next to the icon (25/8/10) I've only just noticed that (on 10/9/10) so can't be sure but I'm sure the second time was around 2nd or 3rd of Sept.
    Also, I am running two versions of ff- one is english, the other is the Italian version. They can't be opened at the same time but they seem to talk to eachother in the background, so to speak, because when I open one after a long gap, it opens with all the history and settings of the other one, right up to the last website I went to. I think I closed both when updating because it prompts you to close all programmes and restart (I think/ remember) so I just clicked ok to that prompt.
    By the way, I got the prompt to update twice for ''BOTH'' the Italian and the English version- so 4 times altogether so it would seem that ff does recognise them as separate but still has problems concluding the update for each separate one respectively.
    Thank you very much if you can help.
    Trapperjohn

    Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    Trash the current Firefox application to do a clean reinstall.
    Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • Brand New MacB Air and i haven't been able to get passed the format which has had to be done twice because, I have a French Numeric Keyboard and Language in English.  The minute I type in my password, the keyboard gives me letters that i did NOT type.

    I live in Switzerland and can only buy a Mac Air with a French or German keyboard, no chance to buy an English keyboard Mac here,.  When setting up  I chose the French numerique keyboard, although there are two choices French or French numerique.  I put in my language as English.  When all was set up I came to the start page and had to put in my password, by the grace of g....I just happened to see the first letter I typed before it turned into a dot.  My password which was supposed to start with the number 2 showed a french e with accent before it quikly became a dot.
      Because of the dot system, this meant that I had no clue what the keyboard was typing as my password ...........and true enough my password was not accepted despite my trying all combinations.  I have had to reformat twice now thanks to Apple Chat and both times my password was not accepted.  I am in the process of formatting it again, this time on my own.  If the Start page does not accept my password again this can only mean that the Mac left the factory with faults.  I could not be more disappointed with the money spent and the time and trouble that Apple Chat and I have spent in trying to correct a brand new out of the box Mac.  I have a cheap Toshiba laptop also with a french keyboard and english language which gave me no trouble at all.  I am not impressed with the so called King of computers!  First of all the dot system is daft.  People want to be able to see and confirm their passwords before they are set for good.  Second,  this problem is going to give me a lot of grief.  Switzerland business is not renowned for its after sales service or the time it takes to do repairs.  When I had an issue with my Vaio laptop which was still under warranty, they kindly picked it up from my house, repaired and promptly returned it.  How's that for good proper service.

    i didn't read a lot of your 2nd paragraph, but it seems like the password is the issue, right?
    do a true clean install
    reboot your machine and hold down command+option+r, you should see a spinning globe - if you don't see the globe or anything that reads internet recovery, shut down and try again
    at menu, chose disk utility and once there, find your HD on the left side, select the physical name and erase it as mac journaled
    exit disk utlity
    at menu, choose install OSX
    this time, when it asks for a password just hit continue, it will let you complete without a password
    you should be able to get into your laptop, now figure out what password you'll be able to use with your kb issue

  • In ALV Report output heading is printing twice.

    Hi Experts,
    Im working on ALV Reports.
    Im printing header text by using listheader and commentary write function module.
    the problem is when i sort any column in ALV ouput the heading is printing twice.
    Again if i sort the column the heading is printed is 4 times.
    so if anybody knows the solution how we can avoid repetition of heading ,
    Please reply me as soon as possible.
    regards
    Imrangs.

    Hi Noorie,
    Thanks a lot.
    Your answer is perfect.
    Bye.
    Regards,
    Imran

  • I have multiple devices in my family. Each of us has an iPhone and an iPad. Is there a way for each of us to have our own Apple ID but one account so we can all get the same music, movies, books, etc. I can't see paying twice for something in the same fam

    I have multiple devices in my family. Each of us has an iPhone and an iPad. Is there a way for each of us to have our own Apple ID but one account so we can all get the same music, movies, books, etc. I can't see paying twice for something in the same family.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • My iPod Touch is running on ios 7. In the last two and a half months all the apps of my iPod have been wiped out twice. I had to download all the apps all over again. Why is this happening?

    My iPod Touch is running on ios 7. In the last two and a half all the apps of my iPod have been suddenly wiped out twice. I had to download all the apps all over again. Why has it happened?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                              

  • I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I have not had wifi since November when I upgraded to the newest IOS version.  I called the Apple help line and they told me some things to do and I tried them all and they worked for a few hours and then wifi shut off again.  I kept doing what they told me and it worked for a couple more days and then I could never turn it on again.  My blue tooth doesn't work either.  I had to actually increase my data usage with AT&T becuase of this.  When I did that in December I went to the Apple store and was told that it is a hardware issue and since my phone is out of warranty I would have to pay for a new phone because they could not fix the issue.  My upgrade isn't up until June 2014 so not only do I have to wait for the upgrade and I am not paying for a new phone but I have to pay $10 plus extra a month on my cell phone bill because I was going over on my Data!!!  I have been beyond upset about this and Apple is not doing anything about this nor did they offer up some way to resolve the issue because obviously it is not just some rare incident if several people are having this issue.  Who knows how many people out there have had this issue and have not said anything about it.  Now there is a newer update that I can't do because it requires wifi in order to download.
    June can not get here fast enough and I may not go back to Iphone after dealing with this for so long with no help from Apple.

  • SCCM 2012 SP1 - Software Center appears twice in Start Menu

    Hi guys,
    i just finished implementing a fresh SCCM 2012 SP1 Installation for a customer. The whole OSD works like a charm (except some issues with the latest Windows updates breaking the whole OSD, will open a separate thread for this soon), but after the deployment
    the Software Center is appearing twice in the Start Menu (We're using Win7 Enterprise SP1 x86 English with 5 integrated language packs). I first thought this has something to do with the integrated language packs, but both Start Menu entries
    are always in the same language.
    The strange Thing is, that one entry for the SCCM Software Center is called "Software Center" and the other one "SoftwareCenter" (without a space). We configured 2 Client policies, one with EP-enabled and one without EP. We
    deployed the Client Settings to different collections so i don't think that this is causing the Problem?Do you guys have any idea why this is Happening?
    Has anyone ever seen this? See a screenshot below:
    Thank you.
    Cheers
    Stefan

    Thanks for your Response Thomas.
    I don't think it is related to the upgrade to SP1.I think it might be a General issue in SP1. I started with a fresh SCCM 2012 SP1 Installation and i also have 2 Software Center entries in my start menu. If i check the shortcut i can see that one shortcut
    was created when i captured my base Image, the other one was created during the Install OS Task Sequence.

  • TA44551 My 1-year ipod nano locked up and would not start overnight. The on/off button will not work and stopped holding charge. No water damage, no fall, nothing unusual. I restored it (twice) but it will still not hold charge and on/off does not work.

    My 1-year ipod nano locked up and would not start overnight. The on/off button will not work and stopped holding charge. No water damage, no fall, nothing unusual. I restored it (twice) but it will still not hold charge and on/off does not work. I tried to restore it again and charged it in three different locations with different cables. etc but nothing. Suggestions?

    - After charging for 1/2 hour or so, does iTunes see the iPod?  If yes, restore the iPod from backup.
    - If no, se if placing the iPod in recovery mode will make it visible so you can restore the iPod.  For recovery mode see:
    iPhone and iPod touch: Unable to update or restore

  • SLiM only starts twice then exits to tty1

    Hi... i've installed arch yesterday following this guide https://wiki.archlinux.org/index.php/Beginners'_Guide i
    After that i started to set up a new desktop using openbox and slim.
    Basically everything works fine... except that after exiting openbox 2 times slim won't start and i end at tty1.
    systemctl status slim... after boot
    slim.service - SLiM Simple Login Manager
    Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
    Active: active (running) since Di 2013-03-19 19:05:10 CET; 1min 10s ago
    Main PID: 241 (slim)
    CGroup: name=systemd:/system/slim.service
    └─264 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
    ‣ 241 /usr/bin/slim -nodaemon
    ... after 1st "openbox logout"
    slim.service - SLiM Simple Login Manager
    Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
    Active: active (running) since Di 2013-03-19 19:05:10 CET; 1min 50s ago
    Main PID: 241 (slim)
    CGroup: name=systemd:/system/slim.service
    ...after 2nt logout on tty1
    slim.service - SLiM Simple Login Manager
    Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
    Active: failed (Result: exit-code) since Di 2013-03-19 19:07:04 CET; 23s ago
    Process: 241 ExecStart=/usr/bin/slim -nodaemon (code=exited, status=1/FAILURE)
    /var/log/slim.log
    slim: waiting for X server to begin accepting connections.
    slim: waiting for X server to shut down
    slim: waiting for X server to begin accepting connections.
    systemctl list-units
    UNIT LOAD ACTIVE SUB DESCRIPTION
    proc-sys...t_misc.automount loaded active running Arbitrary Executable File Formats File System Automount Point
    sys-devi...-sda-sda1.device loaded active plugged IC25N080ATMR04-0
    sys-devi...-sda-sda2.device loaded active plugged IC25N080ATMR04-0
    sys-devi...-sda-sda3.device loaded active plugged IC25N080ATMR04-0
    sys-devi...-sda-sda4.device loaded active plugged IC25N080ATMR04-0
    sys-devi...block-sda.device loaded active plugged IC25N080ATMR04-0
    sys-devi...block-sr0.device loaded active plugged _NEC_DVD+_-RW_ND-6500A
    sys-devi...und-card0.device loaded active plugged /sys/devices/pci0000:00/0000:00:02.7/sound/card0
    sys-devi...et-enp0s4.device loaded active plugged /sys/devices/pci0000:00/0000:00:04.0/net/enp0s4
    sys-devi...et-wlp2s0.device loaded active plugged /sys/devices/pci0000:00/0000:00:09.0/0000:02:00.0/net/wlp2s0
    sys-devi...tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0
    sys-devi...tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
    sys-devi...tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devi...tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-module-configfs.device loaded active plugged /sys/module/configfs
    sys-subs...es-enp0s4.device loaded active plugged /sys/subsystem/net/devices/enp0s4
    sys-subs...es-wlp2s0.device loaded active plugged /sys/subsystem/net/devices/wlp2s0
    -.mount loaded active mounted /
    boot.mount loaded active mounted /boot
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    home.mount loaded active mounted /home
    proc-sys...infmt_misc.mount loaded active mounted Arbitrary Executable File Formats File System
    sys-kernel-config.mount loaded active mounted Configuration File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted Temporary Directory
    systemd-...ord-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
    systemd-...ssword-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    dbus.service loaded active running D-Bus System Message Bus
    [email protected] loaded active running Getty on tty1
    net-auto-wireless.service loaded active running Provides automatic netcfg wireless connection
    ntpd.service loaded active running Network Time Service
    slim.service loaded failed failed SLiM Simple Login Manager
    systemd-binfmt.service loaded active exited Set Up Additional Binary Formats
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-...es-setup.service loaded active exited Recreate Volatile Files and Directories
    systemd-...-trigger.service loaded active exited udev Coldplug all Devices
    systemd-udevd.service loaded active running udev Kernel Device Manager
    systemd-...sessions.service loaded active exited Permit User Sessions
    systemd-...le-setup.service loaded active exited Setup Virtual Console
    dbus.socket loaded active running D-Bus System Message Bus Socket
    dmeventd.socket loaded active listening Device-mapper event daemon FIFOs
    lvmetad.socket loaded active listening LVM2 metadata daemon socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-...d-control.socket loaded active listening udev Control Socket
    systemd-udevd-kernel.socket loaded active running udev Kernel Socket
    dev-sda2.swap loaded active active /dev/sda2
    basic.target loaded active active Basic System
    cryptsetup.target loaded active active Encrypted Volumes
    getty.target loaded active active Login Prompts
    graphical.target loaded active active Graphical Interface
    local-fs-pre.target loaded active active Local File Systems (Pre)
    local-fs.target loaded active active Local File Systems
    multi-user.target loaded active active Multi-User
    network.target loaded active active Network
    remote-fs.target loaded active active Remote File Systems
    sockets.target loaded active active Sockets
    sound.target loaded active active Sound Card
    swap.target loaded active active Swap
    sysinit.target loaded active active System Initialization
    systemd-...iles-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
    /etc/slim.conf
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    # numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    login_cmd exec /bin/bash -login ~/.xinitrc %session
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    # sessions xfce4,icewm-session,wmaker,blackbox
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    # default_user simone
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    # focus_password no
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    #auto_login no
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    current_theme default
    # Lock file
    lockfile /var/run/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    When i run "systemctl start slim" on tty1 slim starts again and after exiting openbox twice i'm back on tty1.
    ...But when i run "slim" on tty1 slim starts and i can exit openbox as often as i want.
    Any ideas ?
    Edit:
    Running /usr/bin/slim from tty1 gives me this logfile.
    /var/log/slim.log
    slim: waiting for X server to begin accepting connections.
    slim: waiting for X server to shut down
    slim: waiting for X server to begin accepting connections.
    slim: waiting for X server to shut down
    slim: waiting for X server to begin accepting connections.
    Somehow the second "slim: waiting for X server to shut down" does not happen when running "systemctl start slim"
    Last edited by Synth (2013-03-19 19:39:10)

    Ok, I was able to workaround parts of the bug:
    I changed slim.conf and and set daemon = true (so slim runs as a daemon). Furthermore changed the slim.service file for systemd:
    [Service]
    Type = forking
    PIDFile = /var/lock/slim.lock
    ExecStart=/usr/bin/slim
    Now I can log in and out as often as I want. Seems to work. However, nm-applet only shows up in odd numbers of logins:
    1st login --> nm-applet is shown
    2nd login --> nm-applet is not shown (but running --> htop)
    3rd login --> nm-applet is shown
    4th login --> nm-applet is not shown (but running --> htop)
    ...and so on...
    I search the web, it seems to be a problem with dbus and the order how the services get started. Don't know if that is true...any ideas from anyone?

  • Subtype event not triggering and supertype event triggers twice!!!!!!

    Hi,
    We have created a subtype for object bus2030 and also an event created for that. My workflow should trigger whenever an inquiry is created.
    I've maintained this as triggering event in SWDD and done type linkage is SWE2 and everything looks fine.
    When i simulate or create event the WF is triggered but when create inquiry in VA11 WF does not triggers.
    I've checked SWEL for event trace but no event is triggered at all... Am i missing something... I've done almost everything that i used to do...
    Even synchronized buffer!!! nothing paid me a solution...
    Infact the same was working with 3.1i system but after migration to ECC6 we had to create new WF template for the same Process.
    Now I also see that the supertype bus2030-created event is triggered twice but, obviously no receiver type exists. But the zbus2030 event is not being triggered at all!!!!
    Kindly help me understanding my mistake...
    Regards,
    PB

    Hope you have already set the deletegation in SWO6.
    Now, event dont get triggered automatically, jus because they are defined in object. They have to be explicitly published in thesystem.
    Check for a suitable user exit in your transaction, which makes use of function module to create the event, from that you know how to proceed.
    If you dont find user exit, try other triggering techniques such as change documents, logistics, BTEs... etc.
    regards,
    Sandeep Josyula

Maybe you are looking for

  • Integration directory : select IDOC interface for WAS business system

    Hi, While adding a receiver determination for an WAS business system, I do not get any IDOC based message interface from the design repository proposed for my business system in the popup dialog. The only interfaces that appear are for the non SAP st

  • Quantum Gateway Router Problems

    Hello. After installing my new quantum gateway router, I have had nothign but problems.  The router will connect to the laptops and phones very reliably, but it never has a stable connection with either a ROKU 3 or Amazon Fire STick int he same room.

  • Light black ink

    I am getting a "low ink" warning regarding my hp 7520 printer.   System Preferences shows "light black ink" to be low ("black ink" is not low).  My  printer has two black cartridges, one thin (bow tie symbo) and one wide (pentagon).  Which one of the

  • Do i need to configure failover group for load balancing? srs3.1

    hello we are installing ssrs3.1 on two sunfire v210 for 20 sunrays do i have to configure a failover group in order to have load balancing? thx

  • Support was provided for FI/CO documents

    HI, currently i am in support project for more than a year.i wnt to involved in implementation project.so i hve given some interviews, In my resume i am keeping a sentence is that"support was provided for fi/co documents"so interviewer is asking me w