Displaying 20 results from an estimated 41 matches for "set_data".
Did you mean:
get_data
2016 Feb 08
3
[LLD] Incorrect comparision of pointers to function defined in DSO
Hi,
It looks like I have found a bug in LLD. Suppose DSO defines a global
variable 'data' and initializes it by the address of function
'set_data' defined in the same DSO. If an executable file (linked by
LLD) gets address of the '&set_data' function and compares it with a
value stored in the 'data' variable it gets different result. If the
executable is linked by BFD or Gold linker it gets the same result.
Right now...
2016 Feb 08
2
[LLD] Incorrect comparision of pointers to function defined in DSO
...t;
>
>
> Indeed, comparing the `llvm-readobj -dyn-symbols` output on the executables
> from gold and lld, I see:
>
>
> --- a.out.gold.readobj 2016-02-08 14:08:52.678160575 -0800
> +++ a.out.lld.readobj 2016-02-08 14:08:52.678160575 -0800
>
> Symbol {
> - Name: set_data@ (142)
> - Value: 0x400560
> - Size: 0
> + Name: set_data@ (46)
> + Value: 0x0
> + Size: 10
> Binding: Global (0x1)
> Type: Function (0x2)
> Other: 0
> Section: Undefined (0x0)
> }
>
> You can also see this in LD_DEBUG=all wh...
2006 Aug 03
1
[ win32utils-Bugs-5287 ] v 0.4.1 - Clipboard.set_data causes Segmentation fault
...at 2006-08-03 11:34
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=5287&group_id=85
Category: win32-clipboard
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: v 0.4.1 - Clipboard.set_data causes Segmentation fault
Initial Comment:
Whenever Clipboard.set_data is called a Segmentation fault occurs and ruby reports abnormal program shutdown.
You can discover this simply by running the test case.
I have observed this on two diffent systems.
Version 0.4.0 still works fine.
win32-clipb...
2005 May 06
3
Problems setting image data
Hi,
I''ve been having some intermittent (but repeatable) problems using
Image#set_data. In some cases, I get just a black image drawn after I''ve set
a (non-black) image. Other times I get a MSVC++ runtime exception. It
happens on the same files at the same time. I''m confident that I''m setting
the correct amount of data for the image size. (Note: Ruby 1.8...
2008 Jun 30
1
Issue with Wx::Image class, especially set_data
Hello
Hopefully some developer will see this too.
I''ve problems using set_data method for example with wxruby 1.9.7/ruby
1.8.6 on mswin32.
It always crashes:
..../classes/bitmap.rb:17: [BUG] segmentation fault
On my Linux it works fine (thats no suprise of course).
Probably somebody has a clue - I exported this raw data also with
get_data, I guess this should be platform i...
2006 Oct 14
0
[ win32utils-Bugs-5287 ] v 0.4.1 - Clipboard.set_data causes Segmentation fault
...08:34
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=5287&group_id=85
Category: win32-clipboard
Group: Code
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: v 0.4.1 - Clipboard.set_data causes Segmentation fault
Initial Comment:
Whenever Clipboard.set_data is called a Segmentation fault occurs and ruby reports abnormal program shutdown.
You can discover this simply by running the test case.
I have observed this on two diffent systems.
Version 0.4.0 still works fine.
win32-clipb...
2007 Jun 25
1
Document::set_data() Limitations?
Hi there,
I'm wondering if there is any limitations (hard or soft) to what you can shove
into Document's set_data?
Can I put in binary data? Or is it really just meant for text? Is there a
practical limit to how much information we can put in there?
I suspect that I'll be putting in quite a lot, as in a couple to maybe a hundred
MB. Is this silly?
I'm still in the investigation stage, and would jus...
2005 Aug 01
1
Application Metadata
...docs, i've looked through the tests, and sorry
to say, but I just Don't Get It.
Based on some of the test code, I had assumed I would do something like:
FLAC::Metadata::Application header_flac;
FLAC__byte header_flac_id[4] = { 1, 2, 3, 4 };
header_flac.set_id(header_flac_id);
header_flac.set_data((FLAC__byte*)(header_str.begin()),header_str.size());
// set the metadata
FLAC::Metadata::Prototype *metadata_sequence[] = { &header_flac };
enc.set_metadata(metadata_sequence,sizeof(metadata_sequence)/sizeof(metadata_sequence[0]));
// and now i continue to init(), process_interleaved() and fi...
2006 Sep 24
4
SWIG exceptions
...an example
SWIG-generated argument error:
in method SetData'', argument 2 of type ''wxImage *''
This seems to require a bit of knowledge about the wxWidgets library and
C types. I thought it might be a bit clearer to change these to
something like:
in method ''set_data'', argument 1 expected ''Wx::Image''
(note argument errors are off by one since the calling object is argument 1)
How do you feel about this?
2018 Nov 30
1
Xapian Benchmark results
...4
void parallel_index(int tid, int num_threads,vector<string> documents,Xapian::WritableDatabase *db )
{
int i =0;
char line[2048];
string line_string;
Xapian::TermGenerator indexer;
Xapian::Stem stemmer("english");
indexer.set_stemmer(stemmer);
// doc.set_data("content");
indexer.set_stemming_strategy(Xapian::TermGenerator::STEM_SOME);
Xapian::WritableDatabase database = *db;
try{
for(i=0;i<documents.size();++i)
{
ifstream file;
file.open(documents[i]);
line_string = "";
while(...
2011 Apr 21
1
How to Retrieve content of the document?
...my $doc;
my $line;
my @words;
my $tmp;
my $count = 0;
find(\&index, $dir);
sub index {
# only index regular text files
return unless -T $_;
$file = $_;
$doc = Search::Xapian::Document->new()
or die "can't create doc object for $file: $!\n";
if ($doc->set_data("$File::Find::name")){
warn "can't set_data in doc object for $file: $!\n";
}
$line = 1;
open(FILE, $file);
while (<FILE>){
s/^\W+//;
s/\W+$//;
@words = split(/\W+/, $_);
foreach $tmp (@words){
if ($doc->add_posting($...
2008 Jan 15
7
PHP indexing, what's the PHP method for indexscript
...index field=sample
How can I create the same indexing using PHP?
With this, I can get an searchable index, but I have no idea how to set the fields, so that I can actually GET something back (with the underneath code, I just get a bunch of pid's back).
$doc = new XapianDocument();
$doc->set_data($postrow['pid']);
$doc->add_value(1,date('Ymd',$postrow['postdate']));
$doc->add_value(2,$postrow['author_id']);
$doc->add_term("XAUTHORID".$postrow["author_id"]);
$doc->add_term("XAUTHORNAME".$postrow["forum_...
2007 Mar 09
1
Error in csharp bindings
...levant
bits of the stacktrace are:
#17 0x40eaad11 in operator delete () from /usr/lib/libstdc++.so.6
#18 0x40e87a5d in std::string::_Rep::_M_destroy () from
/usr/lib/libstdc++.so.6
#19 0x40e89086 in std::string::assign () from /usr/lib/libstdc++.so.6
#20 0x40cb865c in Xapian::Document::Internal::set_data (this=0x8245348,
data_=@0xbfbf67a4)
at
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/basic_string.h:486
#21 0x40cb8696 in Xapian::Document::set_data (this=0x52e28,
data=@0xbfbf67a4)
at
/home/richard/private/Working/xapian/xapian-core/api/omdocument.cc:65
I...
2007 May 15
1
Document ID 0 is invalid... but not always...
...t; record
with docId "-1"...
I know, this is bad, but what is interesting is what xapian does in such
a situation...
Here is a simple PHP test :
$db=new XapianWritableDatabase('pathtodb',
Xapian::DB_CREATE_OR_OVERWRITE);
$doc=new XapianDocument();
$doc->set_data('metadata'); // waiting for
http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=143
$doc->add_term('metadata');
$db->replace_document(-1, $doc); // or 4294967295 = (2^32)-1
$doc=new XapianDocument();
$doc->set_data('data');
$doc->add_ter...
2010 Jan 01
1
Document values vs data
In a recent post, someone asked about storing "metadata" in a
document. My guess would have been to use add_value. Olly's
recommendation was to use set_data.
What are the general guidelines for deciding whether to use values or
data in a document?
Garrett
2007 Jul 27
1
Wx::ListItem data
Hi all,
i have a question:
i need a Wx::ListItem to wrap my content but i get a strange result...
irb(main):001:0> require ''wx''
=> true
irb(main):002:0> li = Wx::ListItem.new
=> #<Wx::ListItem:0x281610c>
irb(main):003:0> li.set_data(3)
=> nil
irb(main):004:0> li.get_data
=> 7
any hint?
thank you,
fabio.
_______________________________________________
wxruby-users mailing list
wxruby-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/wxruby-users
2009 Jul 14
1
Multiple clipboards?
Hi all,
I''m back from vacation!
Anyway, I was just wondering if Windows supported multiple, separate
clipboards out of the box, or if that is only possible with 3rd party
add-ons.
I''m wondering if we should alter Clipboard.set_data so that it takes a
"clipboard_number" parameter.
Regards,
Dan
2018 Mar 30
2
sorting large msets
...rch::Xapian::WritableDatabase->new($tmp, $flag);
my $n = shift || 100;
for my $i (0..$n) {
$xdb->begin_transaction;
for my $j (0..2000) {
my $doc = Search::Xapian::Document->new;
my $num = Search::Xapian::sortable_serialise(($i * 1000) + $j);
$doc->add_value(0, $num);
$doc->set_data("$i $j");
$doc->add_boolean_term('T' . 'mail');
$xdb->add_document($doc);
$doc = Search::Xapian::Document->new;
$doc->add_value(0, $num);
$doc->set_data("$i $j");
$doc->add_boolean_term('T' . 'ghost');
$xdb->add...
2008 Sep 27
3
Query::MatchAll
Why there still been rank when using Query::MatchAll() ?
2006 May 11
2
C++ Set_Metadata Problem
...get it to work, but with a different error.
To recap... (I've left out is-valid checks in the listing for brevity)
//////////
// Create an application block
FLAC::Metadata::Application header_flac;
FLAC__byte header_flac_id[4] = { 1, 2, 3, 4 };
header_flac.set_id(header_flac_id);
header_flac.set_data((FLAC__byte*)(header_str.begin()),header_str.size()
);
// Add the block to a metadata array and pass the array to the encoder
object
FLAC::Metadata::Prototype *meta[] = { &header_flac };
set_metadata(meta, sizeof(meta) / sizeof(meta[0]));
// Ready to go - initialise the encoder
if(init() !=...