Page 1 of 1

Unknow problem

Posted: Sat May 22, 2004 8:55 pm
by Polo
Hi ! I have a *little* big problem with one of my project : it's an opengl stuff which use really often heap memory function, all the vertices, opengl stuffs are stored by these function in the memory, and are used to render. My problem is that my project works well on WindowsXP, and don't work with Windows98 on another computer. I think it has something to do with the memory functions, but I cant be sure, and I have trouble to see the problem since it works on WindowsXP.

When I say, it works/doesn't work, I mean, on WinXP there is something rendered (I can get the vertices previously stored in memory), and on Win98, there's no error message, the program is running, OpenGl is initialized, but there's nothing rendered (when I try to do a peek on the memory to get vertex infos, it always return 0...)

Of course, I can't provide the code, it's 1000 lines, so...
it would be great if someone has an idea, or has experienced a problem like this before, coz i'm a little bit lost with that : a program who runs well on a computer and don't on another...

Posted: Sat May 22, 2004 9:26 pm
by Polo
and... i think the problem is caused by the reallocatememory function. When I do a reallocate... it doesn't seem to reallocate the memory...

But the reallocatememory function does work in a simple example file. I can't understand now :cry:

Posted: Sun May 23, 2004 1:43 am
by El_Choni
Forgive me if you already knew this: ReAllocateMemory() can change the memory pointer (new one is the one returned). Could the problem be there?

Posted: Sun May 23, 2004 9:30 am
by Polo
thanx, but that's not the problem : i already use :
pointer=reallocatememory(pointer,size)
but the thing that lost me is that it does work on my computer, but don't on another which has win98...