Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login
    1. Home
    2. thomasmfields
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    thomasmfields

    @thomasmfields

    0
    Reputation
    5
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    thomasmfields Unfollow Follow

    Latest posts made by thomasmfields

    • RE: Crash in ReadChunk()

      Hi Jens,

      That fix works for us. This is excellent. Thank you very much.

      Regards,
      Tom

      posted in Cineware SDK
      T
      thomasmfields
    • RE: Crash in ReadChunk()

      Hi Jens,

      I get the same error stack when I do the following:

      cineware::Filename myFile("model loop 7.c4d");
      cineware::BaseDocument *baseDoc = LoadDocument(myFile, cineware::SCENEFILTER::SCENEFILTER_OBJECTS | cineware::SCENEFILTER::SCENEFILTER_MATERIALS);

      I load the file into memory using my own file stream API, which is used successfully elsewhere and with other c4d files. I'm using ReadFile() and GetFileSizeEx()

      Regards,
      Tom

      posted in Cineware SDK
      T
      thomasmfields
    • RE: Crash in ReadChunk()

      Hi Jana,

      I'd like it not to crash, please. My code looks like this:

      fn.SetMemoryReadMode(data, size); // The contents of the file are in "data".
      cineware::AlienBaseDocument *c4dDoc = NewObj(cineware::AlienBaseDocument);
      cineware::HyperFile *c4dFile = NewObj(cineware::HyperFile);
      if (c4dDoc && c4dFile)
      {
      	if (c4dFile->Open(DOC_IDENT, fn, cineware::FILEOPEN_READ))
      	{
      		if (c4dDoc->ReadObject(c4dFile, true))
      		{
      		}
      	}
      }
      

      Are you able to reproduce the issue?

      Regards,
      Tom

      posted in Cineware SDK
      T
      thomasmfields
    • Crash in ReadChunk()

      Hi there,

      Using cineware SDK v22.008 (VS2013 libs), I'm getting a crash when trying to process the file attached. The crash stack is:

       	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadObject(class cineware::HyperFile *,bool)	Unknown
       	FwdFX_d.fx!cineware::MoGraphFractureVoronoiObject::Read(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::BaseObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
       	FwdFX_d.fx!cineware::RootObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadObject(class cineware::HyperFile *,bool)	Unknown
       	FwdFX_d.fx!cineware::BaseObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
       	FwdFX_d.fx!cineware::RootObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
       	FwdFX_d.fx!cineware::RootList2D::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::RootObject::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
       	FwdFX_d.fx!cineware::BaseDocument::HandleSubChunk(class cineware::HyperFile *,int,int)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadChunk(class cineware::HyperFile *,bool,bool)	Unknown
       	FwdFX_d.fx!cineware::PrivateChunk::ReadObject(class cineware::HyperFile *,bool)	Unknown
      

      and the log contains:

      First-chance exception at 0x000000001F5BDA64 (FwdFX_d.fx) in FX_d.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
      

      Any clues as to what is going wrong here and how I can fix it?

      The file is here: model loop 7.c4d

      Regards,
      Tom

      posted in Cineware SDK c++ windows
      T
      thomasmfields