[Mono-dev] Quick questions/thoughts combined

Paolo Molaro lupus at ximian.com
Tue Aug 16 04:57:55 EDT 2005


On 08/12/05 Christopher Bergström wrote:
> b) Looking for a good/easy to install Forum software (that will work
> under Mono)  This is the best candidate I've found so far
> (http://www.yetanotherforum.net/) Progress or lack thereof can be seen
> here (http://www.themp3pool.com/forum/)
>     a. My first error seems to be looking for Kernel32.dll.  (Umm..
> Anyone got the source to this file so I can put it in my mono/1.0
> directory ;)
> 
> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Kernel32.dll
> in (wrapper managed-to-native) yaf.classes.HiPerfTimer:QueryPerformanceFrequency (long&)
> in <0x00036> yaf.classes.HiPerfTimer:.ctor (Boolean bStart)
> 
> I think I remember seeing something in the dev list about QueryPerformanceFrequency.. Is this a matter of recompiling yaf.dll under mono or removing the offending code?

You can write the trivial C code that uses gettimeofday(), compile it to
a shared library and either name it libkernel32.so or another name of
your choice and then add a dllmap entry to redirect calls for
QueryPerformanceFrequency (and likely QueryPerformanceCounter) to the
new shared library (see the mono manpage for details).

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list