#399 aqsisrc path wrong when using aqsis via dll

fatal/crash
closed
nobody
general (168)
5
2014-07-11
2010-02-02
No

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

Discussion

  • Paul Gregory

    Paul Gregory - 2010-10-18

    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.

     
  • Chris Foster

    Chris Foster - 2010-10-19

    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...

     
  • Alistair Leslie-Hughes

    Fixed by commit [893a58]

     

    Related

    Commit: [893a58]

  • Alistair Leslie-Hughes

    • status: open --> closed
     

Anonymous
Anonymous

Cancel  Add attachments