# Issue with Wx::Image class, especially set\_data

**URL:** <https://www.ruby-forum.com/t/issue-with-wx-image-class-especially-set-data/141758>\
**Category:** wxRuby\
**Created:** [June 30, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/issue-with-wx-image-class-especially-set-data/141758 "2008-06-30T13:01:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Georg\_Bege](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/65b543/32.png) [@Georg\_Bege](https://www.ruby-forum.com/u/Georg_Bege)\
**Post date:** [June 30, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/issue-with-wx-image-class-especially-set-data/141758/1 "2008-06-30T13:01:27Z")

</div>

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 independent or not?

cheers

–  
Georg ‘Therion’ Bege  
[http://coruscant.info](http://coruscant.info)  
[http://www.ninth-art.de](http://www.ninth-art.de)  
removed\_email\_address@domain.invalid

!DSPAM:4868b85f132156216567211!

---

<div class="post-metadata">

**Author:** ![Georg\_Bege](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/65b543/32.png) [@Georg\_Bege](https://www.ruby-forum.com/u/Georg_Bege)\
**Post date:** [June 30, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/issue-with-wx-image-class-especially-set-data/141758/2 "2008-06-30T13:06:09Z")

</div>

Georg Bege wrote:

> 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)

Thanks for the report. I developed it on OS X and tried it on Linux, and  
I’ve not had any problems. Could you post a minimal sample of the code  
you’re using that reproduces the fault, and also give us an idea of what  
you’re trying to achieve?

> Probably somebody has a clue - I exported this raw data also with  
> get\_data, I guess this should be platform independent or not?  
> Yes - Wx::Bitmap is a platform-dependent image, Wx::Image is platform  
> independent

thanks  
alex
