SmartQuant Discussion
http://www.smartquant.com/forums/

Problems with windows dll's...
http://www.smartquant.com/forums/viewtopic.php?f=44&t=10336
Page 1 of 1

Author:  ccguys [ Sat Sep 15, 2012 7:44 pm ]
Post subject:  Problems with windows dll's...

Possible reasons why these two lines don't build in OQ?

using System.Windows.Forms;
using System.Data;

Author:  Dr. Anton Fokin [ Sat Sep 15, 2012 8:01 pm ]
Post subject:  Re: Problems with windows dll's...

Hi,

I guess you should add corresponding references to Tools->Options->Projects and Solutions->Build

Regards,
Anton

Author:  ccguys [ Sun Sep 16, 2012 3:06 pm ]
Post subject:  Re: Problems with windows dll's...

Indeed :wink: Turned out to be a system file indexation problem. The files were actually present in the bin folder, but for some reason, oq didn't see them. Fix=use regedit to open HKEY_LOCAL_MACHINE then ctrl-f key combo to search for .dll in question (ex: SYSTEM.DLL) this will tell you which one win7 is using (not so obvious otherwise). Use windows explorer to copy it to oq bin folder (on my machine="C:\Program Files (x86)\SmartQuant Ltd\OpenQuant 2\Bin\System.dll". But mostly, one needs (that's how i solved this prob. anyway...) to grapple with file index options (configuration panel) to make sure it's indexing system files (which by default it doesn't...) which makes the dll visible to oq (is this just my machine or is this normal?). Was wondering, final detail on this, what effect does adding a dll to the build have on memory usage by oq. Especially the case where a dll is loaded, but in a given solution is not invoked by the 'using' c# keyword? :D

Author:  Dr. Anton Fokin [ Sun Sep 16, 2012 7:19 pm ]
Post subject:  Re: Problems with windows dll's...

Hi, I am not really an expert but I think you don't need to copy dlls such as system.dll and other core .net dlls to you local folder since they are in GAC. You just reference them and that's all.

Author:  ccguys [ Sat Sep 22, 2012 12:49 pm ]
Post subject:  Re: Problems with windows dll's...

Perhaps it's my pc, but the above procedure was necessary and effective "chez moi". Assuming GAC=Global Assembly Cache, can some example be furnished to help document this part of OQ/windows functionality? Also, what about impact on memory?

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/