Error in reaper_sws64.dll when loading binary project files #354
From Port.R...@gmail.com on August 22, 2011 00:34:12
Dear SWS developers,
I started developing my own project loading plugin for Reaper. As a template I took the m3u example from the SDK. I removed all the m3u relevant code from the LoadProject() method, which left me with the basic code creating an empty Reaper project. I compiled the plugin with VS2010 and ran it in Reaper 4.01. Using an ASCII file as a dummy project file, everything worked as expected.
Then I tried to load a dummy binary file. Reaper crashed with an unhandled exception and told me that the crash happened inside reaper_sws64.dll. I removed this DLL from Reaper's PlugIn directory and loading the binary file worked perfectly.
Since I'm not an expert on the SDK, I can only guess: Does the SWS extension have a kind of callback/hook registered to the LoadProject() method and tries to access/open the project file ? Does it assume that project files are non-binary ?
I'm using the latest release of the SWS extension (v2.1.0, August 9, 2011), Reaper 4.01, Win7 64bit.
Original issue: http://code.google.com/p/sws-extension/issues/detail?id=354
The text was updated successfully, but these errors were encountered:
From swstim on August 21, 2011 15:46:35
Hey there. Yeah, there's hooks for LoadProject in SWS, sounds like I'm choking on some binary data. There's some checks for bad project data but apparently not enough.
A project load extension needs to convert whatever format you're trying to load into reaper RPP format. If you haven't gotten that far I'm not too surprised you're getting crashing. I can look at the crash from my end if you want to send me what you have so far (DLL + binary)
From Port.R...@gmail.com on August 21, 2011 16:20:44
thanks for the quick reply.
I've attached my DLL, binary test file and the source code. I just wanted to try to get some audio data from the Edius 6 editing software via AAF into Reaper. After having written the code which extracts the info from the AAF file, I decided to work on the Reaper side of the chain. So far I have only written a Reaper plugin which does nothing (see Edius6Reader.cpp). But even with this empty plugin (reaper_edius6.dll) I encounter a crash when I try to load the file 'Test5.aaf'. Or do I have a mistake in my plugin ?
Attachment: Edius6Reader.cpp reaper_edius6.dll Test5.aaf
From swstim on August 22, 2011 22:29:40
v2.1.0 #5 is up here https://code.google.com/p/sws-extension/downloads/list Good luck with your project import plugin!