AddOn: Prevent from loading more than once

Good Afternoon
Experts:
I appreciate you patience as I resurrect this topic since it has become an
increasing concern here.  We need a way to restrict our AddOn from "being in"
Task.mgr more than once.  We are working with Terminal Services.  A couple ways we have found more than one instance in TM is the User just opening another session or opening another session after a "problem/Issue/Crash". 
I have this code which restricts the AddOn from starting more than once here on my local machine:
Public Sub Main()
        Try
            Dim x As Integer = 0
            Dim Ctr As Integer = 0
            Dim som() As System.Diagnostics.Process
            som = System.Diagnostics.Process.GetProcesses
            Dim Name As String
            For x = 0 To som.Length - 1
                Name = som(x).ProcessName.ToUpper
                If som(x).ProcessName = "Test.Enhance" Then
                    Ctr += 1
                End If
            Next x
            If Ctr > 0 Then
                MsgBox("LBSI.Enhance AddOn is already started...Exiting application.", MsgBoxStyle.Critical)
                Exit Try
            Else
                ReInitializeAddOn()
                Application.Run()
            End If
        Catch ex As Exception
            HandleException("Main", ex, True)
        End Try
    End Sub
Is there a better more elegant way to do this? How about for Terminal Services?
Thanks in advance for your insight,
EJD

Not answered...so I will close.

