This is the third or fourth time I've seen this. Looks to me like live connect is passing invalid or volatile pointers. Very bizarre. The callback mechanism clearly isn't what it should be. (No news there.) We just need to be alert to this and avoid callbacks when possible. Obviously they are necessary for atom picking and frame change notification, where there isn't any other way to communicate an action.

I wish there were a better way of transmitting back information from the script command than message callbacks. This causes all sorts of synchronization problems. Couldn't there be a buffer that messages get appended to and then gets delivered as the output of the script() function?

For example:

public String msgBuffer;

public String script(......) {
        msgBuffer="";
...
        return msgBuffer;

}

  public void setStatusMessage(String statusMessage) {
    if (statusMessage == null)
      return;
    if (messageCallback != null && jsoWindow != null)
      msgBuffer+=StatusMessage;
      jsoWindow.call(messageCallback, new Object[] {htmlName, statusMessage});
    else
      showStatus(statusMessage);
  }


-Bob Hanson


SourceForge.net wrote:
Bugs item #1093923, was opened at 2004-12-31 16:46
Message generated for change (Comment added) made by migueljmol
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1093923&group_id=23629


Category: Applet
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Bob Hanson (hansonr)
Assigned to: Miguel (migueljmol)
Summary: strange callbacks

Initial Comment:
OK, I got it again. This time I got a screen shot. This
is a callback from Jmol. Go figure. The second
parameter is a JavaScript function!

Bob



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


Comment By: Miguel (migueljmol)

Date: 2004-12-31 16:54

Message:
Logged In: YES user_id=1050060


No idea.

I think that the most likely explanation is that it is a
JavaScript/LiveConnect bug of some sort.



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

You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1093923&group_id=23629


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers

-- Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr




------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to