Problems with DWDataReaderLib64 on Windows 8

  • Developers
  • Problems with DWDataReaderLib64 on Windows 8
Henrik Johansson

Posted on 12.03.2013 21:46
Hi, I have not been able to successfully use DWDataReaderLib64.dll on Windows 8 64bit. I have tried to use both my own C# code that uses DWDataReaderLib64 as well as the Win32&64 C code example provided with the dll. Both these codes run fine on Windows 7 64bit, but not on Windows 8. I can however use the 32 bit DWDataReaderLib on Windows 8 if I compile my C# code (or the Win32&64 C code example) as a 32 bit application. With 64 bit code I can load DWDataReaderLib64.dll and run DWInit (it returns DWSTAT_OK). But when I try to open a data file with DWOpenDataFile it populates the DWFileInfo struct with nonsense, even though the function returns DWSTAT_OK. The nonsense consists of extremely large or small values, with exponents of a few hundreds, or, just now when I tried it, it returned only zeros. It is thus not consistent in its faulty returned values. It can (sometimes) write a setup xml file, but it contains faulty xml code. It does return the correct dll version (I have tried with 3.0.0.7, 3.0.0.14, and 3.0.0.15B). Storing type is sometimes returned correctly, and sometimes returned as, e.g., 230338032. I am unable to get much further than that before I get nothing back from the dll functions. I have tried everything I can think of but have been unable to get DWDataReaderLib64.dll working correctly on Windows 8. The only thing that noticeably differs between the Windows 8 machine and Windows 7 machine I have tried this on is that the Windows 8 machine does not have Dewesoft installed. But this should not matter, right? At lease the DWDataReaderLib64.dll does not seem to be dependent on anything that comes with Dewesoft. Can you verify whether or not DWDataReaderLib64.dll should work correctly on Windows 8 64bit? I hope you can help me sort this out. Best regards, Henrik Johanson
Henrik Johansson

Posted on 21.03.2013 16:55
In case anyone is experiencing the same problem and is curious for an answer, the problem seems to be related to compiler version and Windows version. Using the Win42&64 C code example and help from DEWESoft staff via e-mail, we were able to conclude that the 64 bit C code example that calls on DWDataReaderLib64.dll fails if the code is compiled using the Visual Studio 2012 compiler (v110) and run on Windows 8. But the same compiled code works fine on Windows 7. If the code is compiled using the Visual Studio 2010 compiler (v100) it works fine on both Windows 7 and 8. Go figure. In any case, the problem does not seem to be in the DWDataReaderLib64.dll itself.
Login to reply to this topic. If you don't have account yet, you can signup for free account .