PDA

View Full Version : Error when free memory



SagoO
04-03-2011, 10:09 AM
Hi,

I have a problem which annoy me long time ago. I found that my data in the texture will not change even though I sent different data in it. But now I only realise that my data on the CPU never change even though I change it. So, I want to delete the data. But, I have these error when I want to free the data.


*** glibc detected *** ./try3: munmap_chunk(): invalid pointer: 0xbf97656c ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xb7707591]
/lib/tls/i686/cmov/libc.so.6(+0x6c80e)[0xb770880e]
./try3[0x8049ea7]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb76b2bd6]
./try3[0x80491b1]
======= Memory map: ========
08048000-0804b000 r-xp 00000000 08:03 26801 /media/Data/My Document/FYP/Implementation/try3
0804b000-0804c000 r--p 00002000 08:03 26801 /media/Data/My Document/FYP/Implementation/try3
0804c000-0804d000 rw-p 00003000 08:03 26801 /media/Data/My Document/FYP/Implementation/try3
09faa000-0a338000 rw-p 00000000 00:00 0 [heap]
b6af7000-b6b23000 rw-p 00000000 00:00 0
b6b23000-b6b7b000 rw-s 00000000 00:04 5931036 /SYSV00000000 (deleted)
b6b7b000-b7039000 rw-p 00000000 00:00 0
b7039000-b703c000 r-xp 00000000 08:05 269984 /lib/libuuid.so.1.3.0
b703c000-b703d000 r--p 00002000 08:05 269984 /lib/libuuid.so.1.3.0Aborted


Cant understand what is those about....

mhagain
04-03-2011, 10:26 AM
Sorry but this is basic C/C++ programming, nothing really to do with OpenGL at all.

SagoO
04-03-2011, 10:54 AM
Nvm...Solve already.Is my mistake. =.=