waiting for the task to be completed

I inherited a program that tests a hardware device extensively.  A test turns or several times each channel of AI and bed the waveform of channel I.  I use a card PXI-6229 DAQ with c# .NET.  The program is suspended in the while loop, wait until the task is complete. This is the code:

public bool TestThisChannel (object nullObject) {}
Double coversionFactor;
String name;
String Description;
_PXI6229_SLOT12.getChannelInfo ((int) nullObject, name, coversionFactor, to the Description);
_PXI6229_SLOT12. StartAnalogInput6s (Name);
for (int i = 0; i)< 5;="" i++)="" {="" 5="">
_PXIChassis.SetPowerRelayOn (null);
_PXIChassis.Wait500ms (null);
_PXIChassis.SetPowerRelayOff (null);
_PXIChassis.Wait500ms (null);
}
           
While {(_PXI6229_SLOT12.runningTask!=null)}
} //Wait task is completed

AnalogMultipleInputTask private task;
runningTask of public work;
private AsyncCallback analogCallback;
Private AnalogMultiChannelReader analogInReader;
public AnalogWaveformdata;

Public Sub StartAnalogInput6s (string AIChannel)
{
Create a new task
try {}
AnalogMultipleInputTask = new Task();

Create a virtual channel
AnalogMultipleInputTask.AIChannels.CreateVoltageChannel (AIChannel, "",)
(AITerminalConfiguration) (-1),-10, 10, AIVoltageUnits.Volts);

Configure synchronization settings
               
AnalogMultipleInputTask.Timing.ConfigureSampleClock ("", 100000, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, 600000);
               
Check the task
AnalogMultipleInputTask.Control (TaskAction.Verify);

Prepare the table for the data
runningTask = AnalogMultipleInputTask;
analogInReader = new AnalogMultiChannelReader (AnalogMultipleInputTask.Stream);
analogCallback = new AsyncCallback (EndAnalogInput);

For .NET Framework 2.0 or a later version, use SynchronizeCallbacks to specify that the object
Marshals the callbacks on the appropriate threads.
analogInReader.SynchronizeCallbacks = true;
analogInReader.BeginReadWaveform (600000, analogCallback, AnalogMultipleInputTask);
} catch (Exception exception) {}
MessageBox.Show (exception. (Message);
runningTask = null;
AnalogMultipleInputTask.Dispose ();
}
}

