This is probably simple, but I need to get the address of a malloc'd memblock:
dim m as MemoryBlock Declare Function malloc lib "/usr/lib/libc.dylib" ( size as Integer ) as Ptr m = malloc(1000) n = integer(m) <= error In C one would just coerce m to an integer, but RB complains. I need this because the crash log reports a bad address access as a 0x... hex number and I want to see if m is the culprit by looking where it lives in memory in relation to the offending address reported by the crash log. Has anyone had problems with malloc'd memblocks in RB? I have a very obscure intermittent bug that I fear has nothing to do with my own code. Thx, Peter. -- ------------------------------------------------------------------------------- Peter K. Stys, MD Professor of Medicine(Neurology), Senior Scientist Ottawa Health Research Institute, Div. of Neuroscience Ottawa Hospital / University of Ottawa Ontario, CANADA tel: (613)761-5444 fax: (613)761-5330 http://www.ohri.ca/profiles/stys.asp ------------------------------------------------------------------------------- _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
