This site is no longer active and is available for archival purposes only. Registration and login is disabled.

CreateSurface problem


CreateSurface problem

Postby Eric_Knapper » May 5, 2004 @ 11:21am

I've got a problem with a strcuture being overwritten during a CreateSurface call. I have a structure containing 6 elements (all DWORD types) which is then used to create an array of that structure of 50 elements declared in CMyApplication.

In CMyApplication::InitInstance I call a function to populate the array of structures with all the startup data that I need and at this point everything is fine. But in CMyApplication::CreateSysMemSurfaces when I create my various surfaces the last 4 elements of the last item in the array have there values overwritten. I create three surfaces in this section and it's not always the same CreateSurface call that causes the problem.

Any idea's what going wrong?, I'm using GapiDraw v3.0.

Thanks
Eric.
Eric_Knapper
 


Return to GapiDraw


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum