Terminating Add-on Windows Process

Hi,
I have developed an add-on which loads and works just fine, however when I stop the Add-on in SAP and/or shut down SAP B1, the Add-on exe process remains running in task-manager.
How do I ensure that the process terminates when I stop it or shutdown SAP ?
Thanks.

hi,
Use Application event as shown below and follow the code given so that the addon process gets killed after stopping the addon or shutting down SAP B1
Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent
        If EventType = SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged Or EventType = SAPbouiCOM.BoAppEventTypes.aet_ShutDown Then
            System.Windows.Forms.Application.Exit()
        End If
    End Sub
regards,
varma

Similar Messages

  • Terminating Add-on exe Process in TaskManager

    Hi,
    I have developed an add-on which loads and works just fine, however when I stop the Add-on in SAP and/or shut down SAP B1, the Add-on exe process remains running in task-manager.
    How do I ensure that the process terminates when I stop it or shutdown SAP ?
    Also I have Used the following Code for exit the application.Still it is running :
    Private Sub SBO_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles SBO_Application.AppEvent
            If EventType = SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged Or EventType = SAPbouiCOM.BoAppEventTypes.aet_ShutDown Then
                System.Windows.Forms.Application.Exit()
            End If
        End Sub
    Regards
    Mohana

    Hi Mohana,
    Try this.
    Private Sub OCT_Application_AppEvent(ByVal EventType As SAPbouiCOM.BoAppEventTypes) Handles OCT_Application.AppEvent
            Select Case EventType
                Case SAPbouiCOM.BoAppEventTypes.aet_ShutDown
                    OCT_Application.SetStatusBarMessage("A Shut Down Event has been caught" & _
                    Environment.NewLine() & "Terminating Add On...", SAPbouiCOM.BoMessageTime.bmt_Short, False)
                    System.Windows.Forms.Application.Exit()
                Case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged
                    OCT_Application.SetStatusBarMessage("A Company Change Event has been caught" & _
                    Environment.NewLine() & "Terminating Add On...", SAPbouiCOM.BoMessageTime.bmt_Short, False)
                    System.Windows.Forms.Application.Exit()
            End Select
        End Sub
    Regards,
    Mahendra

  • Can the Terminal add a user(with all options) on a single line?

    Howdy All,
    Can the Mac Terminal add a user, with all options desired, on a single line?    If so, can I get an example of this single terminal line to work from?
    Thanks

    Thanks Drew!   You have some great thoughts there. Perhaps I should provide a clearer environment of each high school(4). All classrooms have a lock down Windows environment. (There are no Macs any where in any classrooms.) The mini-tower will be the only Mac on each high school campus. we're in Dell country. The desktops are locked in such a way that only the ghosted/installed software on each hard drive works and no other software can be installed. USB sticks can't run any exe, jar, or other executable file. Even the other drives on the network can't run them. This has been setup to prevent students from bringing games into the environment and running them. Only the single classroom in each high school, where Web Tech is taught, has a ftp tool installed. Students cannot bring and use their own laptops either. So there really isn't any stray ftp activity happening. You cannot "ftp" out of the network! And there is only the one Mac available per campus.  All this makes it certainly easier to maintain for sure. I am the only user in the school district they let run a personal laptop...mine has Ubuntu (tweaked).  My knowledge of Linux has led them to assign this project to me. They are MS based entirely and so is their knowledge base.
    I've got to teach the other 4 teachers how to manage the mini-tower.  Basically it is this:
         Start and stop Apache2,
         Start and stop vsftp,
         Add ftp users(students will only have directory:           /Library/Server/Web/Data/Sites/Default/studentlastname.firstname  )  Students will not log on to the min-   tower directly as any normal user would, but only through ftp. (I.E. no /home directory) ,
         Remove/delete students as needed
         (I'll pre-install cgi-bin scripts on these to keep it simpler on the other teachers and myself.)
    With this in mind, you can see why a basic script or single command line to install these students would be great! I want to keep it simple to avoid mistakes the teachers might make adding users. Once I understand adding a user (in a terminal) better on a Mac, I may write a script to make it happen for them.
    I'd also like to understand removing/deleting a student/user better to insure everything is gone when executed.
    I hope this clear things up. Any help is much appreciated.    THANKS!!!

  • Exchange 2013 CU 1 - Windows process activation errors

    Hi,
    after upgrading to Exchange 2013 CU1, I get the following errors in the eventlog for all Exchange Application pools. These errors show up every 5 to 10 minutes:
    A process serving application pool 'MSExchangeECPAppPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '8068'. The data field contains the error number.
    A process serving application pool 'MSExchangeOWAAppPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '8248'. The data field contains the error number.
    A process serving application pool 'MSExchangePowerShellFrontEndAppPool' terminated unexpectedly. The process id was '8652'. The process exit code was '0xffffffff'.
    Exchange 2013 CU1 is running on Windows 2012.
    Franc.

    Hi,
    It is a IIS error. Please check the Windows Process Activation service in the Exchange server. Make sure the service is started. 
    Please have a try to restart the server then change the issue again.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Sean Xiao
    TechNet Community Support

  • Unable to turn on windows process activation service thus IIS (CBS files uploaded in sky drive)

    Hi,
    I am trying to turn on/install IIS for local host and for that it require WAS to be installed and running. When try to turn on the feature of WAS i get the error "Error Occured. Not all the features were successfully changed." I had applied all
    the patches that I could find on the net and tried cleaning and re installing the .NET. None of them worked. Please help me out as I am in critical situation and need to develop something in really quick time.
    I had uploaded the files at "C:\Windows\logs\CBS" to my sky drive.
    Please provide the solution for the same as I can not format my system at this point of time.
    Thanks in advance.
    Warm Regards,
    Kuldeep
    John

    Hi,
    There are two tools that can be used to fix this issue quickly:
    System Update Readiness Tool
    MSConfig.exe
    As for your situation, I suggest MSConfig.exe.
    When you install IIS then installer adds WPAS for you automatically as one of the dependencies.
    BUT when you uninstall IIS WPAS does not get uninstalled automatically – leaving the core binaries intact (this is done for a reason and is not a BUG.
    In short, it’s not uninstalled to make sure we don’t end up breaking other services on the box that consume this process model explicitly – like WCF service).
    One has to make sure WPAS is explicitly uninstalled by going to features under server manager and choosing “Windows Process Activation Services” to uninstall.
    The detail can be found at:
    http://www.iis.net/learn/troubleshoot/installation-issues/troubleshooting-iis-7x-installation-issues
    Meanwhile, you’d better post the OneDrive link where you post the CBS file.
    Regards
    Wade Liu

  • Windows process activation service

    Hi,
    Try to start windows process activation service, however it does not seen to be successful. It keep fail. From the event viewer report few id as 5005, 5036 and 5189.
    I also have try to resolve the issue using the guideline given by Microsort on the reported id, however it also not helpful. Below is the error message I receive when I try to start the services manually.
    A system error has occurred
    System error 6801 has occur
    Transaction support within the specified resources manager is not started or was shut down due to an error.
    Really need a solution to resolve this issue. Thank you.
    Regards,
    Ivy
    Ivy

    Hi Ivy,
    Thank you for the reply.
    Now I suggest trying below:
    1.   
    Back up applicationHost.config to a safe place. It is recommend to copy all folder and files under the C:\Windows\System32\inetsrv\backup to the safe place too.
    Remove the IIS from the server.
    2.   
    From Control Panel\Programs and Features, in the Tasks panel, choose Turn Windows features on or off.
    3.   
    Uncheck all of IIS.
    4.   
    Uncheck Windows Process Activation Service (WAS), down further in the list of features.
    5.   
    The only way to truly completely remove IIS and all the config settings is to uninstall WAS as well.
    6.   
    After you have done the above, reboot the server.
    7.   
    Reinstall IIS7 on the server.
    8.   
    Then when the server comes back up go ahead and add back the IIS components, you will not have to recheck Windows Process Activation Service, it will automatically
    get added when you reinstall IIS.
    9.   
    Once IIS is completely reinstalled attempt to browse the default website and test Application Pool Custom Identity.
    10.
    Open the applicationHost.config file under the C:\Windows\System32\inetsrv\config.
    11.
    Copy the <configProtectedData><providers>... </providers></configProtectedData> session and paste it into old applicationHost.config(step
    one).
    12.
    Backup current applicationHost.config file:
    a)    
    Click on Start, go to Programs -> Accessories-> Command Prompt, right click on
    “Run as administrator “
    b)    
    Go to the IIS7 directory. This is located in the %WINDIR%\System32\InetSrv directory by default. The configuration files are stored in the InetSrv\Config directory.
    Backup the applicationHost.config file by creating a backup object with the aid of the APPCMD command-line tool.
    cd /d %windir%\system32\inetsrv
    appcmd add backup NewConfigBackup
    13.
    Copy the old applicationHost.config(step 1 and 8) to replace the new applicationHost.config under the C:\Windows\System32\inetsrv\config
    14.
    Reset IIS (iisreset ) in Command Prompt with Run as Administrator.
    Then please test the result.
    If the issue persists, as this issue could be closely related to IIS, I suggest further discussing it in our IIS fourm:
    http://forums.iis.net/
    Tim Quan
    TechNet Subscriber Support in forum
    If you have any feedback on our support, please contact [email protected]  
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not
    actually answer your question. This can be beneficial to other community members reading the thread.  

  • When I try to partition my hardrive to add a windows partitiation it says I can't because the boot program is running, what to do to solve this issue so I can add a partition?

    I don't understand why a boot program is preventing me to add a windows partition so I can add Windows to it. This happens everytime I try to add a partition, can someone help me solve this issue, please? I don't know why it won't let me add a partition to install windows on it.
    V/r
    Scarar

    Once you have obtained an external drive and connected it you will 'clone' your internal drive to it.
    Download Carbon Copy Cloner (it is not free but there is a fully functional trial version which is). Use it to clone your internal drive to your external drive. When that is done you will reboot from the clone and use Disk Utility to erase the internal drive (choose Mac OS Extended (Journaled)) as the format (this is normally preset, but check). Make sure to give the external drive a 'distinctive' name, don't want to get drives mixed up in this process.
    Once that is done you will use Carbon Copy Cloner (from the clone) to restore the external to the internal.

  • Windows Processing Message

    When opening Photoshop CS3 I am getting a message that says:
    Windows Processing Message c0000013 Parameters 75b6bf9c 4 75b6bf9c 75b6bf9c
    If you hit cancel it will go ahead and open the program.
    Does anyone have an idea of what to do? I have tried to reinstall over top of the installation. I have uninstalled and reinstalled.
    I am using Photoshop CS3 10 update on a windows machine with windows XP Pro with 4 RAM.

    >If you hit cancel it will go ahead and open the program.
    that's sign that there's a problem with some plugin you have (or had and didn't uninstall correctly). if so, reinstall the plugin and uninstall using add/remove programs from the control panel.
    OR maybe you installed cs3 over top of an older version? if so, uninstall and reinstall in it's own folder. (that's the default)
    OR you pointed the "additional plugins folder" in preferences to an older version of photoshop's plugin folder. if so change that in your preferences (edit> preferences)

  • Is there a way to add two windows in the same window?

    is there a way to add two windows in the same window?

    what do you mean by your first use of the word "window"? do you mean a visible frame? a section of the gui that the user doesnt see?
    or perhaps you mean you want to add multiple tabs to a single window, so that switching between tabs shows different windows?

  • When i open safari on my Imac if i also open an additional window, when i then close them down and reopen safari they both paper again.also if i then add additional windows the additional windows keep coming up too

    when i open safari on my Imac if i also open an additional window, when i then close them down and reopen safari they both paper again.also if i then add additional windows the additional windows keep coming up too

    If you are running v10.7 Lion, disable Resume >  How To Disable Lion's 'Resume' Feature - MacRumors.com

  • Often, Firefox app will close, but the underlying Windows process will not and cannot be stopped via Task Manager. When this happens, Firefox can no longer be used...the system must be rebooted.

    Hello,
    Often, the Firefox app will close, but the underlying Windows process will not and cannot be stopped via Task Manager. When this happens, Firefox can no longer be used...the system must be rebooted. This happens especially when many apps are running but even though there are plenty of memory resources available.
    I have tried to find if something is using Firefox in the background, but have no way to know what that would be.
    Their are no apparent viruses detected.
    Firefox is version v5.0 and occurred in earlier release.
    System is Windows 7 (64bit).

    well, it's not the same hardware and it's a bit different.
    I managed to pass that stage somehow but I still have a problem
    I don't use the built-in creator tool that comes with Spyrus as it doesn't know how to append a pre-staged media that was created by SCCM that should apply the Windows file system to a second partition and the WinPE to the first partition.
    I managed to do everything. my only problem is that the WTGCreator that comes with SCCM 2012 R2 creates the 350MB partition with FAT32 file system.
    when I boot from the device I get the WinPE, I can choose a task sequence and then it fails when trying to apply the wim file. the error tells me that the 350MB partition is FAT32 which is not supported (even though it chooses the second partition, which
    is all the rest of the disk space)
    what I did was adding another task that converts the 32 Fat partition to an NTFS partition and then the process continues and finishes successfully! but that's a workaround.
    I'm trying to make this process as smooth as possible without having additional steps
    Tamir Levy

  • I have a early 2008 Macbook Pro, need to up grade the hard drive so that I can add a windows environment what is the largest drive that I can put in this computer? Is the storage size the constraint or the physical size of the drive? Or a combination?

    I have a early 2008 Macbook Pro, need to up grade the hard drive so that I can add a windows environment what is the largest drive that I can put in this computer? Is the storage size the constraint or the physical size of the drive? Or a combination?

    The largest capacity HDD that you can install is the HGST 1.5 TB HDD:
    http://eshop.macsales.com/item/HGST/0J28001/
    Any 2.5" 9.5mm thick SATA HDD will fit and operate in your MBP, regardless of capacity.
    Ciao.
    Message was edited by: OGELTHORPE

  • ABAP program to add in the process chain before the attribute change run

    Hi
    I need a ABAP program to add in the process chain before the attribute change run(process) to avoid the locks, can any one send me the program
    Regards,
    Satish

    I am not sure of any standard program .... but you can write your own... should be a small one..
    you can check if the table RSDMDENQ has entry for your InfoObject... if yes, then its locked.. if not.. its not locked

  • How to stop a windows process?

    How do I get hold of a running process/program under WindowsXP?
    How do I stop this process?
    # Johannes

    You should use the Java Native Interface and write some C code with the Win32 API. I don't think there is another way. You should search the MSDN for code samples for killing windows processes. And if you go ahead and do what i just suggested, then i wish you good luck and be patient!

  • Lost use of all extensions with update to 3.6.11 ... Add ons window is locked

    This morning, FF updated to 3.6.11. When I loaded FF no add ons were visible on the upper or lower tool bars. When I opened the Add Ons window, it locks up and will not allow me to access any options, disable, or uninstall. It also does not allow me to check for updates.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />

Maybe you are looking for

  • How can I back up my data in this situation?

    I was using my MacBook Pro running Mountain Lion normally and just fine, when suddenly every click of the mouse started to result in 5 minutes of the spinning color wheel. I tried restarting, and learned that my laptop can now take up to 60 minutes j

  • MacBook Pro + Time Capsule = Slow Hard Disk Access..

    Hi, I know it's an issue with my MBP as my imac is fine with my TC Basically connections fail, are sometimes not possible and accessing D/L and Up/L files is so slow I can't even watch a movie from my TC.. It's only a problem with my MBP though, my o

  • N level-Approval for contract workflow (WS14000148) in SRM

    Hi SDN'rs               I want to activate N level-Approval for contract workflow (WS14000148) in SRM   When I am creating the contract in SRM I can see the approvers in the approval preview. But when I release the contract and look at the approval p

  • Where is the search dialog

    Currently I'm trying to implement a repository manager and enable search function. Where can I find the search dialog in EP? I cann't find it in Content Administration - KM Content or System Configuration - Knowledge Management. Is it a must to insta

  • About System function

    Hi~ let me ask you something. I want to get some information about users. so, I tri to use cfuntion 'ThUsrInfo'. I found some example like this. data: begin of list occurs 0.         include structure uinfo. data: end   of list. call 'ThUsrInfo' id '