Jump to content
  • Advertisement
Sign in to follow this  
sepul

Parsing X file from memory Fails !!!

This topic is 4506 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to parse an X file from memory, but when I reach this line...
hr = file->CreateEnumObject( xdata, D3DXF_FILELOAD_FROMMEMORY, &objEnum );
It throws unknown exception (maybe bad access to memory), "xdata" is a buffer filled from file data and it is valid and everything else, cuz when I dump the contents of the xdata into a file and parse it again with D3XF_FILELOAD_FROMFILE falg, it's ok. does anyone tried this ? thanks [Edited by - sepul on January 20, 2006 2:04:37 PM]

Share this post


Link to post
Share on other sites
Advertisement
I need to extract Frame, animation and other stuff, ...
the point is that I think the D3DX API CreateEnumObject may have bugs/problems.
in the SDK help, it says if you want to load the file from memory just pass the pointer to the buffer and set the flag (D3DXF_FILELOAD_FROMMEMORY), but how can the procedure know the size of the buffer without getting it's size ?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!