Hello Jules,
Thanks for the prompt reply as always.
Probably the problem is like you described. But I only copy/paste into the JuceDemoPlugin a few elements that were generated by the JUCER itself.
So could you please let me know which one could cause a problem ?
Here’s the 6 things I try to add to jucedemoplugin:
/******.h*********/
1- in public :
static const char prefs_about_png;
static const int prefs_about_pngSize;
static const char prefs_misc_png;
static const int prefs_misc_pngSize;
static const char jules_jpg;
static const int jules_jpgSize;
2- in private : ImageButton* imageButton;
/*********.cpp*********/
3- in constructor :
addAndMakeVisible (imageButton = new ImageButton (T(“new button”)));
imageButton->setImages (false, true, true,
ImageCache::getFromMemory (prefs_about_png, prefs_about_pngSize), 1.0000f, Colour (0x0),
ImageCache::getFromMemory (prefs_misc_png, prefs_misc_pngSize), 1.0000f, Colour (0x0),
ImageCache::getFromMemory (jules_jpg, jules_jpgSize), 1.0000f, Colour (0x0));
4- in destructor (I’ve also tried to comment it out) :
deleteAndZero (imageButton);
5- in resized : imageButton->setBounds (168, 72, 64, 64);
6- And finally the (trimmed) binary images :
static const unsigned char resource_DemoEditorComponent_prefs_about_png[] = { 137,80,…
…130,0,0};
const char* DemoEditorComponent::prefs_about_png = (const char*) resource_DemoEditorComponent_prefs_about_png;
const int DemoEditorComponent::prefs_about_pngSize = 1819;
static const unsigned char resource_DemoEditorComponent_prefs_misc_png[] = { 137,80,78,71,13,10,…
52,63,0,0,0,0,73,69,78,68,174,66,96,130,0,0};
const char* DemoEditorComponent::prefs_misc_png = (const char*) resource_DemoEditorComponent_prefs_misc_png;
const int DemoEditorComponent::prefs_misc_pngSize = 6162;
static const unsigned char resource_DemoEditorComponent_jules_jpg[] = { 255,216,255,224,0,16,74,70…
250,180,248,215,255,217,0,0};
const char* DemoEditorComponent::jules_jpg = (const char*) resource_DemoEditorComponent_jules_jpg;
const int DemoEditorComponent::jules_jpgSize = 24218;
/******************/
Is there something obvious that I would have overlooked ?
Any help would be much appreciated.
If more convenient, I can also send the xcode project.
Thanks,
Salvator
PS : from a quick test, I didn’t had that crash with 1.46…