aqsisrc path wrong when using aqsis via dll
Brought to you by:
ltatkinson,
pgregory
As detailed on the forums: http://community.aqsis.org/2010/01/running-aqsis-background.html
It looks like aqsis detects the aqsisrc config path incorrectly when it's loaded as a DLL. I think this should be pretty easy to fix, I'm guessing we just need to put the correct DLL module handle into GetModuleFileName() instead of NULL for the current executable. Some discussion about how best to get the right module handle can be found here:
http://stackoverflow.com/questions/557081/how-do-i-get-the-hmodule-for-the-currently-executing-code
Anonymous
Looking at the original forum post, I'm not certain that the issue is as described here. The OP clearly states that they are "using a C# dll to run the aqsis.exe with the file location to render", not linking in the aqsis.dll.
While this may still be an issue, I think it's important to get the exact details of the problem from the OP before any work is done on this, it could be a different bug.
Hmm, the original post isn't very clearcut it's true. I posted to the forum for clarification, but I'd be surprised if we get any immediate feedback this way :-(
Even if the original problem is different, I think the issue I identified could still be a problem...
Fixed by commit [893a58]
Related
Commit: [893a58]