On Jul 26, 2006, at 2:23 PM, Peter K. Stys wrote:
Just an update for the group. Some may recall my agony trying to
chase down a random crash in my app (msg excerpted below): in a
nutshell I kept getting frequent crashes in a single function
during a m.ushort access. The memblock was malloc'd (reasons
below). When I changed back to allocating via NewMemoryblock,
after extensive use, no more crashes.
My conclusion: be careful with malloc in RB. For some reason,
under certain rare circumstances, it will bite you.
Are you checking for NULL on the variable after the call to malloc?
It will fail if there is not enough memory or not enough continuous
memory. That might be the reason.
I wish I understood why. Aaron?
I don't believe that Aaron reads this list any more. Better would be
to post your question on the REALbasic forums.
_______________________________________________
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>