Random IOCTL_SCSI_PASS_THROUGH ERROR_GEN_FAILURE return

I developed a program to write the firmware disc USB to SCSI command specific provider.

We send the order by IOCTL_SCSI_PASS_THROUGH.

I found that the random return ERROR_GEN_FAILURE, if TEST_UNIT_READY returns failure.

It will be success if retry sending this command.

Everything is fine if TEST_UNIT_READY return a success.  But "Format Disk dialog box" will appear automatically.  We do not like this popup dialog.

You know the reason why the ERROR_GEN_FAILURE return randomly, if TEST_UNIT_READY returns failure?

bResult =: DeviceIoControl)
hDrive,
IOCTL_SCSI_PASS_THROUGH,
pRequest,
totalSize,
pRequest,
totalSize,
& dwBytesReturned,
(NULL);
(& _overLapped);
If (! bResult)
{
If (GetLastError() is ERROR_GEN_FAILURE)
{
Sleep (5);
TRACE (_T ("ERROR_GEN_FAILURE try again %d"),); try it again
new-attempt;
}
}

This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
*

Tags: Windows

Similar Questions

  • Screen goes black at random times, then returns into segments

    I have a MacBook Pro OS 10.11.4 2012. A couple of times in recent weeks, the screen went almost entirely black, with a couple of small yet visible segments. Then if I click in some areas, such as the area of the document I was working, he'll be back.

    Any thoughts on what is happening? Is it a warning that my monitor is about to nonsense?

    It certainly not a good sign.  Try a reset of the NVRAM:

    https://support.Apple.com/en-us/HT204063

    If no success, make an appointment at an Apple store genius bar for a FREE evaluation.  Take a picture of the phenomenon, just in case the MBP has his car in front of the technicians of genius bar.

    Ciao.

  • How can I play labels randomly on the timeline?

    Hello

    I'm playing a label on the timeline in edge randomly animate (CC2015), but I can't make it work.

    The animation starts and call a function which should play random one label (0,1,2,3,4,5,6,7,8,9 or 10) on the main stage.

    Here is the code I use. Does anyone know what I am doing wrong?

    ---

    var NombrAl;

    function pickRandom() {}

    NombrAl = Math.floor (Math.random () * 10);

    }

    pickRandom();

    SYM. Play ("randN");

    ---

    Help is welcome!

    Thanks in advance.

    Hello

    If you have 2 constraints:

    (1) the label must be a string;

    (2) and less than 10.

    Therefore:

    function alea() {}

    var label = Math.floor (Math.random () * 10);

    While (label > 10) {label = Math.floor (Math.random () * 10)};

    Return sym.play(1000) (label.toString ());

    });

    It can be set using the compositionReady Panel:

    SYMsetVariable("playRandomLabel", function alea() {}

    var label = Math.floor (Math.random () * 10);

    While (label > 10) {label = Math.floor (Math.random () * 10)};

    Return sym.play(1000) (label.toString ());

    });

    A trigger will contain:

    SYM. Stop();

    SYMgetVariable("playRandomLabel") ();

  • random data in JTable model

    Hi all:
    I'm testing a JTable example, I create a test as data model below:
    class MyDataModel extends AbstractTableModel{
              private String columns[] = {"col1","col2","col3","col4","col5","col6","col7","col8","col9"};
              @Override
              public int getRowCount(){return 10;}
              @Override
              public int getColumnCount(){return columns.length;}
              @Override
              public Object getValueAt(int row, int col){
                   Integer i = (new Random()).nextInt(100);
                   return i;
              }
              @Override
              public String getColumnName(int col){ return columns[col];}
    
         }                    
    You can see that I filled the cell with varying random number between 0 and 100.

    The table has been created and the number displayed as expected. However, when I click on one of the cells, its data is changed, as well as in other cells, that too. It seems that the data model is reloaded again, and random numbers change dynamically.
    SetValue is called a bit? That really intrigued me.

    Thank you
    Johnny

    You do not fill the model with random values, on the other hand back you a new random value whenever getValueAt() is called. This is called whenever the table will redraw (for example because the editing stops - note that you don't actually saved the value changed, see the AbstractTableModel setValueAt implementation which is empty).

  • Random removal with Scriptographer tool

    Hi, I'm trying to tweak the RandomTools created to Scriptographer so that it matches my preference, but I can't understand it in Javascript. Not knowing a lot of Javascript does not bring me either!

    Here's the script, simplified kept only the part to be deleted. What I want to do is enter a percentage, and then what would be the percentage of the selected object deleted.

    If someone could point me in a direction with which, it would be really great.

    /**
     *  randomDelete 0.4
     *  Base on
     *  Ken Frederick
     *  [email protected]
     *  http://cargocollective.com/kenfrederick/
     *  http://kenfrederick.blogspot.com/
     *
     *  Modified by Jolin Masson
     *  http://jolinmasson.com/
     *
     *          this script uses stuff borrowed from keegan's "rando-color.js"
     *          as well as from some other things i had written in processing
     *
     */
    
    
    script.coordinateSystem = 'bottom-up';
    script.angleUnits = 'radians';
    
    
    var sel;
    
    
    var values = {
              b_delete: true,
              val_deleteAmt: 2,
    };
    
    
    // gui components
    var components = {
              b_delete: { 
                        onChange: function(value) {
                                  components.val_deleteAmt.enabled = value;
                        }
              },
    
    
              val_deleteAmt: { 
                        type: 'number',
                        fullSize: true,
                        enabled: true
              },
    
    
              deleteRule: { 
                        type: 'ruler',
                        fullSize: true,
              },
    
    
              submit: { 
                        type: 'button', 
                        value: 'Apply',
                        onClick: function() {
                                  Main();
                        }
              }
    };
    
    
    // Setup
    function Setup() {
              // initialize the palette window
              var palette = new Palette('Random Delete 0.5', components, values);
    }
    
    
    // Update
    function Update() {
    }
    
    
    // Main
    function Main() {
              // document properties
              sel = activeDocument.getItems( { type: Item, selected: true } );
    
    
              //adjust delete range values based on selection number
              components.val_deleteAmt.range = [0, sel.length-1];
    
    
              // loop through selected items
              for ( i in sel ) {
                        var object = sel[i];
    
    
                        if( object.isValid() ) {
                                  // ------------------------------------
                                  // delete
                                  // ------------------------------------
                                  if ( values.b_delete ) {
                                            rand = parseInt( Math.random()*values.val_deleteAmt );
                                            if (rand == 0) object.remove();
                                  }
                        } //end isValid()
              }
    } //end Main()
    
    
    
    
    // ------------------------------------------------------------------------
    // methods
    // ------------------------------------------------------------------------
    function random(minr, maxr) {
              return minr + Math.random() * (maxr - minr);
    }
    
    
    
    
    // ------------------------------------------------------------------------
    // execution
    // ------------------------------------------------------------------------
    Setup();
    Update();
    

    Thank you

    I had help on the forum Scriptographer, and here's the final stuff!

    http://CL.LY/code/3y1u1q311T1x

  • generator of random numbers with conditions?

    Hiya,

    I'm pretty new to Flash so this can be a very easy fix for someone who knows what they are doing...

    Here is my code...

    the idea is that the player clicks on a button to look out the window and then a 4 options arise randomly, he'll be CHARGED 5 points of energy for the privilege.

    LOOKING OUT WINDOW - this section works fine...

    trainWINDOW.addEventListener (MouseEvent.CLICK, windowcheck);

    function windowcheck(event:MouseEvent):void
    {
    updateScoreENERGY();
    }
    function updateScoreENERGY (): void
    {
    If (scoreENERGY < 5) {}
    WINDOWRESULT.text = ' YOU ARE TOO TIRED to DRAG YOURELF until THE WINDOW";} m:System.NET.SocketAddress.ToString ().
    on the other

    scoreENERGY-= 5;
    randomzombieforcast();
    energycptext. Text = scoreENERGY.toString ();
    }

    the section above works fine, I don't think that the 'randomzombieforcast' function works


    I think the problem starts here...

    function randomzombieforcast()
    {
    var Results:Number is Math.floor (Math.random () * 4) + 1;.
    return results ;}

    {If (results == 1)
    WINDOWRESULT.text = "there are only a few zombies around (day light)"m:System.NET.SocketAddress.ToString ();
    If (results == 2)
    WINDOWRESULT.text = "there are a certain number of zombies hidden nearby (average day)"m:System.NET.SocketAddress.ToString (); ".
    If (results is 3)
    WINDOWRESULT.text = ' there are a lot of zombies LURKING in your street (day) "(heavy) m:System.NET.SocketAddress.ToString;»
    If (results is 4)
    WINDOWRESULT.text = "I wouldn't look for if I were you! (Revelation) "m:System.NET.SocketAddress.ToString (;})

    Any help at all would be greatly appreciated

    Thank you!

    Try...

    function randomzombieforcast()
    {
    var Results:Number is Math.floor (Math.random () * 4) + 1;.

    If (results == 1) {}
    WINDOWRESULT.text = "there are only a few zombies autour (day light);

    } Else if (results == 2) {}
    WINDOWRESULT.text = "there are a number of hidden nearby zombies (medium day);"
    } Else if (results == 3) {}
    WINDOWRESULT.text = ' there are a lot of zombies in your street TAPI (heavy day);
    } Else if (results == 4) {}
    WINDOWRESULT.text = "I wouldn't look for if I were you! (apocalypse) » :

    }

    }

  • Random numbers and generate funds

    Hello.

    I would like to create a very simple equation random addition.

    I have: 3 boxes of dynamic text (r1_txt, r2_txt, a1_txt)

    I want the first two random numbers and 'a1_txt' to display the sum of the first two random numbers.

    Everything is perfect to the point of adding the two numbers and drop the answer in a1_text. What should I do for my last line of code?

    Thanks for your help!

    random numbers
    1.
    function randomNumbers (min:Number, max: Number) {}
    var Results:Number = Math.floor (Math.random () * max) + min;
    return results;
    }

    2.
    new_mc.addEventListener (MouseEvent.CLICK, showRandomnumber);

    3.
    function showRandomnumber(event:MouseEvent):void {}
    r1_txt. Text = randomNumbers (1,100)
    r2_txt. Text = randomNumbers (1,100)
    a1_txt. Text = Number (r1_txt.text) + Number (r2_txt.text);
    }

    Your showRandomnumber() function has a few problems.  TextFields working with channels, so whatever it is assigned to a textfield must be a string value.  You should actually get errors for the first two lines.

    function showRandomnumber(event:MouseEvent):void {}
    r1_txt. Text = String (randomNumbers (1,100));
    r2_txt. Text = String (randomNumbers (1,100));
    a1_txt. Text = String (Number (r1_txt.text) + Number (r2_txt.text));
    }

    If you change which is not fix things, then look to your textfields to the problem

  • Button for XML loadURL randomly

    I need to create a button that will go to a random URL and loads from the XML document.

    I have the full visual effect basis:

    rb_1 is the right button left button is lb_1.

    lb_1.onRollOver = more;

    lb_1.onRollOut =;

    rb_1.onRollOver = more;

    rb_1.onRollOut =;

    function () {}

    this.gotoAndPlay (2);

    }

    function () {}

    this.gotoAndPlay (16);

    }

    That's what I have on the loading of XML and random generation:

    var gallery_arr:Array;
    var gallery_xml:XML = new XML();
    gallery_xml.ignoreWhite = true;
    gallery_xml. Load ("y_contributers.xmlL");
    gallery_xml. OnLoad = function() {}
    var index: Number = new Number (0);
    used var: String = new String ("used");
    gallery_arr = new Array (this.firstChild.firstChild.childNodes.length);
    for (var aNode: XMLNode = this.firstChild.firstChild.firstChild; aNode! = null; aNode = aNode.nextSibling) {}
    gallery_arr [index] = new Array (aNode.firstChild.childNodes.length);
    for (var subnode: XMLNode = aNode.firstChild; subnode! = null; subNode = subNode.nextSibling) {}
    gallery_arr [index] [subNode.nodeName] = subNode.firstChild.nodeValue;
    }
    gallery_arr [index] [employee] = false;
    index ++;
    }
    };
    function randomSelect(theNum:Number) {}
    var myResult:Number = Math.floor (Math.random () * theNum);
    return same;
    }
    This is my XML:
    < contributors >
    < URL >
    day_1.html < file > < / file >
    < / URL >
    < / contributors >
    Basically, I need to get the action script everything is done and attach it to the onRollOver button function.  I don't know what to do next.
    Any help will be much appreciated.
    Thanks - JP

    If you want a button click to load one of these URLs into your xml file, you can use:

    yourbutton.onRelease = function() {}

    getURL (gallery_arr [Math.floor (Math.random () * gallery_arr.length)]);

    }

  • AS3 getting a random multiple number of table

    Hello:

    I have a hard time finding ways to manage the division with random numbers of tables using AS3.

    On my stage, I have two dynamic boxes; Box1 and box2 and a button, btn.

    in the Assembly, I have the following berries:

    var myDivisor:Array = [3,6,9,12,15,18,21,24,27,30];

    var myDivider:Array = [1,3,6];

    The idea is to divide 1 box per box of 2, so myDivisor should be a random number greater than a random number between myDivider

    WITH THE HELP OF BTN, HOW CAN I GET A RANDOM OF EACH TABLE, SO THIS DIVISOR NUMBER IS HIGHER THAN THE DIVISOR?

    In the timeline for button, here is the code:

    btn.addEventListerner (MouseEvent, CLICK, rNum);

    function rNum (MouseEvent): void

    {

    Box1. Math.Floor (Math.random) * myDivisor.length) / box2. Math.Floor (Math.random) * myDivider.leng th);

    }

    Please suggest ways to make this work.

    German

    var myDivisor:Array = new Array (3,6,9,12,15,18,21,24,27,30,23,89,90,1,34,56,78,99,345,456);
    var myDivider:Array = new Array (1,3,6);
    var divisor: int;
    var divisor: int;

    getNumbers();
    function getNumbers() {}
    divisor = getRandom (myDivisor);
    divisor = getRandom (myDivider);
    checkValues();
    }
    function getRandom(array:Array):int {}

    var NombrAl = Math.floor (Math.random () * array.length);
    return table [NombrAl];

    }
    function checkValues() {}
    If (getRandom (myDivisor) > getRandom (myDivider)) {}
    trace (getRandom (myDivisor));
    trace (getRandom (myDivider));

    } else {}
    getNumbers();
    }
    }

  • random in AS3... When should I Math.floor?

    Hi, I'm trying to convert:

    _root.character_splash_mc.loadMovie ('Fund sovereigns/screenings/character_splash_' + random (3) + ".swf");

    The following AS3 code:

    var character_splash_loader:Loader = new Loader ();

    character_splash_loader. Load (new URLRequest ('Fund sovereigns/screenings/character_splash_' + Math.floor (Math.random () * 3) + ".swf"));

    MovieClip (root).character_splash_mc.addChild (character_splash_loader);

    "Math.floor (Math.random () * 3)" will return the same random number as type "random (3)?

    Thank you

    (very sorry for what is so fundamental... trying to learn AS3 ASAP... very grateful)

    Math.Floor (Math.Random () * 3) will produce 0,1,2 as outputs, which I think is what that random (3) would do.

  • Satellite A500 - 17 X gel questions / speakers crackling

    Hello

    I recently bought a laptop Toshiba Satellite A500 - 17 X to pc world because I wanted a reasonable multimedia laptop computer price of £700, I'm towards the end of my fault for 28 days and do not know whether to return the laptop or keep it.

    From time to time if I let the computer and do not use it for an hour or set mode 'sleep' then when I take it freezes sometimes and I have to turn off the laptop or remove the battery and restart the computer, which arrived about 4 times in 20 days. It freezes completely so that I can t anything.

    Sometimes when I play the music from the speakers slightly crackle well that I m not sure if I m just to play out loud as I like my music loud but even when I turn down that I hear it randomly, I already returned your laptop for the same problem, but now you're wondering whether to give up Toshiba and go for something else or stick with them

    I was wondering if anyone else had similar problems or everyone finds the laptop works very well with WINDOWS 7 and no problems

    Please answer asap would be very grateful

    Thank you

    Hello

    For three weeks I have Satellite A500-157. I had with Vista, but after a week, I installed Win7 (clean install). So far, I am convinced, and performance is really good.
    I does not have a lot of extra software. I use Office 2007, Skype, MSN messenger and Firefox only.
    Last week when I installed Win7 I have found no Win7 drivers for this model of laptop but I did the combination of Vista and Win7 for Satellite A350 pilots. Everything goes well.

    With all these stuff pre-installed and portable standard configuration runs stabile and pretty quiet (after updating the BIOS). I use the daily sleep/hibernation mode and up to now I did not notice anything unusual. Laptop wakes up correctly.

    Sound is pretty good, but I think that his was better on my older Satellite P200. Maybe the older speakers in P200 were slightly larger and more powerful. In any case, until now, I did not notice whatever it is what can be described as critical behavior and I just hope that mobile will work well in the future without some hardware or software issues.

  • Too much eventListeners in nested form causes falsh cs6 debugging session crashing?

    Hi all!

    The video above (http://www.youtube.com/watch?v=53vqkd5VLFw) is a simple sequential, click game. The code works perfectly in a simple situation of movieclips brand-new or even up to 20 movieclips or more. But when I increase the number of movieclips more far and adds more eventlisteners in nested form, flash cs6 debugging sessions seem to get overloaded and fails to give a result. He gets simply hung up.

    Code work for a simple situation:

    startBtn.addEventListener (MouseEvent.CLICK, trigGame)

    function trigGame(e:MouseEvent):void {}

    N1 to n9 are the nine movieclips arranged as a grid

    N1.Alpha = 1;          N2.Alpha = 1;          N3.Alpha = 1;

    N4.Alpha = 1;          N5.Alpha = 1;          N6.Alpha = 1;

    N7.Alpha = 1;          N8.Alpha = 1;          N9.Alpha = 1;

    startBtn.visible = false;

    RANDOM CODE GRID: OPEN

    function randomSort(a:*,_b:*):Number

    {

    If (Math.Random () < 0.5) return-1;

    else return 1;

    }

    var positions: Array = [new Point (158, 296), new Point (238, 296), new Point (318, 296),]

    New Point (158, 366), new Point (238, 366), new Point (318, 366), new Point (158, 436).

    [new Point (238 436), new Point (318, 436)];

    var mcs:Array = [n1, n2, n3, n4, n5, n6, n7, n8, n9];

    positions.sort (randomSort);

    var q: int = positions.length;

    for (var t = 0; t < q; t ++)

    {

    var mc:MovieClip = mcs [t];

    var: a Point = post [t];

    MC.x = point.x;

    MC.y = point.y;

    }

    GRID RANDOM CODE: CLOSE

    {n1.addEventListener (MouseEvent.MOUSE_DOWN, alph1);

    function alph1(e:MouseEvent):void

    {{n1.alpha =.5; n1.removeEventListener (MouseEvent.MOUSE_DOWN, alph1) ;}}} ;

    N2.addEventListener (MouseEvent.MOUSE_DOWN, alph2);

    function alph2(e:MouseEvent):void

    {{n2.alpha =.5; n2.removeEventListener (MouseEvent.MOUSE_DOWN, alph2) ;}}} ;

    N3.addEventListener (MouseEvent.MOUSE_DOWN, alph3);

    function alph3(e:MouseEvent):void

    {{n3.alpha =.5; n3.removeEventListener (MouseEvent.MOUSE_DOWN, alph3) ;}}} ;

    N4.addEventListener (MouseEvent.MOUSE_DOWN, alph4);

    function alph4(e:MouseEvent):void

    {{n4.alpha =.5; n4.removeEventListener (MouseEvent.MOUSE_DOWN, alph4) ;}}} ;

    N5.addEventListener (MouseEvent.MOUSE_DOWN, alph5);

    function alph5(e:MouseEvent):void

    {{n5.alpha =.5; n5.removeEventListener (MouseEvent.MOUSE_DOWN, alph5) ;}}} ;

    N6.addEventListener (MouseEvent.MOUSE_DOWN, alph6);

    function alph6(e:MouseEvent):void

    {{n6.alpha =.5; n6.removeEventListener (MouseEvent.MOUSE_DOWN, alph6) ;}}} ;

    N7.addEventListener (MouseEvent.MOUSE_DOWN, alph7);

    function alph7(e:MouseEvent):void

    {{n7.alpha =.5; n7.removeEventListener (MouseEvent.MOUSE_DOWN, alph7) ;}}} ;

    N8.addEventListener (MouseEvent.MOUSE_DOWN, alph8);

    function alph8(e:MouseEvent):void

    {{n8.alpha =.5; n8.removeEventListener (MouseEvent.MOUSE_DOWN, alph8) ;}}} ;

    N9.addEventListener (MouseEvent.MOUSE_DOWN, alph9);

    function alph9(e:MouseEvent):void

    {{n9.alpha =.5; n9.removeEventListener (MouseEvent.MOUSE_DOWN, alph9) ;}}} ;

    {startBtn.visible = true}

    }}}}}}}}}}}

    Can someone please help.

    Thanks in advance

    Kind regards

    Shams

    Yet once you post them in your code that does not display the problem.  There is nothing in this code that forces a user presses before n2 n1, for example.

    Open a new fla, add your n1... movieclips and use the following syntax:

    var positions: Array = [new Point (158, 296), new Point (238, 296), new Point (318, 296),]

    New Point (158, 366), new Point (238, 366), new Point (318, 366), new Point (158, 436).

    [new Point (238 436), new Point (318, 436)];

    Var error: int;

    var mcs:Array = [n1, n2, n3, n4, n5, n6, n7, n8, n9];

    startF();

    function startF (): void {}

    Errors = 0;

    Shuffle (positions);

    for (var i: int = 0; i<>

    MCS [i] .addEventListener (MouseEvent.MOUSE_DOWN, downF);

    MCS [i] .x = items [i] .x;

    MCS [i] there = there positions [i];

    MC [i] .alpha = 1;

    }

    }

    function downF(e:MouseEvent):void {}

    If (mcs.indexOf (e.currentTarget) == 0 | mcs [mcs.indexOf (e.currentTarget)-1] .alpha)<>

    e.currentTarget.alpha =. 5;

    e.currentTarget.removeEventListener (MouseEvent.MOUSE_DOWN, downF);

    {if (MCS. IndexOf (e.currentTarget) is MCS. (Length-1)}

    gameoverF();

    }

    } else {}

    Errors ++;

    }

    }

    function gameoverF (): void {}

    view congratulations if errors 0 or some other low number

    When you want to restart the game, call startF().

    }

    function shuffle(a:Array) {}

    var p:int;

    var t: *;

    var ivar:int;

    for (ivar =. Length-1; Ivar > = 0; Ivar-) {}

    p = Math.Floor ((Ivar+1) * Math.Random ());

    t = a [ivar];

    a [ivar] = a [p];

    a [p] = t;

    }

    }

  • Help to convert as2 as3

    Please, I need help convert this script in as3 bellow. Thank you.

    SCREEN_WIDTH = 800

    screen_height = 200

    frequency = 0

    MovieClip.prototype.serConfeti = function () {}

    This._x = Math.ceil (Math.Random () * SCREEN_WIDTH)

    This._xscale = Math.ceil (Math.Random () * screen_height)

    This ._yscale = this ._xscale

    This.Mover)

    This.coloreame)

    }

    function getPorcentaje() {}

    var number = Math.ceil (Math.random () * 100)

    return number

    }

    getOffset() {} function

    var number = Math.ceil (Math.random () * 255)

    var buleano = Math.round (Math.random () * 1)

    If (buleano == 1) {}

    number = number * 1

    }

    return number

    }

    MovieClip.prototype.coloreame = function () {}

    var color = new Color (this)

    var nuevo_color = new Object()

    nuevo_color. RA = getPorcentaje)

    nuevo_color. RB = GetOffset)

    nuevo_color.GA = getPorcentaje)

    nuevo_color. GB = GetOffset)

    nuevo_color.BA = getPorcentaje)

    nuevo_color.BB = GetOffset)

    my_color.SetTransform (nuevo_color)

    }

    MovieClip.prototype.mover = function () {}

    this.onEnterFrame = function () {}

    If (this ._y < 600) {}

    This ._y += 10

    This ._xscale = Math.random () * 200

    This ._rotation = Math.random () * 360

    } else {}

    this.removeMovieClip)

    }

    }

    }

    MovieClip.prototype.caidaConfeti = function () {}

    this.createEmptyMovieClip("caida_mc",1)

    var count = 0

    var confCount = 1

    This.caida_mc.onEnterFrame = Function () {}

    if(Count<frecuency) {}

    Count ++

    } else {}

    this.attachMovie ("conf", "conf" + confCount, confCount)

    eval("this.caida_mc.conf"+confCount).serConfeti)

    Count = 1

    confCount ++

    }

    }

    }

    //

    _root.caidaConfeti)

    see if it's what you want:

    var screen_width:int = 800;

    var screen_height:int = 200;

    var frecuency:int = 0;

    function coloreame(mc:MovieClip):void { / / can't tell what is your coloreame but try this. }

    var ct:ColorTransform = mc.transform.colorTransform;

    CT. Color = 0xffffff * Math.random ();

    mc.transform.colorTransform = ct;

    }

    function serConfeti(mc:MovieClip):void {}

    MC.x = Math.ceil (Math.random () * screen_width);

    mc.scaleX = mc.scaleY = Math.ceil (Math.random () * screen_height);

    Mover (MC);

    coloreame (MC);

    }

    function mover(mc:MovieClip):void {}

    mc.addEventListener (Event.ENTER_FRAME, moverF);

    }

    function moverF(e:Event):void {}

    var mc:MovieClip = MovieClip (e.currentTarget);

    If (mc.y<>

    MC.y += 10;

    mc.scaleX = Math.random () * 200;

    MC.rotation = Math.random () * 360;

    } else {}

    mc.removeEventListener (Event.ENTER_FRAME, moverF);

    mc.parent.removeChild (mc);

    }

    }

    function caidaConfeti(mc:MovieClip):void {}

    var caida:MovieClip = new MovieClip();

    Caida.Count = 0;

    caida.confCount = 1;

    mc.addChild (caida);

    caida.addEventListener (Event.ENTER_FRAME, enterFrameF);  / / I can't tell when it has to end.

    }

    function enterFrameF(e:Event):void {}

    var caida:MovieClip = MovieClip (e.currentTarget);

    If (caida.count<>

    Caida.Count ++;

    } else {}

    var conf_mc:MovieClip = new conf();

    caida.addChild (conf_mc);

    serConfeti (conf_mc);

    }

    }

    caidaConfeti (this);

  • What types of instructions SQL BI Publisher DO does support?

    Hello

    The following T - SQL script works OK on MS - SQL Server 2005, but is rejected by BI Publisher (10g)

    Yes, this may seem strange: this code actually precedes the actual query select, while she prepares a few temporary tables for her.
    I need this to check conditions... (it's for reporting Primavera 8.1)

    The script runs without problem on SQL Management Studio Query Panel...
    But its setting in a datamodel "SQL Query" at RANDOM (10g), it returns an error: can not generate automatic layout (and cannot 'see')

    Could someone tell if the used instructions are (all) compatible with BI Publisher? (10g)
    It seems that there are some Beeping cannot parse. (see log error details)

    ------------------------start----------------------------
    Select * into #tmp_prj from pxrptuser.p6project
    Select * into #tmp_act from pxrptuser.p6activity
    ALTER TABLE NOCHECK CONSTRAINT #tmp_act ALL

    create the table #TMP_MILES (mname varchar (255))
    INSERT INTO #TMP_MILES (mname) values ('first string')
    INSERT INTO #TMP_MILES (mname) values ('second string')
    INSERT INTO #TMP_MILES (mname) values ("third string")
    INSERT INTO #TMP_MILES (mname) values ('fourth string")
    INSERT INTO #TMP_MILES (mname) values ('fifth string")
    INSERT INTO #TMP_MILES (mname) values ('sixth string")
    / * using the cursor * /.
    declare @cur_store varchar (255)
    Set @cur_store = "
    declare MonCursor CURSOR FAST_FORWARD for
    Select mname in #TMP_MILES
    OPEN MonCursor
    THEN EXTRACT MyCursor
    IN @cur_store
    WHILE @FETCH_STATUS = 0
    BEGIN

    DECLARE @LoopVar int
    SET @LoopVar = (SELECT MIN (objectid) OF #tmp_prj)
    Then @LoopVar is not null
    BEGIN
    otherwise there is (select P.objectid, A.projectobjectid from #tmp_prj P, #tmp_act A
    where P.objectid=@LoopVar and A.projectobjectid = P.objectid and A.name=@cur_store)
    insert into #tmp_act (objectid, projectobjectid, name, wbsobjectid, calendarobjectid, isnewfeedback, autocomputeactuals, percentcompletetype, type, durationtype, review status, status, id, islongestpath, RPT_CURRENT_FLAG, EndDate, baselinefinishdate)
    values (654654, @LoopVar, @cur_store, 654654, 654654, 'Y', 'Y', 'Delalande', 'fff', 'zzz', 'aaa', 'sss', 'xxx', 'n', 'F', NULL, NULL)
    -print @cur_store
    SET @LoopVar = (SELECT MIN (objectid) #tmp_prj TP WHERE @LoopVar < TP.objectid)
    END
    -Select P.id, P.objectid, B.SID, A.finishdate P, #tmp_act A #tmp_prj where (A.projectobjectid = P.objectid and A.name=@cur_store)
    THEN the EXTRACTION OF MonCursor
    IN @cur_store
    END

    CLOSE MonCursor
    DEALLOCATE MonCursor
    drop table #TMP_MILES

    / * This is the select query, use the tables 'tmp_': also works very well on the query from SQL Management Studio panel...*/

    drop table #tmp_prj
    drop table #tmp_act
    ------------------------------------end-------------------------------

    Here is the error log:

    french text only means: "the statement didn't return the result" (which is essentially...)
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxSTARTxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    >
    [011812_101509915] [] [EXCEPTION] com.microsoft.sqlserver.jdbc.SQLServerException: the instruction did not return the result set*.
    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:170)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:392)
    to com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$ PrepStmtExecCmd.doExecute (SQLServerPreparedStatement.java:338)
    at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4026)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1416)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:185)
    at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:160)
    at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:281)
    at oracle.apps.xdo.dataengine.XMLPGEN.getDefaultStructure (unknown Source)
    at oracle.apps.xdo.dataengine.DataProcessor.setDefaultTemplate (unknown Source)
    at oracle.apps.xdo.dataengine.DataProcessor.initTemplate (unknown Source)
    at oracle.apps.xdo.dataengine.DataProcessor.writeDefaultLayout (unknown Source)
    at oracle.apps.xdo.servlet.resources.ResourceServlet.createAutoLayout(ResourceServlet.java:288)
    at oracle.apps.xdo.servlet.resources.ResourceServlet.service(ResourceServlet.java:144)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:100)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)

    >
    # < 18 Jan. [2012 10: 15 THIS > < HTTP > < VXP > < AdminServerBIP1 > < error > < ExecuteThread [ASSET]: '2' for the queue: '(self-adjusting) weblogic.kernel.Default' > < < WLS Kernel > > <><>< 1326878109915 > < BEA-101017 > < [path of the module: xmlpserver ServletContext@14316901[app:xmlpserver: / xmlpserver spec-version: 2.5]] Root cause of ServletException.
    Oracle.Xml.Parser.v2.XMLParseException: end tag does not match the start tag 'group '.
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    at oracle.xml.parser.v2.NonValidatingParser.parseEndTag(NonValidatingParser.java:1368)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1313)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:292)
    at oracle.apps.xdo.dataengine.DataProcessor.getSQLRTFLayout (unknown Source)
    at oracle.apps.xdo.dataengine.DataProcessor.writeDefaultLayout (unknown Source)
    at oracle.apps.xdo.servlet.resources.ResourceServlet.createAutoLayout(ResourceServlet.java:288)
    at oracle.apps.xdo.servlet.resources.ResourceServlet.service(ResourceServlet.java:144)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.apps.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:100)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    >
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxERRORLOG ENDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    The script is running on SQL Server 2005. But there is an error on the NOSE.

    Your ideas and/or messages is much appreciated...!
    Thank you!

    Model data BEEP is expected at this only DML and DDL statements and your script is to combine the two.
    In addition even he accepts only and analysis queries DML ONE by data model.
    If you want several DML, then you must define several data models.

    If your entire script will never run at the BEEP.

    If you want to run the process before / after the report is run, then you can call datatrigger using data templates in the data model.
    Read here: http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T434255.htm#3503342

    concerning
    Jorge
    p.s. If your question has been answered then please mark my answer in the form * "Correct" * or * "useful."

  • How to stop a function?

    I have this code I want to end on a specific image? How would I do that? It could also be called on to play 115 images if it's easier.

    SCREEN_WIDTH = 750

    screen_height = 475

    frequency = 0 / / < < INCREASE TO REDUCE the QUANTITY PAPERS

    //

    //

    MovieClip.prototype.serConfeti = function () {}

    This._x = Math.ceil (Math.Random () * SCREEN_WIDTH)

    This._xscale = Math.ceil (Math.Random () * screen_height)

    This ._yscale = this ._xscale

    This.Mover)

    This.coloreame)

    }

    function getPorcentaje() {}

    var number = Math.ceil (Math.random () * 20)

    return number

    }

    getOffset() {} function

    var number = Math.ceil (Math.random () * 255)

    var buleano = Math.round (Math.random () * 1)

    If (buleano == 1) {}

    number = number * 1

    }

    return number

    }

    MovieClip.prototype.mover = function () {}

    this.onEnterFrame = function () {}

    If (this ._y < 475) {}

    This ._y += 10

    This ._xscale = Math.random () * 100

    This ._rotation = Math.random () * 360

    } else {}

    this.removeMovieClip)

    }

    }

    }

    MovieClip.prototype.caidaConfeti = function () {}

    this.createEmptyMovieClip("caida_mc",1)

    var count = 0

    var confCount = 1

    This.caida_mc.onEnterFrame = Function () {}

    if(Count<frecuency) {}

    Count ++

    } else {}

    this.attachMovie ("conf", "conf" + confCount, confCount)

    eval("this.caida_mc.conf"+confCount).serConfeti)

    Count = 1

    confCount ++

    }

    }

    }

    //

    _root.caidaConfeti)

    When you want to stop this loop, use:

    delete _root.caida_mc.onEnterFrame;

Maybe you are looking for