ok..

this is my structcode:
Code:
//=================================================================================================================================
//                                                                                                                               //
//                                                       DIE BITMAPS                                                             //
//                                                       ^^^^^^^^^^^                                                             //
//                                                                                                                               //
//=================================================================================================================================
//=================================================================================================================================
//                                                                                                                               //
//                                                      STRUCKTUREN                                                              //
//                                                      """""""""""                                                              //
//                                                                                                                               //
//=================================================================================================================================
typedef struct 
{
	STRING* name;
	BMAP* bitmap;
} PANELMAP;


//=================================================================================================================================
//                                                                                                                               //
//                                                  STRUCKTURENPOINTER                                                           //
//                                                  """"""""""""""""""                                                           //
//                                                                                                                               //
//=================================================================================================================================
PANELMAP* mypanmap;

//=================================================================================================================================
//                                                                                                                               //
//                                                  STRUCKTURENFUNKTION                                                          //
//                                                  """""""""""""""""""                                                          //
//                                                                                                                               //
//=================================================================================================================================
PANELMAP* panelmapSetup(PANELMAP* inpanel)
{
	str_cpy(inpanel.name, "test");
	inpanel.bitmap = bmap_create(testobjekt);
}

//=================================================================================================================================
//                                                                                                                               //
//                                                   STRUCKTURENMEMORY                                                           //
//                                                   """""""""""""""""                                                           //
//                                                                                                                               //
//=================================================================================================================================
mypanmap = malloc(sizeof(PANELMAP));
panelmapSetup(mypanmap);



and this is called right after level loading in the main function:
Code:
level_load("leer.wmb");
	wait(3);
	
	vec_set(camera.x, vector(0,-250,500));
	vec_set(camera.pan, vector(90,-50,0));
	
	error("str_cpy(mypanmap.name, Weisser_Drachenreiter_1+4.tga);"); ///////////
	str_cpy(mypanmap.name, "Weisser_Drachenreiter_1+4.tga");
	error("mypanmap.bitmap = bmap_create(mypanmap.name);"); /////////////////////////////
	mypanmap.bitmap = bmap_create(mypanmap.name);
	
	error("PANEL* testerpanel erstellen"); //////////////////////////////////////////////
	pan_create("pos_x=300; pos_y=150; bmap = mypanmap.bitmap; flags = SHOW;", -10);
	
	
	error(mypanmap.name);



What i get? a Crash in main right after the first error-message.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<