public void EndAnalogInput (IAsyncResult ar)
{
Try
{
If (runningTask is ATR AsyncState)
{
Read the data of the channels
data = analogInReader.EndReadWaveform (ar);
}
}
catch (System.exception DaqException)
{
Display errors
MessageBox.Show (exception. (Message);
runningTask = null;

AnalogMultipleInputTask.Dispose ();
}
}

Any help will be appreciated.

Thank you

Howard

Thanks Mason. You got me thinking on the right track.  I made a few changes based on an example I found of NOR.  I changed analogInReader.BeginReadWaveform (...) of data = analogInReader.ReadWaveform (600000) and I changed the while (_PXI6229_SLOT12.runningTask! = null) {} to _PXI6229_SLOT12.runningTask.WaitUntilDone () and it seems to work fine.

Thanks for your help.

Howard

Tags: NI Hardware

Similar Questions

  • waiting for the task to the end host window.

    My computer startrd to show, when I restart or shutdown windows 7, I get a message saying that windows is waiting for the task host window to end what it means...?

    Hi Sanaaalsadouni,

    Thanks for posting your question in the Microsoft Community forums.

    The TASKHOST is a generic process, which acts as a host for the processes that are running DLL instead of exe files. Up TASKHOST checks the part Services of the registry to construct a list of services focused on the DLLS it needs to load, then load them.

    I suggest you try the procedure described in the article and see if it helps.

    Why my computer won't turn on or off quickly?
    http://Windows.Microsoft.com/en-us/Windows7/why-wont-my-computer-turn-on-or-off-quickly

    See the article for more information.

    See details about your computer's performance using Task Manager
    http://Windows.Microsoft.com/en-us/Windows7/see-details-about-your-computers-performance-using-Task-Manager

    Hope this information helps you. If you need additional help or information on Windows, I'll be happy to help you.

  • How to clear, waiting for the task in the task list

    Hi friends,
    When I configure the user, the process is in the list of tasks, as
    task: System validation
    status: pending

    I couldn't make the process to complete the procurement process...

    could someone help me by making the list of tasks.

    Gaetan elango.

    Check this box:

    Issue during the integration of IOM with novell edirectory 8.8 9.1

  • wait for a task

    I'm cloning a VM and need to wait for the task to be completed in my perl script.

    I looked at the documentation for the SDK, (on the subject of the task and taskinfo) I don't see anything for this.

    If anyone has example of perl code that does this, it would be really appreciated.

    Suresh.

    Here's a little function that allows you to wait a task ends, she essentially loop until the State is success OR if it error. Remember, when you get to a task, you only have access to it for about 10 min, once that happened, even if you have the handle of taskRef, you cannot question him. You will need to use the tasks and the CreateCollectorForTasks Manager to collect the specific task and query its status and basically block until it is complete.

    
    my $task = ...
    my $success = "suceess!";
    
    &getStatus($task,$sucess);
    
    sub getStatus {
            my ($taskRef,$message) = @_;
    
            my $task_view = Vim::get_view(mo_ref => $taskRef);
            my $taskinfo = $task_view->info->state->val;
            my $continue = 1;
            while ($continue) {
                    my $info = $task_view->info;
                    if ($info->state->val eq 'success') {
                            print $message,"\n";
                            return $info->result;
                            $continue = 0;
                    } elsif ($info->state->val eq 'error') {
                            my $soap_fault = SoapFault->new;
                            $soap_fault->name($info->error->fault);
                            $soap_fault->detail($info->error->fault);
                            $soap_fault->fault_string($info->error->localizedMessage);
                            die "$soap_fault\n";
                    }
                    sleep 5;
                    $task_view->ViewBase::update_view_data();
            }
    }
    

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Script to wait for Clone task is completed

    Good day, as part of the post, I run a command that enables the NIC and sets the right Port-Group of cloning process. I put a sleep command in each environment is diferrent, so I find myself always change this duration of sleep because the cloning process does not end in the time of sleep and the rest of the script fails. So in order to get rid of the sleep control that I want to capture the CloneVM_Task and pass this parameter to wait-task that will force the completion of the ClonVM_Task. I could just make sure no other tasks are running but this task, but as we all know that alays can't be the case. So that's what I did.

    I begin a deployment of FVO to have an another long running task. Then I run the script.

    If ((Get - PSSnapin - name Vmware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null) {Add-PSSnapin "Vmware.VimAutomation.Core"}

    # Virtual Center details
    $server_address = "MYvCenter name" or IP

    SE connect-VIServer-Server $server_Address - user username-pass password - WarningAction SilentlyContinue


    #Create Master VM Templates
    #
    # Here we import the CSV file with the account information and he piped in a Foreach-object
    # Creating a Variable that imports the csv file that contains all data of the virtual machine

    CD "e:\Scripts.
    $InputFile = import-Csv "E:\scripts\mycloneinput.csv".
    $InputFile | {ForEach-Object

    $ip = $_. VM_IPAddress
    $GName = $_. VM_Guestname
    $TName = $_. Template_name
    $HName = get-VMHost "myhostname" # 1 first Select
    $Desc = $_. Description
    $Dstore = $_. Datastore_Name
    $Spec = $_. Customization
    $Folder = $_. Folder
    $Sfolder = $_. Subfolder
    $NIC = $_. NIC
    $NIC_Lable = $_. NIC_Label
    $Gateway = $_. NIC_Gateway
    $SubnetMask = "255.255.255.0".
    $DNS1 = $_. DNS1
    $DNS2 = $_. DNS2

    Write-host "creation: ' $GName
    Write-host "template name is: ' $TName

    # This takes variables and creates the virtual machine
    Get-OSCustomizationSpec $Spec | Get-OSCustomizationNicMapping | »
    Game-OSCustomizationNicMapping - IpMode UseStaticIP - $ip - $SubnetMask subnet mask - DNS IpAddress $DNS1, $DNS2 - DefaultGateway $Gateway
    New-VM-name $GName - location $Folder - model $TName - host $HName - $Dstore - $Desc Description data store - OSCustomizationSpec $Spec - RunAsync-confirm: $false

    #######################################
    #Waiting for cloning process to finish.
    #######################################

    $$$ Under notes show a little history of how I got to this point.

    $$ Note1: the first attempt, I just captured running tasks and their past to the task pending. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."

    $$ Note2: so I added the If Else loop below that failed, because $RTask never equaled only CloneVM_Task, but was a table of two.

    $$ Note3: I tried to us below to separate the two tasks to help

    # $RTask = get-task-status running (who captured the two tasks running)

    # $Array = $Rtask.Split("") (Errored with the method call failed because [System.Object []] contains a method named 'Split'.)
    # So I tried to divide the table like this. ForEach ($Task in $Rtask.Name - Split("")) {Write-Host "my tasks are:" $Task}


    Get-task-status Running | Export-CSV "E:\scripts\Current_Tasks.csv".
    $InputFile2 = import-CSV "E:\scripts\mmca\mmca_Current_Tasks.csv".
    $InputFile2 | {ForEach-Object
    $RTask = $_. Name
    Write-Host "current task is: ' $RTask
    IF ($RTask - eq "CloneVM_Task") {}
    Write-Host "current task of Clonning is: ' $RTask
    Write-Host "in the meantime the cloning process finish.
    Waiting-task-task $MyTask
    }
    Else {}
    Write-Host "no cloning process is executed.
    }
    }

    # This allows the NIC and set the correct Port Group
    Get-VM-name $GName | Get-NetworkAdapter-name $NIC | Together-NetworkAdapter - NetworkName $NIC_Lable-confirm: $false - StartConnected $true

    }

    When I run the present, I get the following:

    # #This shows the task start Clonning #.

    erverId: /[email protected]:443 /
    Status: running
    IsCancelable: true
    PercentComplete: 5
    StartTime: 03/05/2013 00:52:13
    FinishTime:
    ObjectId: VirtualMachine-vm-382
    Result:
    Description: Clone virtual machine
    ExtensionData: VMware.Vim.Task
    ID: Work-task-2070
    Name: CloneVM_Task
    UID: /[email protected]:443 / task = work-work-2070 /

    #########################################################

    # #Runs through the tasks running.

    Current task: deploy the model to the FVO
    No cloning process is executed

    # Ignore deploy it task #.

    # #Matches the If statement and continues to process #.
    Current task is: CloneVM_Task
    Task current Clonning is: CloneVM_Task
    Wait for the cloning process to complete

    # #Error #.

    Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
    E:\scripts\Working_Create_Master_Templates.ps1:71 tank: 24
    + Wait-task-task < < < < $RTask
    + CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
    + FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask

    $$$ Under notes show a little history of how I got to this point.

    Note1: The first attempt, I have just captured tasks currently running and pending their past to the task. "Well, since the deploy OVF and ClonVM_Task where it runs would wait up to two when completed by the end."

    NOTE2: So I added the If Else loop below which failed because $RTask never equaled only CloneVM_Task, but was a picture of two tasks.

    Note3: I tried to use the following to divide the two tasks:

    $RTask = get-task-status running (who captured the two tasks running)

    foreach ($Task in $Rtask - Split(""))
    {
    {Write-Host "my tasks are:" $Task}
    IF ($Task - eq "CloneVM_Task") {}
    Write-Host "current task of Clonning is: ' $Task
    Write-Host "in the meantime the cloning process finish.
    Waiting-task-task $Task
    }
    Else {}
    Write-Host "no cloning process is executed.
    }


    }

    # #Output the little script above #.

    Current task: deploy OVF model CloneVM_Task
    My tasks are: deploy
    My tasks are: OVF
    My tasks are: model
    My tasks are: CloneVM_Task
    Task current Clonning is: CloneVM_Task
    Wait for the cloning process to complete
    Waiting-Task: cannot bind parameter 'task '. Impossible to convert the value of 'CloneVM_Task' to type 'System.String' type 'VMware.VimAutomation.Sdk.Types.V1.Task '.
    Online: 11 char: 24
    + Wait-task-task < < < < $Task
    + CategoryInfo: InvalidArgument: (:)) [waiting-Task], ParameterBindingException)
    + FullyQualifiedErrorId: CannotConvertArgumentNoMessage, VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask

    I'm new to Powercli and I've scoured Google for a possible answer. I thought I might have a solution that has been published on the VMware PowerCLI Forum, but I couldn't get this to work. Any help would be greatly appreciated.

    #########################################

    I wasn't worried about how to tasks where splits, unless I was trying to follow the import fo the OVF, so that the script went into the loop If and as one of the names for CloneVM_Task then he Treaty. But I got the same error I did in the last version of the above script. That's why I have the version curent thinking that if I exported and then imported the tasks it might make a difference.

    I'm new to Powercli and would like a little help. I am either very close or by a mile off. :-)

    Thank you

    Mitch

    Why don't you store the the task object that is returned when you use the RunAsync switch?

    You can create a loop around the State and wait until the clone job is done.

    $task = New-VM -Name MyVM ... -RunAsync 
    
    while($task.ExtensionData.Info.State -eq "running"){
      sleep 1  $task.ExtensionData.UpdateViewData('Info.State')
    }
    

    The big difference with the Wait-job cmdlet, it is that this will allow you to perform additional work in the While loop.

    Waiting-task the cmdlet waits just until the task is finisned and you can not do anything else.

  • waiting for a task to complete

    During the planning of a work like this:

    () dbms_scheduler.create_job
    job_name = > a_prog_name | "_JOB."
    job_type = > 'executable. "
    job_action = > a_local_dir | '\' || File1 | ' > null',.
    enabled = > true,
    auto_drop = > true
    );


    Is it possible to wait for the work to be done before treatment can continue?

    Thank you
    Thomas

    Hello

    You can do this by leaving enabled-false online during the creation of employment and then by doing a run_job on the job. The run_job (with use_current_session-online true) will execute the task and wait for it to finish. If you do this, you will also need to manually deposit work using drop_job.

    Hope this helps,
    Ravi.

  • Don't want to wait for the results of the query

    Hello world.

    I'm on CF 7 and SQL Server 2005.

    I call a procedure stored through my CF code. The process can potentially take an hour or two to run. I would like the proc run on SQL Server, but don't want my page of FC wait for the results before we continue, I want just the code that follows the proc will run while the database server do it is something silently in the background. Is it possible to do this?

    Thank you

    You could try to create a job that calls your long-term stored procedure. In the CF, call the sp_start_job system stored procedure to start your work. I think sp_start_job returns at the start of the task, not when the work is complete, but you will need to test this.

    http://msdn.Microsoft.com/en-us/library/ms186757 (SQL.90) .aspx

  • Microsoft Money - when closing down, it saves ok but there is a message saying that the operation cannot be completed. I then use the Task Manager to complete.

    I use Money version 1105, 2004 updated.  I have 2 qusstions-

    1. in closing down, it saves ok but there is a message saying that the operation cannot be completed.  I then use the Task Manager to complete.

    2. is there a version of Money that runs this file?  I tried Sunset but does not recognize my file.

    Any help would be great, thanks in advance

    Eric

    For any question on any version of Microsoft Money, ask http://social.microsoft.com/Forums/en/money/threads.

    Make sure your data and Money backup files are in Documents or another non-protected area, not the default money Program Files or changes and updates will not be saved.

    Unless you are in the USA, the version of Money 2005 (released in 2004) 14.0.120.1105 is the latest available. Sunset silver bed only U.S. data files.

    Installation file to Money 2005 International English QFE2 (not for USA, Canada, UK) from Microsoft, including stand-alone updates 1105, is available at http://www.microsoft.com/download/en/details.aspx?id=26922

    Money 2005 UK - QFE2 (the fixed standalone UK Money 2005 file) can be downloaded from the link to http://www.microsoft.com/download/en/details.aspx?id=26915

  • Start stuck on "Please wait for the Local Session Manager."

    I would say that this problem started a couple of days. Went to start my laptop (Toshiba) and he sat on the "Please wait" message forever.

    Had no problems to start in safe mode. Looked up various ways of addressing the problem.

    Was able to change the resume date and back a few weeks ago. Still no luck. Happened to read something on a printer Epson being perhaps the problem driver (it was installed a day before the date of restoration chosen). Uninstalled the drivers, computer still does not start.

    Tried restarting running. I do not have the CD it came with Vista, but it was an option when you hold F8 during startup (I think?) Couldn't find any problems.

    Ran check on memory. No problem either.

    Changed settings for a verbose startup and ran a Diagnostic startup - all good for this. Then tried selective startup load system services... This is when the error occurs. When starting, it hangs on "Please wait for the Local Session Manager" and does nothing more.

    I looked in the event viewer to see what came that time and a couple mistakes were:

    Event ID 6000: winlogon notification subscriber was unavailable to handle a notification event.

    Event ID 7026: the next (s) start or start failed to load system
    spldr
    Wanarpv6

    It would be very useful for me not having to run my computer in safe mode automatically all the time, although it is useful that I at least have that option. Any help is greatly appreciated.

    Hello

    1. by chance your computer is connected to a domain environment?

    2. as you mentioned in your article that you tried the selective startup, I want to confirm if you have disabled the services left 3rd after hide Microsoft services?

    If you did not disable these services make sure you disable and then check if it works.
    See the article below for more information.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Waiting for a transition to be completed?

    I use Tweener.AddTween () to apply some transitions to my sprites who say quarter of a second. Once the transition is complete, I need to do something else. The problem is the line immediately after the transition is executed immediately (it does not wait for the transition to complete) and all that mess up. Is it possible in a synchronous way expect the transition ends without taking CPU in a loop, etc.?

    Hey p3pp3r,

    There is a setting for the tweener Oregon 'onComplete' call that performs a function is completed. It goes right into the addTween method.

    Here are more details on the onComplete parameter (along with several other more useful):

    http://hosted.Zeh.com.br/Tweener/docs/en-us/parameters/index.html

    example:

    Tweener.addTween(myobj, {x: 45, onComplete: myFunction});
    

    hope that helps. Good luck!

  • SRM does not wait for the guests of the DPM enabled

    Hello

    We are testing our environment vsphere 5/SRM and essentially 5, everything goes very well except for wake up initiated by the SRM to the DPM active guests.

    --------------------------------

    The SRM 5.0 doco States:

    SRM temporarily disables DPM for the cluster, and ensures that all guests there are lit before recovery begins. After the recovery or the test is completed, SRM reactive DPM for the cluster, but it hosts are found in the current state of execution while DPM is able to feed them downwards as needed.

    --------------------------------

    The question that we see is that SRM send indeed wake up for guests in mode standby and milestone of recovery as a success. The problem is that SRM does not wait until the guests are completely turned on before before feeding on the VMs. The day before hosts to wake the system correctly storage access newly presented no problem. The problem is that the bubbles to test network is not created on the hosts of the day before and no VMs are assigned to these hosts during the entire test.

    That said, I checked the advanced settings and I cannot find a setting that will force SRM to wait for the standby hosts to be fully integrated in the cluster before you perform additional steps.

    Everyone knows this behavior? Am I missing a setting somwhere? My fear is that this behavior will happen during a real failover and potentially cause problems.

    Thank you for your time,

    Smokey

    Hello

    This should not happen.

    Can you please open a SR, download bundle Journal, engineers will be able to understand what is happening?

    Once you open a case, display the number of SR.

    Michael.

  • Wait for the event begins with SQL * Net message from client-time wait 178577 units

    Hello

    I'm watching events waiting for a request from long time in TOAD.
    I start the query on an instance of TOAD, and open the browser to log on to another instance.
    But I am surprised to see that in "TOtal expected" on the RIGHT part->
    SQL * Net message from client is the longest time and is already - > 178577 units while I just to start the query.

    Considering that, in the current waiting she shows DB file scattered read correctly for a few seconds.

    Please suggest.

    user8941550 wrote:
    Hello. No explanation for this... :-(

    Hello

    people work here, you don't know?
    I think Tom Kyte explains it well enough. This wait event is linked to your session database waiting for the guest to say to do something.

    So it is not related to the database, but to your application.
    Also as it is a wait of session event you might have had your session inactive for some time (do nothing)

    If you want to check the waiting events correctly I suggest using tkprof and start a new session in SQL more as shown by Tom Kyte in the link I posted.

    Then, run your query in sqlplus setting track and pull it out as soon as your statement is completed.
    that is to say:

    -- myest.sql
    alter session set events '10046 trace name context forever, level 12';
    SELECT ... -- your query here
    exit
    

    Run in sqlplus in this way:

    sqlplus user/password@db @mytest.sql
    

    Then check with tkprof.

    Kind regards.
    Al

  • Storage VMotion - a general error occurred: could not wait for the data.  Error bad0007.

    People,

    I searched through this forum and have not found an answer that works in many positions out there, I say to myself that I would ask him once again.

    Here's the context:

    We have 12 identical Dell M600 blades in 2 chassis with 16 GB of Ram, 2 x Xeon E5430, they are all connected to an Equallogic PS 5000XV iSCSI SAN on a separate iSCSI (vswitch1) with 2 cards network dedicated network and dedicated switch, console svc iscsi dedicated, dedicated VMkernel port for iscsi access. Net access (vswitch0) contains port groups VM for our various networks and a console port and vmkernel svc for VMotion with 2 separate NETWORK cards as well.

    We are running ESX 3.5 U3 and VCenter 2.5 U3 on Win2k3 R2

    VMotion works between all servers, Storage Vmotion works for most machines, HA works and the value 2 host failurs with no monitoring of vm, DRS is set to manual for now I have a few machines on the local stores that I complete my rebuilt LUN, there is no set of rules for DRS and VMware EVC is enabled for guests of the Intel. However, I'll just describe one machine to do svmotion below.

    Here's the problem:

    I'm trying to Svmotion via svmotion.pl - interactive, a Machine to Windows 2000 with a virtual disk and a virtual RDM. I am aware of the requirements for the RDM and required parameters for svmotion, independent is not selected for the RDM, and I also have svmotioned several machines linux and win2k3 with the same configuration without problem. In the interactive session, I choose to individually place the disks and I chose the virtual disk to only the virtual machine to be moved, essentially, as I saw it move vdisk virtual machine and then copy to the pointer of the RDM.

    The use of the processor in this machine is about 25% average. but I try to run migrations at the time the lowest. and The Host it itself shows only about 5.5 GB of the 16 GB of RAM used. so I think we're good on the RAM. the volume/datastore that I'm migrating from has 485 GB free and the volume/datastore I migration towards a 145 GB free. the VM virtual disk is only about 33 GB.

    I run the script the windows version of the RCLI svmotion. and when to begin the process, I get the following error at around 2 percent of the progress:

    "Since the server has encountered an error: a general error occurred: could not wait for the data."  Error bad0007. Invalid parameter. »

    After searching around, I found the following hotfixes to the U2 release notes

    • Migrate.PageInTimeoutResetOnProgress: Set the value to 1.

    • Migrate.PageInProgress: The value 30, if you get an error even after the setting of the Migrate.PageInTimeoutResetOnProgress variable.

    I've made these changes, and I still get the same error.

    When I dig in the newspaper, I see these entries in the journal of vmkwarning:

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: bunch: 1397: migHeap0 already at its maximumSize bunch. Cannot extend.

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: bunch: 1522: Heap_Align (migHeap0, 1030120338/1030120338 bytes, 4 align) failed.  calling: 0x988f61

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu4:1394) WARNING: migrate: 1243: 1235452646235015: failure: out of memory (0xbad0014) @0x98da8b

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu2:1395) WARNING: MigrateNet: 309: 1235452646235015: 5 - 0xa023818: sent only 4096 bytes of data in message 0: Broken pipe

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu6:1396) WARNING: migrate: 1243: 1235452646235015: failed: Migration protocol error (0xbad003e) @0x98da8b

    (Feb 24 00:17:32 vmkernel iq-virt-c2-b6: 82:04:13:56.794 cpu2:1395) WARNING: migrate: 6776: 1235452646235015: could not send data for 56486: Broken pipe

    At this point, I'm stuck... What is Windows RCLI? the vcenter Server? or the service console with not enough of RAM? We have already increased all our consoles service 512 MB...

    Any help would be greatly appreciated...

    Thanks in advance.

    Alvin

    The vmkernel on out of memory error, I had that before. And vmware support recommends setting 800M Max service console memory. And I did it and have no problems after that.

    See if that helps the issue.

    Mike

  • Wait for the entry?

    Hi all

    I need to create a custom entry dialog box and the problem I encountered is that I can't figure out how to make my request to wait for the user to complete the entries in the framework. When you use a JDialog or JOptionPane application will stop running and wait for the dialog box to close. My question is how to do something similar without using a JOptionPane or JDialog. I just can't figure out how to get the same effect by using a JFrame or other component. I know I could just use a JDialog or JOptionPane to get input from the user, but I'm just curious to know how I can stop running and wait for the entry as the JOptionPane allows you to do, but without using a JOptionPane or JDialog.

    Thank you for your help :)
    Nathan D.

    -----
    : Edit:
    I forgot to mention that the reason main I avoids JDialogs is I need the entry dialog box to be internal not external application I use mode exclusive fullscreen. And a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. I just need a way to get input from a component or internal window and wait for the entry as a JOptionPane or JDialog.
    -----

    A NBS are:

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    
    
    public class Main extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new Main();
        }
    
    
        JButton go = new JButton("Show custom input dialog");
    
        public Main() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            InputDialog d = new InputDialog();
    
            /*
             * Here is the problem it is necessary that I create a
             * custom input dialog to allow further modifications however
             * i'm not sure how to wait for the user to enter text and press
             * continue in that input dialog. Unlike JOptionPane the code executes
             * before the user presses continue. My question is how do I wait for the user
             * to press continue in the InputDialog before I call d.getString(); without making the main
             * application unresponsive.
             */
    
            String returnValue = d.getString();
            System.out.println("return value "+returnValue); //will be null or empty because application doesn't wait for input.
        }
    
    
        class InputDialog extends JFrame implements ActionListener {
            JTextField f = new JTextField();
            JButton go = new JButton("Continue");
    
            public InputDialog() {
                setTitle("Custom Input Dialog");
                setSize(300,150);
                setLocationRelativeTo(null);
                setLayout(new FlowLayout());
                f.setPreferredSize(new Dimension(100,25));
                go.addActionListener(this);
                add(f);
                add(go);
                setVisible(true);
            }
    
            public void actionPerformed(ActionEvent e) {
    
            }
    
            public String getString() {
                return f.getText();
            }
        }
    }
    Published by: neptune692 on January 3, 2011 13:25

    neptune692 wrote:
    .. a JOptionPane does not allow me to add the other components too it such as JLabels and other GUI. ..

    Of course, it does!

    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    
    public class DumbNameMain extends JFrame implements ActionListener {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            new DumbNameMain();
        }
    
        JButton go = new JButton("Show custom input dialog");
    
        public DumbNameMain() {
            setSize(300,150);
            setLocationRelativeTo(null);
            setLayout(new FlowLayout());
            go.addActionListener(this);
            add(go);
            setVisible(true);
        }
    
        public void actionPerformed(ActionEvent e) {
            JTextField f = new JTextField(10);
            JButton go = new JButton("Continue");
            JPanel p = new JPanel(new FlowLayout());
            p.add(f);
            p.add(go);
            JOptionPane.showMessageDialog( this, p );
    
            String returnValue = f.getText();
            System.out.println("return value "+returnValue);
        }
    }
    
  • HumanTaskActivity does not wait for the user to act

    Hello

    Proc2 I stole the activity of each of the branches, I invoke another process called PROC3 from the e-mail as PROC3 entry.

    PROC3 contains only HumanTaskActivity.

    By the time wherever I start my PROC2, he calls PROC3, but in HumanTaskActivity PROC3 does not wait for the response, it gets full without sending email.

    Any help would be very handful for me.

    Thank you
    VIKI

    VIKI,

    You can run just PROC3? It work? Except that there is a problem with the assignment of the user / group in this task? Users of human tasks has the correct permissions / roles?

    Marc