Similar Messages

  • How to prevent the User from loading more than one seq file?

    Hi,
    I would like to prevent the tester operator from loading more than one test sequence.  Any ideas how to do it?
    Thanks
    Rafi

    Hi Marty,
    Marty_H wrote:
    Hello mhousel,
    Testexec.exe by default loads the sequence files that were last open when it runs.  It is often desired behavior to have multiple sequence files load automatically. 
    [Mark Housel] Maybe for some but certainly not for me. 
    This should be easily handled by TestStand without any problems.  What do you mean by "chaos ensues"? 
    Certainly Teststand doesn't care a bit how many sequences are open.  But, when my sequences open they initialize HW of the ATE associated with
    that sequence file during the sequenceFileLoad callback.  e.g. I allocate TELNET handles to a terminal
    server that connects to multiple console within the system and als for
    the UUT.
    If a second sequence opens it knows nothing about the other sequence and again tries to open a TELENT session to the same port of the
    terminal server and obviously fails, so my sequence reports that it
    can't properly initialize the ATE HW.  Bad juju!
    Are your sequence files set to run automatically when they are loaded?
    I guess so.  Other than the trick of logging in as the special noExecution user and having special code in my sequence and modified Process Model I have no idea how to prevent a sequence fronm "runnin" when opened.
    If you want to prevent Testexec.exe from loading multiple files, you should be able to close out one of the open files when it loads and that sequence file should not load in the future.  I hope that helps.
    The trick I read somewhere else of modifying the Testexec.uir file to never re-load a sequence file automatically seemes to have covered up solved the problem.
    Thanks,
    Mark

  • Am I able to download items that I have purchased from Itunes more than once?

    Am I able to download purchased items from ITunes more than once?

    Go to the iTunes Store, log into your account, and click the Purchases link under the Quick Links. From there you should be able to re-download some or all of your purchased content. Note that not all content has been licensed for re-downloading in all countries at this time. You can see what content you can download here:
    http://support.apple.com/kb/HT5085
    You can also re-download content using an iOS device.
    For full instructions, see:
    http://support.apple.com/kb/ht2519
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Why would aperture load more than once?

    I understand that when I first load my RAW photos into Aperture it needs to generate a preview and so that's why it slows down and shows me "loading...". If I want to bypass this I can use quick preview mode. That's how I understood it so far. But I don't understand why it would need to load again at a later time? If I browse elsewhere and come back to this project, it'll start loading again. Does Aperture for some reason deletes the preview?

    1) How do I force aperture to generate preview for everything, and not one by one. I'd rather go away and let the computer do its thing for a while than get disturbed every time I hop to the next photo.
    You can select all images in the Browser and use the command "Photos > Update/Generate Previews" (Update will turn into "Generate", if hold down the ⌥ alt/options key). This way you can generate the previews over night.
    2) Also this still doesn't explain why it needs to be done more than once? Why would it generate the preview again if I haven't changed any adjustments etc?
    It will only keep and store the preview permanently, if you have enabled the sharing of previews in the "Preferences > Preview" tab. If you do not enable this, Aperture will not store the previews, to save space.

  • Prevent from inserting more than 10 repeated values in a row

    hi
    i have a table with 3 column id , code , desc
    i want to prevent inserting to this table ( raise an exception ) when someone try to insert a row that it's code value already in "code" column for 10 times , that means he wants to insert or update another row that it's value of "code" repeated 10 times .
    how i can do that ?
    thx in adv

    ssaeeds wrote:
    thx for your replay , but is there another way other than using trigger ?You can use a Materialized view with Fast refresh option to achieve this. But the validation will occur only when you commit your changes and not during the DML operation itself.
    Below is a working example.
    SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 15 03:49:34 2012
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table tablename(id number, code varchar2(10), descr varchar2(100))
      2  /
    Table created.
    SQL> create materialized view log on tablename with rowid, sequence (code) including new values
      2  /
    Materialized view log created.
    SQL> create materialized view tablename_mv build immediate refresh fast on commit
      2  as
      3  select code, count(code) code_cnt
      4    from tablename
      5   group by code
      6  /
    Materialized view created.
    SQL> alter materialized view tablename_mv add constraint tablename_mv_ck check(code_cnt<11)
      2  /
    Materialized view altered.
    SQL> insert into tablename
      2  select level id, 'a' code, 'xxxxxxxxxx' descr
      3    from dual
      4  connect by level <= 10
      5  /
    10 rows created.
    SQL> set linesize 130
    SQL> select * from tablename
      2  /
            ID CODE       DESCR
             1 a          xxxxxxxxxx
             2 a          xxxxxxxxxx
             3 a          xxxxxxxxxx
             4 a          xxxxxxxxxx
             5 a          xxxxxxxxxx
             6 a          xxxxxxxxxx
             7 a          xxxxxxxxxx
             8 a          xxxxxxxxxx
             9 a          xxxxxxxxxx
            10 a          xxxxxxxxxx
    10 rows selected.
    SQL> commit
      2  /
    Commit complete.
    SQL> insert into tablename values (11, 'a', 'xxxxxxxxxx')
      2  /
    1 row created.
    SQL> commit
      2  /
    commit
    ERROR at line 1:
    ORA-12008: error in materialized view refresh path
    ORA-02290: check constraint (ARBORU.TABLENAME_MV_CK) violated

  • IPod will not play songs bought from iTunes more than once

    None of the songs I have purchased from the iTunes Store play on my iPod. They play on my Mac, my wife's Mac and my wife's iShuffle, but not my iPod. My iPod is running the lastest software version, and i have the latest iTunes version.
    If I format, reset, restore and reload my music, HOORAH!! they play...ONCE. Then I have to do that all over again if I want to play them again. The songs say they are there, they say they are taking up hdd space, but if I try to play the iPod just thinks about it for a second or two and then skips over the song.
    I have never had any problem with songs ripped off my CD collection.
    Apple are completely useless and offer no assistance and what i have been able to find on their website tells me to do what I've done. Does anyone have any ideas how to make my iPod compatible with the iTunes store?

    This just happened to me on one song I purchased from iTunes (it plays fine on iTunes on my MacBook). I'm on iTunes 8.0 (haven't yet upgraded to newest version). Everything else works fine so should I do this for only one song - or is there another easier fix? I did copy the song to a cd so would it work if I just deleted the one song and imported it? Or is this a sign of a deeper problem?

  • Can I fetch files from Ideas more than once

    I read that I can group ideas files into projects using folders after I had fetched files in Draw.
    Can I fetch ideas files again?

    Hi,
    The "Fetch All Files" functionality under the Settings\Manage Files option is to perform a "one time fetch" and bring files from previous versions of Adobe Ideas into the project organizer in Draw.
    Hope this helps,
    Jose

  • Prevent user from resetting password more than once in a day

    Hi,
    1) my requirement is that, i want to prevent a user from resetting his password more than once in a day in OIM 11g.
    i guess that has to be implemented using a pre-process event handler on reset password page.
    is that achieveable? i dont have much idea on which places i can attach a pre-process event handler to.
    2) I want to restrict a user from using sequential passwords. eg: abhi1, abhi2, abhi3
    This is not present OOTB. just want to know. can we do it via custom code.? but this will expose that password (security breach- which i dont want)
    is there any way i can achieve this via configurations in OIM or some event handler.?
    Thanks in advance.

    1.yes, update "Minimum Password Age" to 1 for the password policy.
    2. you can't achieve this by configuration. But, yes write an event handler and put your validation there. probably this is required on manual create or update so use pre-insert and pre-update eventhandler for validation.
    --nayan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Importing an email more than once from notes into the webclient...Possible?

    Hi!
    Is it possible to import an email more than once from a lotus notes account into my webclient?
    I don't have a working sample so:
    Is there a lock to prevent it... in notes... in my webclient?
    Are there optical signs in my webclient that an email is already imported?
    Thanks in advance for your hints in this case.
    Cheers, Ingo

    The Member Feedback forum is for suggestions and feedback for OTN Developer Services. This forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions will not be answered. We recommend that you post this thread to the appropriate Database forum.
    The main URL is:
    http://forums.oracle.com/forums/index.jsp?cat=18

  • Members from same dim appearing more than once in a record

    I have a dimension, "Day of the Week", with each day of the week as a member. My source data has a field for each day of the week. If the flight ( this is an airline flight database ) operates on that day of the week, there is a value, otherwise, its null. Is there a way to load this as is, or will I have to have a record for each day of the week that the flight operates? The Admin guide states "No member from the same dimension can appear more than once in a record", which I think answers my question, but I wanted to throw it out there to see if anyone else has a solution.thanks

    So, the days of the week are columns in your data source? That is no problem for a load rule. Normally you tag a column with the dimension it maps to in the cube. In this situation, when you reach the first week, you tag the column with the MEMBER in the day of the week dimension that it maps to.If this doesn't make sense, perhaps you could post the field layout of your file and myself (or someone else) could tell you how to map the columns in the load rule.Regards,Jade--------------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • HT1933 what if I bought the same game more than once from i tunes by mistake how can i claim a refund?

    what if I bought the same game more than once, How can I claim a refund from I tunes store?

    You can try contacting iTunes Support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Can I drag and drop a copy of my iTunes library from a portable hard drive more than once?

    Can I drag and drop a copy of my iTunes library from a portable hard drive more than once?  Not copy it, but actually drag and drop it into my music folder on my computer more than once if needed?

    rnavarrette wrote:
    Can I drag and drop a copy of my iTunes library from a portable hard drive more than once?  Not copy it, but actually drag and drop it into my music folder on my computer more than once if needed?
    Nothing is going to stop you from dragging it in multiple times, but what exactly are you trying to do?  Are you trying to get iTunes to look through the folder and pick up newly added song files?

  • In migrating to a 21.3" iMac from a Time Machine backup, can I do this more than once?

    In migrating to a 21.3" iMac from a Time Machine backup, can I do this more than once?

    David,
    My apologies....I was working on questions from a different thread and thought yours was part of that one.  Your question is fine where it is....
    Now....that being said, I'm afraid I don't know the answer to your question.  I know you can exclude certain items from being backed up in Time Machine, which would save disk space on your external drive. But, you'd first have to calculate how much disk space you're using for the different things you want to back up vs. those you want to exclude.
    I think it MIGHT be possible to do what you want, but (in my honest opinion) it's a recipe for a LOT of headaches should things not work out as you calculated. Better (again, in my opinion) to just pick up a larger external hard drive and transfer everything as Time Machine was designed.
    Just my $0.02 worth.

  • Load rule to update alternate hierarchy with shared members more than once

    I have a aso cube with an alternate hierarchy that is not stored because the shared members appear more than once. Below is how my alternate hierarchy looks.
    Dept
    Class
    VolumeLevel
    StoreNum
    where StoreNum is the shared member.
    I build the cube using eis every weekend. The VolumeGroup changes everyday, so I was thinking of using a sql load rule to update the outline everyday. Assuming that the data and the aggregation does not get cleared. Is it possible to do it using sql load rule?
    Thanks,

    You can check here if you are satisfying the conditions for creating shared members under the Hierarchy (refer to Alternate Hierarchies). Plz note that rules for shared members are different in ASO world.
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_dbag/frameset.htm?acrtapdb.html
    Otherwise there is no reason why you should not be able to create a shared member.
    I am able to create a hierarchy using a sample file like this ->
    EN_MAIN, EN_500000
    EN_500000, EN_49999
    EN_ALT, C_500000
    C_500000, EN_49999
    ENTITY (Multiple Hierarchies Enabled)
    |-EN_MAIN (Stored)
    |--EN_500000
    |---EN_49999
    |-EN_ALT (Stored)
    |--C_500000
    |---EN_49999 (Shared)
    The rule file has only "Allow Property Changes" on.
    Thanks,
    Sunil

  • After Upgrade Cloud Control from 12.1.0.3 to 12.1.0.4 the user name and password have to be entered more than once

    Hi everybody,
    we recently upgraded our Cloud Control from 12.1.0.3 to 12.1.0.4.
    Now we have the following, a little bit strange behaviour.
    Everytime we want to log into Cloud Control we have to enter our password more than once.
    Sometimes even more than twice.
    It alawys says user name and password are required
    Does anybody has the same problem?
    I didn't found anything on MOS. So any advice or answer is appreciated.
    Greetings,
    Daniel

    Hi Daniel,
    We have seen similar issue when we use non-certified browsers for accessing 12c console
    Use certified versions of IE with EM 12.1.0.4 Cloud Control. for instance, Microsoft Internet Explorer 10.*, 9.*, 9 and 8 versions only.
    This document can help you to understand the Certified Browsers:
    <<Doc ID 1912367.1>> EM12c : Supported Browsers and Adobe Flash Players list
    Regards,
    Rahul

Maybe you are looking for

  • Firefox randomly freezes, uninstall will not work...

    When I am on any website at all, Firefox randomly freezes for about 10 seconds. Firefox tints white and program title says (Not Responding). I've tried scanning Firefox with anti-virus and anti-malware software but its clean. Ive restarted my compute

  • HT201263 I restored my ipod but it continues to ask for a screen lock password what can i do next?

    ive tried to restore it in two modes.. from my laptop by clicking restore and in recovery mode. any suggestions??

  • Delete windows os and restore to mac os?

    Hello, I am a new mac user so "dumbed down answers" would be greatly appreciated : ) My boss gave me his macbook pro because he didn't really like it for whatever reason. While he had it he had windows os installed on it. I would like to erase it and

  • Copy User Missing in SP07

    Hi All,   I am on version 1.00.72.00.xxxxx I am unable to see the copy user option when I right click on users in the studio. I thought this was available in SP07. am i missing something ? Message was edited by: Tom Flanagan

  • Display Amounts for Region "not assigned" in Query

    Hi, I have created variables for "Region" that assinn all EAST values to EAST and WEST to WEST. I would however like to assign all values that does not have an assigned region to another variable or character. How can I do this in the query? Thanks