HELP-Problem with Vector type in Applet

Hi,
I am writing an Java applet which uses Vector. It won't run in IE browser, simply does not respond.
However, when I tested the program using Appletviewer it runs prefectly.
Is there a way to make Vector work in applet ?
I have investigated the code and I'm pretty sure it's the Vector that causes problem in the applet.
Pls your idea. Thanks.
Hadi

Hi,
I use Applet, not JApplet. There are 3 deprecated things in this applet (mouseDown, keyDown, action) but I have used them all in my previous applet with no problem at all.
I suspected the problem is Vector related by inserting several showDialogs as below:
showDialog("1111");
t.clear();     // to clear the vector
showDialog("222222");
I can see that the applet displays the 1111, but does not display 222222 at all. It seems like it simply ignores all commands after the first showDialog. Therefore, I suspect the t.clear() as the source of problem. But it does not display any error.
't' is defined at the top as:
static Vector t = new Vector();
And t is manipulated by such: t.add(new Task()); and other regular Vector methods in jdk 1.3. I also checked that there is no deprecated methods for Vector from 1.2 to 1.3.
I use MS Internet Explorer to run my applet.
Any other things I should check ?
Thanks.

Similar Messages

  • Help: Problem with data types and classes

    Hi there,
    I'm currently struggling with getting a class to read in data from a file and from that select the correct constructor to use... Basically I read a line in from a file as follows:
    <String Make>:<String model>:<String registrationNumber>:<String engineSize>
    e.g.
    Ford:Focus:HG42EG:1800
    There is an Interface called Car, of which 'Ford' is an implementation along with 'Vauxhall', 'Chrysler', etc...
    From this I wish to construct a new instance of a Ford called Focus with input parameters (RegNumber registration,int engineSize) i.e.
    Car Focus = new Ford(HG4 2EG,1800);So far I can convert the engineSize String into an integer and can construct the RegNumber (a class of mine) but can only get it to construct a Ford by using a switch, i.e:
    switch (modelKey){
    case 'f': new Ford(); break;
    case 'v': new Vauxhall(); break;
    case 't': new Toyota(); break;
    etc...
    Now I do get this to work correctly but I'm concerned that it is not OOP therefore is the way I can get code to convert the String 'Ford' into Car 'Ford'.???
    Many thanks in advance for any advice you can throw my way,
    Leebo

    What is this anyway???
    If Car is an interface you can't create instances of it....No, if Car is an interface, his code should be (depending on what the RegNum constructor looks like:
    Car Focus = new Ford(new RegNum("HG42EG"),1800);It's the same as:
    List someList = new ArrayList();However, he won't be able to use a word read from the file as a variable name "Focus". He'll need a Map:
    Map myCarMap = new HashMap();
    myCarMap.put("Focus", new Ford(new RegNum("HG42EG"), 1800));(Could be defined as "Map<String, Car>" if he wants to use generics.)

  • Problem with mime type in web.xml file

    Hi everybody,
    I actually got a problem with mime types on Weblogic 6.0 under Linux.
    I read the documentation so I added the next lines in the web.xml file in
    the WEB-INF directory of my server :
    <mime-mapping>
    <extension>
    doc
    </extension>
    <mime-type>
    application/msword
    </mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>
    ppt
    </extension>
    <mime-type>
    application/vnd.ms-powerpoint
    </mime-type>
    </mime-mapping>
    Why can't I retrieve a .doc or .ppt files with an internet browser correctly
    ? I get only text/plain ...
    Can someone help me ?
    Regards,
    Alexis Berger

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • Problems with letter type

    Problems with letter type homepage www.JO-qigong.nl When I want to make another type it changes the whole page? Why?

    Thank you for responding. I am sure that I selected the text. I don't do anything different than I did many times before. But if I change a text know, for exemple in the color Red, than other text, that I didn't selected, get a different text: bigger text or other color. In iWeb everything is OK, but when I publish it, than there are those grazy changes. I use iWeb for 3 years now and had no problems till now.
    Is it because the software is not supported anymore by Apple, because you can not update the software anymore. It is a pitty, because I like iWeb. It is easy to work with.

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • How do fix problem with iPages - type does not enter - ?

    How do I fix this problem with Pages - type from keyboard does not enter ?  If I need to re-install, How do I do that?

    Hello DonAndNorma,
    You may need to uninstall, then reinstall the Pages application. Steps for doing so can be found in the article linked below.
    OS X Mavericks: Install, update, and uninstall apps
    http://support.apple.com/kb/PH14299
    Cheers,
    Allen

  • Problem with file type... some files have been changed to folders... Help !

    Hello,
    I have problem with some files that are located in Library / Quicktime.
    I have 7 files in that folder and all are .component files.
    3 of them used to look like a lego block :
    DivX Encoder.component
    macam.component
    MayaIFF.component
    But today, I have accidentally change them into folders (and I don,t Know how...) So instead of having thoses 3 files with the lego block icon , I have 3 folders and If I click on thoses folder, It open like a standard folder, so I see the "content" folder inside them...
    How can I change it back to the .component file type they should be... I know how to change the type of a file, but since they are now folders, there's no "file Type" associated with them (right click / infos)...
    Help !

    There are lots of things that are in fact folders, but the Finder treats them as "files"--in the sense that normally when you select one you cannot see the contents of the folder. One way this is done is by the use of certain extensions, for instance .app, .pkg, .mpkg, .bundle and .component all tell the Finder to NOT display the folders as folders. If you do a GetInfo on them and the name is still "whatever.component" and the Kind: Component is still showing, and you haven't noticed any problem with QuickTime, then don't worry about it.
    Those are all third party QT components. If they aren't working, you may have to reinstall them from the original source.
    Francine
    Francine
    Schwieder

  • Problem with JRE and Yahoo applets

    Hi, I couldn't find any answer for this anywhere else...
    Whenever I try to play a Yahoo game, certain windows will "shake". For example, if I log into yahoo, then go to play their spades game, the applet will load without any problem. The game room will appear and everything seems to be fine. But if I click on the Start Panel, the borders of the Start menu will "shake" If I right click on anything, that menu will also shake. This only occurs while JRE is running the yahoo applet. Once I leave the yahoo game, everything returns to normal. If I use IE and MSVM, this problem does not occur. This problem does not seem to occur with other instances of Java either. Only Yahoo games. I tried searching Yahoo for an answer to this, but didn't find anything. When I tried getting help from them, they replied with an email to update Java and/or my browsers. Well, I am using version 1.4.2_04 of java, and have IE6 updated as of today. Also, I am using Opera version 7.54 and Firefox 0.93. This problem with Java and Yahoo occurs no matter which browser I am using. The only way to keep this from happening seems to be to use IE with MSVM. Any ideas?

    That page does apply. Everything that you have written indicates conclusively that the Yahoo game you're playing is the source of the problem. The fact that it works with the MS jvm but not with the Sun jvm, that the Sun jvm works with other Java applets, etc all say the same thing - that Yahoo applets wer/are coded to work with the MS jvm, which uses MS extensions in violation of the Sun/MS licensing agreements. The statement at the bottom of the page is proof positive - your spades game is not listed by Yahoo as being fixed.
    "07/17/03 - From Yahoo! Customer Care:
    We have deployed a fix for the incompatibilities with the Sun JVM� in the following games:
    Chess Gin Cribbage Euchre Bridge
    Hearts Toki Toki Boom Graffiti Pool
    We plan to upgrade the rest of the games on an ongoing basis. "
    The Yahoo applet is the problem and requires repair...

  • Problem with Using JDBC in Applet

    Hi,
    i have written an applet to log in (it checks the database, if the username and pasword exists it shows corresponding message). i use access or sql server and applet is started but no message is shown(i think it does not connect to database). here is my code:
    import javax.swing.*;
    import java.sql.*;
    import java.awt.event.*;
    import java.awt.*;
    public class appletDatabase extends JApplet implements ActionListener {
    JLabel l1;
    JLabel l2;
    JLabel l3;
    JTextField tf1;
    JPasswordField tf2;
    JButton btn;
    Connection cn;
    Statement st;
    String hostname;
    public void init() {
    hostname = "localhost";
    l1 = new JLabel("User Name: ");
    l2 = new JLabel(" Password: ");
    l3 = new JLabel(" ");
    tf1 = new JTextField(20);
    tf2 = new JPasswordField(20);
    btn = new JButton("Sign in");
    Container c = getContentPane();
    c.setLayout(new FlowLayout(FlowLayout.LEFT));
    c.add(l1);
    c.add(tf1);
    c.add(l2);
    c.add(tf2);
    c.add(btn);
    c.add(l3);
    btn.addActionListener(this);
    setSize(300,300);
    setVisible(true);
    public void actionPerformed(ActionEvent e) {
    if (e.getSource()==btn) {
    boolean b = check(tf1.getText(),new String(tf2.getPassword()));
    if (b) {
    l3.setForeground(Color.green);
    l3.setText("Username and password exists. ");
    else {
    l3.setForeground(Color.red);
    l3.setText("Username and/or password does not exist.");
    public boolean check(String un, String pass) {
    String query="SELECT * FROM Table1 WHERE username LIKE'"+un+"'" +
    " AND password LIKE'"+pass+"'";
    boolean b = false;
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    cn = DriverManager.getConnection("jdbc:odbc:login");
    st = cn.createStatement();
    ResultSet rs = st.executeQuery(query);
    if (!(rs==null))
    if (rs.next())
    b = true;
    rs.close();
    st.close();
    cn.close();
    } catch (SQLException e1) {
    e1.printStackTrace();
    } catch (ClassNotFoundException e1) {
    e1.printStackTrace();
    return b;
    }

    The first thing i notice is that there's a problem with your SQL statement.
    To start with you should probably be using PreparedStatements cause it deals with the passing of variables very well and cleanly.
    But if you must use a straight statement then it should be like this:
    String query = "SELECT * FROM Table1 WHERE username LIKE '"+un+"'" + " AND password LIKE '"+pass+"'";
    The fact that you were mising a few spaces wouldn't have helped. Although if you were to use a prepared statement, it would be a lot easier to understand where things were being passed and you don't need to worry about those single quotes for certain values.
    Wes

  • Problem with field type STRING in table

    Hi Experts,
             I am new to ABAP. I have created a new transparent table which hold error info. One of the field has to store data of size about 1500 char.
    Since CHAR type is not acceptable for this field So I gave STRING type. Now when I try to create a TABLE parameter in a RFC enabled functional module using "LIKE YERROR" Then I get a error:
    "YERROR must be a flat structure. You cannot use internal tables, strings, references, or structure as component" 
    Why is this error? How to resolve it? Is it because I have used a field of type STRING in the table? If this is the problem then what other type can I use?
    What are other know problems with using STRING type?
    Please help!
    Thanks
    Gopal

    Hi,
    Try to declare it as type LCHR , it can hold up to 32000 chars.
    Regards
    vijay

  • Trying to export video, stuck at 0%. File in project is .mp4. I only have this problem with this type of file.

    Hello,
    I am trying to export a video and I'm stuck at 0%.  The file in the video is a .mp4 that I downloaded from my own Youtube page.  I have the same problem with any project containing this type of file.  I have tried to export as .mov, .Mpeg, .wmv, .avi, with the same results.
    I am able to export videos that contain other sorts of files without difficulty. 
    I am using a PC.  Adobe Premiere Elements 12.
    Any assistance will be greatly appreciated. 
    Thank you!
    Travis

    Travis
    Do you have the latest version of QuickTime installed on your computer with Premiere Elements 12?
    Sides mentions....
    Have you updated from 12 to the 12.1 Update? If not, please do so using an opened project's Help Menu/Update.
    What is the computer operating system in use.
    Are you running the program from a User Account with Administrative Privileges?
    We will be watching for your results.
    Thank you.
    ATR

  • HELP/Problems with pull-down navigator bar

    Hi everyone,
    I was wondering if I could get some input. I have just
    re-designed our magazine's site, www.easternsurf.com
    I used Pop-Up menu function in Fireworks 8 to generate our
    Navigator bar. For the most part everything has been working well,
    BUT we've had a couple of complaints that the navigator bar's
    pull-down menus get stuck behind the photos/banner ads/etc. instead
    of in front of them when viewing in Internet Explorer. I'm on the
    Mac platform (OSX Tiger/Macromedia Studio 8) and have seen no
    problems viewing in Safari, Firefox and Netscape. The only
    complaints have come from Internet Explorer users. A couple of
    people updated their browser to the newest version and the problem
    disappeared, however we've still had a couple of people that have
    written in that the newest version of IE is still not displaying
    properly.
    Also we've got a strip of button ads running down the left
    hand side of each page and I've also seen another issue that's
    common on sites of this type...when the pulldown menu overlaps with
    a Flash element, there is a problem with the screen re-draw. I've
    seen this on several other sites and know it's a common problem,
    but does anyone know of a workaround where this won't happen? I
    just noticed that signing on to Adobe's site, there almost seems to
    be a command where the menu keeps re-drawing at a very rapid rate
    so this won't happen.
    Any input would be greatly appreciated, although I'm Mac all
    the way, we are a business and have to get this site visible for
    everyone!
    Thanks

    Hi Oldbudge,
    Welcome to the Community,
    Please Perform a Battery Pull Restart like this While Device is Powered On remove the Battery wait for a min. then re-insert it back wait till the device take a long Reboot.And see if that helps.
    Good Luck
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Problem with numeric types in Abap Proxy

    Hello,
    We are having problems with some abap proxy calls. When a numeric type is filled with 0 the node it´s automatically removed and no value it's recived in XI. The only way I have found to avoid this problem it's to define the field with type string or change the cardinality to 1..1 instead of 0..1. It's there any way to maintain the type and the cardinality?? Maybe with a pattern??
    Regards,
    Alberto Pla.

    Hi Alberto
    I had this problem, and I decided to use xsd:string instead of xsd:integer. This will solve the issue.
    Anyway.. check this note:
    [Note 1242795 - Mapping of XSD default values by ABAP Proxy Generation|https://service.sap.com/sap/support/notes/1242795]
    Regards
    Francesco

  • Pleaseeeeeee Help - Problems with position of my web page

    Hi, first sorry on my english
    I have problem with position of my page. I had made my web page in Indesign CS5 and exported to swf file. My web page is working fine (www.igor-flytying.com) but the page is not in the middle of the web browser. How can I fix the problem????? I am a beginer in Indesign. I had try to make some changes in html file (salign) but still nothing.
    Please HELLLLLPPPPPP
    Regards
    Aljosa

    Petteri, SWFObject is much better because it loads the JavaScript so you don't see it inside the HTML page, but it still wraps the swf in a div which by default will be positioned in the upperleft of the browser window.
    This is the only way I've been able to center using SWFObject—note that it's the "flashcontent" div style that does the centering not the align embed parameter:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>S W F | Centered</title>
    <meta http-equiv="Content-Type" content="text/html" />
    <!-- Centers the swf on the page. Note: width and height need to match the swf and margin left and right are -.50%-->
    <style type="text/css">
              #flashcontent {width: 1000px; height: 750px; margin-left: -500px; margin-top: -375px; position: absolute; left: 50%; top: 50%;}
    </style>
              <script type="text/javascript" src="swfobject.js"></script>
              <script type="text/javascript">
                        var flashvars = {};
                        flashvars.myFlashVar = "Testing";
                        var params = {}; //Embed parameters: http://kb2.adobe.com/cps/127/tn_12701.html
                        params.quality = "best";
                        params.align="t"
                        //SWFObject parameters: http://code.google.com/p/swfobject/wiki/api
                        swfobject.embedSWF("swftest.swf", "flashcontent", "1000", "750", "10.0", false, flashvars, params);
              </script>
    </head>
    <!-- ALT HTML TEXT-->
    <body style="background-color: #888888">
              <div id="flashcontent">
                        <a href="http://www.adobe.com/go/getflashplayer"><img src="getFlash.gif"  alt="adobe icon" border="0" /></a>
              </div>
    </body>
    </html>

  • Dynamic ITAB copy problem with field type P

    Hello everyone
    I need to copy the structure of an internal table that is pass by reference into a method.
    Actually everything is fine else than the field type P with decimal is not created properly in the new itab.
    Scenario:
    An internal table is pass by reference to a method. We need to trait the data without modifying the original table. The Idea is to copy the structure and the data of the referenced internal table into an internal table created dymanically in the method.
    Here is what I did and working fine when there are no field of data type "CURR".
    Extract the structure of the reference data.
    Create a dynamic internal table.
    So far so good. Everything seams to work fine. BUT
    when I am trying to copy the data from the reference table to the just created internal table the field with data type "CURR" doesn't work.
    Here is my example:
    FIELD-SYMBOLS: <FS_TABLE> TYPE STANDARD TABLE,
                   <TMP_TABLE> TYPE STANDARD TABLE,
                   <LS_TMP_TABLE> TYPE ANY,
                   <LS_TABLE>     TYPE ANY,
                   <LS_VALUE>     TYPE ANY.
    DATA: lt_data      TYPE STANDARD TABLE OF vbak,
          ls_data      LIKE LINE OF lt_sortfield,
          ref_data     TYPE REF TO data,
          l_structure  TYPE REF TO DATA,
          lv_ltname    TYPE string.               
    select * from vbak UP TO 10 rows INTO CORRESPONDING FIELDS OF TABLE lt_data.
    * --- Assign the reference variable to the table
    * ---- Only use to simulate a parameter that is assign to a reference to a internal table
    unassign <FS_TABLE>.
    lv_ltname = 'lt_data[]'.
    ASSIGN (lv_ltname) to <FS_TABLE>.
    GET REFERENCE OF <FS_TABLE>[] INTO ref_data.
    * --- Assign the reference to the field-symbol
    UNASSIGN <FS_TABLE>.
    ASSIGN ref_data->* TO <FS_TABLE>.
    * --- Create a working area for the reference table to a field-table
    CREATE DATA l_structure LIKE LINE OF <FS_TABLE>.
    ASSIGN l_structure->* TO <LS_TABLE>.
    * --- Retrieve the structure of the field-symbol pointing to the internal table
    DATA: lr_tabledescr   TYPE REF TO cl_abap_tabledescr,   " Internal Table description
          _r_structdescr  TYPE REF TO cl_abap_structdescr.
    lr_tabledescr ?= cl_abap_tabledescr=>describe_by_data( <fs_table> ).
    _r_structdescr ?= lr_tabledescr->get_table_line_type( ).
    * --- Read internal table structure to create dynamic internal table
    data: ls_struc like LINE OF _r_structdescr->components,
          xfc           type lvc_s_fcat,
          ifc           type lvc_t_fcat.
    * --- Why the field (component) NETWR length is now 8 instead of 15?
    LOOP AT _r_structdescr->components into ls_struc.
      clear xfc.
      xfc-fieldname = ls_struc-name .
      xfc-datatype  = ls_struc-type_kind.
      xfc-inttype   = ls_struc-type_kind.
      xfc-intlen    = ls_struc-length.
      xfc-decimals  = ls_struc-decimals.
      append xfc to ifc.
    ENDLOOP.
    DATA:   dy_table      type ref to data,
    * --- Create dynamic internal table
    call method cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog = ifc
      IMPORTING
        ep_table        = dy_table.
    * --- assign reference internal table to Field-symbol
    assign dy_table->* to <tmp_table>.
    unassign <ls_tmp_table>.
    DATA: ls_tmp_struc type REF TO DATA.
    CREATE DATA ls_tmp_struc like LINE OF <tmp_table>.
    ASSIGN ls_tmp_struc->* TO <ls_tmp_table>.
    Loop at <fs_table> INTO <LS_TABLE>.
    MOVE-CORRESPONDING <ls_table> TO <ls_tmp_table>.
    APPEND <ls_tmp_table> TO <tmp_table>.
    ENDLOOP.
    * <fs_table>-netwr length is 15
    * <ls_tmp_table>-netwr length is 8
    * ??????????? Why the length is different?
    * ??????????? It should a structure copy and have the
    * ??????????? same length
    I use VBAK as example, and the field NETWR is using data type "NETWR_AK" where it us a data type "CURR" with length 15 and decimal 2.
    When reading the structure, the method get_table_line_type of the class cl_abap_tabledescr return a length of 8 instead of 15.
    Any idea how to get the exact structure of a variable that is refering to a data type?
    Regards
    Daniel

    Hello Everyone
    Thank you for your replies.
    I think I didn't explain myself clearly.
    My goal is to be able to create an exact  structure copy of a "Type ref to data" into a new internal table that is not defined yet.
    Example:
      A method contain a parameter that is a ref to DATA type.
      That parameter is refering to an internal table from the calling program.
      Now I want to create an internal table into the method where this one will be an exact structure copy of the parameter.
      So, lets put some name here.
      parameter: ip_data type ref to data.
      FIELD-SYMBOLS: <FS_REF_DATA> TYPE STANDARD TABLE,
                                    <FS_CP_DATA>  TYPE STANDARD TABLE.
    ASSIGN ip_data->* TO <FS_REF_DATA>.
    " some code to assign the same structure to <FS_CP_DATA> from <FS_REF_DATA>
    " than copy the data from <FS_REF_DATA> to <FS_CP_DATA>.
    <FS_CP_DATA> [ ] = <FS_REF_DATA> [ ].  " This is working if no type P with decimal exist into the structure
    " Than I can play with the data of <FS_CP_DATA> without modifying the data of <FS_REF_DATA>.
    My problem would be solved if I can create dynamically an internal table that has an exact structure copy of the passed parameter.
    Regards
    Daniel

Maybe you are looking for

  • How to downgrade firmware? (Zen Mic

    Im a owner of a Zen Micro 6GB, V2.x... For some reason I have the same problem like all the other ME user and trying to downgrade my firmware. When ever I try to downgrade the following message stop me from downgrading "You player is not connected. P

  • Issue with infopath forum

    Hi We have set up an InfoPath form with a data connection and is web enabled. But when we come to connect it says its not web enabled. How do I re publish with this option enabled rather than having to redo the who form? Thanks

  • PC gets loaded when trying to display large data in graph

    PC gets loaded when i try to display large data in the graph, the shift register holding the data eats up all my virtual memory ,so my pc gets hangs,any ways to refresh the virtual memory using labview. The chart also cannot be replaced.

  • To increase row in vc

    i have a table with column like this pernr      wzzz 105        123 105        456 105        458 105        258 106        456 106        852 and i wont to change the pernr column like this pernr         waaa 105           123               456     

  • IPhoto pictures go black after import

    when I import to iphoto the pictures often go black or disappear from my event