Maybe you are looking for

  • Plextor model # PX - W2410A CD writer.

    I'm unable to write/burn a cd with Plexwriter model # PX - W2410A. I get the following error message Violation of exception in the module XPBurnDLL.dll at0000C2E5 EAcess. access violation at address 003DC2E5 in module XPBurnDLL.dll', Write to address

  • How to uninstall a specific Windows Live Essentials program

    2 type appwiz.cpl , and then press enter3. look for Windows Live Essentials and click on Change/Remove4. Select Uninstall , and then click continue5 follow the instructions on the screen I did, but it did not work... its does not give me the opportun

  • I installed windows vista home basic 32-bit on my desktop pc coming from my laptop

    Since that what he me locked out of my basic functions in computer science because the key codes don't are aligned with windows, I was originally windows xp home edition, I know that it is wrong to try my office with some purchusing high grade a new

  • BlackBerry Smartphones Bellsouth (now powered by Yahoo) Mail has stopped working

    I have my AOL email set up on my Blackberry "BOLD".  No problems. I got my Bellsouth account, put in place and it worked fine.  Then "outsourced" Bellsouth the their Yahoo email.  The instructions of Bellsouth/Yahoo said I would delete on behalf of B

  • HP PhotoSmart b110a stops at halfway printing

    When printing from Windows 7 for HP Photosmart b110a cable, the printer starts normally but pauzes at halfway. Nothing happens for minutes, and then he throws the paper and gets a new. Then again, but stops at halfway. Same thing. When printing wirel