Hi` we recently switched to using Visual Studio .NET and now I get a crash inside Ogg Vorbis unless I recompile Ogg Vorbis itself with Visual Studio .NET. Are there any known issues like that? If possible I'd like to use the official binaries. -- Daniel, Epic Games Inc. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Nobody else using VS.NET? -- Daniel, Epic Games Inc.> -----Original Message----- > From: owner-vorbis@xiph.org [mailto:owner-vorbis@xiph.org]On Behalf Of > Daniel Vogel > Sent: Sunday, April 14, 2002 1:40 PM > To: Vorbis@Xiph. Org > Subject: [vorbis] Visual Studio .NET > > > Hi` > > we recently switched to using Visual Studio .NET and now I get a crash > inside Ogg Vorbis unless I recompile Ogg Vorbis itself with Visual Studio > .NET. Are there any known issues like that? If possible I'd like > to use the > official binaries. > > -- Daniel, Epic Games Inc. > > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. ><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
So, you're saying that the prepackaged Vorbis binaries for Win32 crash after you install VS.NET? Are you talking about Oggenc.exe, or the DLLs for inclusion in something like Unreal2? ----- Original Message ----- From: "Daniel Vogel" <vogel@epicgames.com> To: <vorbis@xiph.org> Cc: "Vorbis-Dev@Xiph. Org" <vorbis-dev@xiph.org> Sent: Tuesday, April 16, 2002 8:24 AM Subject: RE: [vorbis] Visual Studio .NET <p>> Nobody else using VS.NET?> > -- Daniel, Epic Games Inc. > > > -----Original Message----- > > From: owner-vorbis@xiph.org [mailto:owner-vorbis@xiph.org]On Behalf Of > > Daniel Vogel > > Sent: Sunday, April 14, 2002 1:40 PM > > To: Vorbis@Xiph. Org > > Subject: [vorbis] Visual Studio .NET > > > > > > Hi` > > > > we recently switched to using Visual Studio .NET and now I get a crash > > inside Ogg Vorbis unless I recompile Ogg Vorbis itself with VisualStudio> > .NET. Are there any known issues like that? If possible I'd like > > to use the > > official binaries. > > > > -- Daniel, Epic Games Inc. > > > > > > --- >8 ---- > > List archives: http://www.xiph.org/archives/ > > Ogg project homepage: http://www.xiph.org/ogg/ > > To unsubscribe from this list, send a message to'vorbis-request@xiph.org'> > containing only the word 'unsubscribe' in the body. No subject isneeded.> > Unsubscribe messages sent to the list will be ignored/filtered. > > > > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. ><p><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Check the project settings and find Struct Member Alignment. All the Ogg Vorbis precompiled runtimes are compiled with 8 byte alignment. If your projects are being compiled with another byte alignment, you will probably crash when linked to the runtimes. <opinion> In fact, the Ogg Vorbis sources *should* have some form of alignment specification around all the structures declared in the header files. Like #pragma pack(push, 8) (yes I know this form does not exist on all platforms however at least a comment should appear in the headers to make the preferred alignment known). I proposed this on the vorbis-dev list for the next release of the code. Of course, there is no guarantee that the dev team will incorporate this request. </opinion> Anyway, try this in your project and see if your results (crashes) change. John ----- Original Message ----- From: "Daniel Vogel" <vogel@epicgames.com> To: "Vorbis@Xiph. Org" <vorbis@xiph.org> Sent: Sunday, April 14, 2002 12:39 PM Subject: [vorbis] Visual Studio .NET <p>> Hi`> > we recently switched to using Visual Studio .NET and now I get a crash > inside Ogg Vorbis unless I recompile Ogg Vorbis itself with Visual Studio > .NET. Are there any known issues like that? If possible I'd like to usethe> official binaries. > > -- Daniel, Epic Games Inc. > > > --- >8 ---- > List archives: http://www.xiph.org/archives/ > Ogg project homepage: http://www.xiph.org/ogg/ > To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. > ><p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> Does windows really not have a global, OS-wide struct packing convention?I would think it's all compiler specific. Dunno if this helps, but this is something I've run into and solved without compiler or platform specific code (the exact same problem actually with 8 byte structure packing in VC). We solve it by making sure we pad out all our public structures to at least 8 bytes. You might even want to go to 16 or higher if that feels safer. So our structs always look something like: typedef struct EXAMPLE { float32 value0; int16 value1; int16 value2; int32 value3; char8 value4; char8 pad[3]; } EXAMPLE; So we've made sure EXAMPLE is padded out to 16 bytes. You just have to be careful that you know the sizes of the types in your structure, and that you've specified them in an order that makes sense. Now in the library code, you can do something like this before you use any structure, to ensure they are indeed padded correctly (things tend to change over time and break if you don't test). #define MIN_STRUCT_ALIGNMENT 8 assert(!(sizeof(EXAMPLE) % MIN_STRUCT_ALIGNMENT)); Maybe I'm missing something, but I would hope that would solve your problems. It certainly solved mine across at least 10 platforms or so. Thanks, Dave. <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'vorbis-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.