[_impl_KMemCacheFree] *** Warning: Freeing buffer to foreign

This forum is for general developer support questions.

[_impl_KMemCacheFree] *** Warning: Freeing buffer to foreign

Postby javierdlr » Sat Jun 25, 2016 11:59 am

Is it a bug in my snes9xgui code or....

[_impl_KMemCacheFree] *** Warning: Freeing buffer to foreign cache
[_impl_KMemCacheFree] ** Warning: Task snes9xGUI.debug freeing object 0x609B5F98 to wrong cache primary heap emu cache 4928 (not compact, hash 27)
[_impl_KMemCacheFree] *** Warning: Freeing buffer to foreign cache
[_impl_KMemCacheFree] ** Warning: Task snes9xGUI.debug freeing object 0x5D526338 to wrong cache primary heap emu cache 4928 (not compact, hash 29)
[_impl_KMemCacheFree] *** Warning: Freeing buffer to foreign cache
[_impl_KMemCacheFree] ** Warning: Task snes9xGUI.debug freeing object 0x495D91C8 to wrong cache primary heap emu cache 4928 (not compact, hash 14)


Code: Select all
...
Object *newobj = NULL;
...
// Create/set new preview (, dispose old), "reassign" new and refresh window/pagetab
if( (newobj=IIntuition->NewObject(BitMapClass, NULL, //"bitmap.image",
                                  IA_Scalable,TRUE, BITMAP_Screen,screen,
                                  BITMAP_SourceFile,filename, TAG_DONE)) )
{
 ILayout->SetPageGadgetAttrs(GAD(OID_PREVIEW_BTN), OBJ(OID_GENERAL), pw,
                             NULL, BUTTON_RenderImage,newobj, TAG_DONE); // pagetab
 IIntuition->DisposeObject( OBJ(OID_PREVIEW_IMG) );
 OBJ(OID_PREVIEW_IMG) = newobj;
}
else { ... }
ILayout->RefreshPageGadget(GAD(OID_PREVIEW_BTN), OBJ(OID_GENERAL), pw, NULL);
...



TIA

--
AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 361
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: [_impl_KMemCacheFree] *** Warning: Freeing buffer to for

Postby TSK » Sun Jul 03, 2016 10:44 pm

I asked the kernel guy what such error message from another software means and he said it's usually a buffer overrun/underrun.
Keep the party going !
User avatar
TSK
Beta Tester
Beta Tester
 
Posts: 215
Joined: Mon Dec 20, 2010 2:15 pm
Location: Home land of Santa C., sauna, sisu and salmiakki

Re: [_impl_KMemCacheFree] *** Warning: Freeing buffer to for

Postby javierdlr » Mon Jul 04, 2016 7:23 pm

TSK wrote:I asked the kernel guy what such error message from another software means and he said it's usually a buffer overrun/underrun.


ok. thx. But is problem of my c code (solved by raising stack value), or is it some internal "problem" (exec, intuition, classes,...)
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 361
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain

Re: [_impl_KMemCacheFree] *** Warning: Freeing buffer to for

Postby TSK » Wed Jul 06, 2016 5:13 pm

Mr. Frieden said the kernel doesn't have such problems so the problem must be on an application side. Your code in the first post looks good. Are you sure that code part generates those error messages and it's not some other part of the code causing it ?
Keep the party going !
User avatar
TSK
Beta Tester
Beta Tester
 
Posts: 215
Joined: Mon Dec 20, 2010 2:15 pm
Location: Home land of Santa C., sauna, sisu and salmiakki

Re: [_impl_KMemCacheFree] *** Warning: Freeing buf..(SOLVED)

Postby javierdlr » Fri Jul 08, 2016 2:07 pm

TSK wrote:Mr. Frieden said the kernel doesn't have such problems so the problem must be on an application side. Your code in the first post looks good. Are you sure that code part generates those error messages and it's not some other part of the code causing it ?


thx, will try to do some more tests (or maybe a simplifly the gui and see what happens.)

EDIT: find culprit, was allocating/freeing unneeded variables/objects, once removed such allocate()/free() no more warnings. THX
User avatar
javierdlr
Beta Tester
Beta Tester
 
Posts: 361
Joined: Sun Jun 19, 2011 11:13 pm
Location: Donostia (GUIPUZCOA) - Spain


Return to General Developer Support

Who is online

Users browsing this forum: No registered users and 2 guests