Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Win32 coop error (dynamic STLport)  (Read 1261 times)

Mr. Awesome

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Win32 coop error (dynamic STLport)
« on: June 13, 2006, 01:07:43 PM »

After building OIS successfully, I tried out some of the demos.  However, after about 2 seconds, both demos crashed with the error: "Win32Keyboard::Win32Keyboard >> coop error!"  I'm using the STLport dlls for the demos (which means that I had to go into project options and change OIS_static_d to OIS_d).  Does anyone know what could be causing this problem?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Win32 coop error (dynamic STLport)
« Reply #1 on: June 13, 2006, 07:58:03 PM »

First, I don't really see how using StlPort makes you have to link against the dll version of OIS as opposed to the static lib. If you are using StlPort in your app, however, you will need to build OIS with StlPort (and, if you are building your app in debug and using Ogre you probably want to define _STLP_DEBUG in debug build - for all projrects).

You don't mention what compiler you are using. Do you really need stlport? Sounds like a memory corruption problem possibly, though I need more information.
Logged

Mr. Awesome

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Win32 coop error (dynamic STLport)
« Reply #2 on: June 13, 2006, 10:01:05 PM »

Sorry, I forgot to mention that I'm using gcc 3.4.5 with Ogre, so I have to use STLport.  When I built with the static libs, I got all kinds of compile errors involving things in the stlpd_std:: namespace.  These errors go away when I link to the dll, but I also get the exception thrown.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Win32 coop error (dynamic STLport)
« Reply #3 on: June 13, 2006, 11:44:34 PM »

I know nfz got the OIS dll building and working fine with Ogre (I assume your using mingw + codeblocks). I think he updated the download dependencies for Ogre eihort. You should check the wiki there or the ogre sourceofrge file list for the new depends. As I cannot help much with mingw + codeblocks. Anyway, that exception could be caused from in invalid window handle. i suggest you update cvs, and rebuild OIS.. It at leasst will let you know if you passed in a valid handle. Besides that, barring any random problems.. The only reason I can think of that DX method failing would be you have no keyboard (but, I bet you do :)).
Logged

nfz

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 2
    • View Profile
Win32 coop error (dynamic STLport)
« Reply #4 on: July 01, 2006, 05:47:46 PM »

I have sent pjcast updated CB project files for OIS.  I tested all the demos with both the static lib of ois and the dll and both work with no problems when built with the new project files using MinGW (gcc 3.4.5) + STLPort 5.0.2.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Win32 coop error (dynamic STLport)
« Reply #5 on: July 01, 2006, 06:48:18 PM »

Thanks again nfz :)

I have committed the new CodeBlock files for Win32. I don't expect any issues, so I will be releasing a new bugfix release tomorrow for OIS.
Logged