Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » 64bit pointers
64bit pointers [message #10398] Thu, 05 July 2007 23:20 Go to next message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

This hangs IDE a lot on BSD x64

void *MemoryAlloc(size_t sz) with
sz = 50
k =3
l = (Upp::FreeLink *) 0x8056725e0

void *CheckFree(void *p, int k)
{
..................
#ifdef CPU_64
FreeCheck((dword *)p + 2, (Ksz(k) >> 2) - 2);
#else
FreeCheck((dword *)p + 1, (Ksz(k) >> 2) - 1);
#endif


void FreeCheck(dword *ptr, int count)
{
while(count--)
if(*ptr++ != 0x65657246)
HeapPanic("Writes to freed blocks detected", ptr, count);
}


First invoked from here

String TopWindow::GetDesc() const
10 {
11 return title.ToString();
12 }
Re: 64bit pointers [message #10400 is a reply to message #10398] Fri, 06 July 2007 10:41 Go to previous messageGo to next message
arturbac is currently offline  arturbac
Messages: 91
Registered: May 2007
Location: Reda, Poland
Member

Btw in release mode there is no problem.
Re: 64bit pointers [message #10428 is a reply to message #10400] Mon, 09 July 2007 09:31 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
arturbac wrote on Fri, 06 July 2007 04:41

Btw in release mode there is no problem.


Hm, this is VERY interesting, as perhaps this could be related to problems with MacOS X carbon (which seems to fail there too).

These routines are debug mode heap consistency checks.... (therefore no checks in release, no crashes). For some reason it seems that something is doing bad things to the memory, most likely writting to free blocks.

Mirek
Previous Topic: inline UPP::int64 abs(UPP::int64 x)
Next Topic: asm int 3, abort();
Goto Forum:
  


Current Time: Fri Mar 29 05:57:18 CET 2024

Total time taken to generate the page: 0.00950 seconds