Hi,

there seems to be a problem with nsIStorageStream usage from
javascript,
the init() method is not exported to script for some reason,
thus the user is unable to initialize the storagesteam with memory
allocated
and all writes to the stream fail fo course, because there is no memory
allocated.

am i missing something? is ther a workaround?

thanks,

 / karl


Sample:


var storagestream = createInstance("@mozilla.org/storagestream;1",
                                   "nsIStorageStream");
var outputstream = storagestream.getOutputStream(0);

var binoutstr = createInstance("@mozilla.org/binaryoutputstream;1",
                               "nsIBinaryOutputStream");
binoutstr.setOutputStream(outputstream);

/// _any_ write*() crashes FF 1.0.4
binoutstr.writeStringZ("xxx");

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to