---------------------------
WED
---------------------------
Crash in 'C:\Program Files (x86)\GStudio7\wed_plugins\si_AyarYukleyici.dll'
---------------------------
OK
---------------------------

this is err message.



i think String2 pointer has no memory area.
but if i alloc memory for String2,
in this case code runs but notting changed
its mean String2 not change.


////////////////
void komut_isle(int id,OBJECTINFO *oi)
{
//material ayarlama, şimdilik sadece bu var
if (komutlar[id].komut_id==1)
{
CObjEditInterface *oei=gp_WedInterface->object_GetEditInterface();

MODELINFO mi;
oei->obje_GetInfo (&mi);
strncpy(mi.String1,komutlar[id].komut_data,30);
mi.String2= new char[31]; //alloc memory for String2
strcpy(mi.String2,"ddd"); //this time not crash in this line but String2 not set
}
}
///////////////

thankyou for your time.