Unknow problem

Everything else that doesn't fall into one of the other PB categories.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Unknow problem

Post 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...
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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:
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post 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?
El_Choni
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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...
Post Reply