Critical Error: Can't bind to native class

Let us help you solve any problems you might have with TNM. This forum should remain spoiler-free - if your problem is spoilery in nature, please post in the forum above.

Moderator: TNM Team

Forum rules
Please only use this forum for problems of a technical nature. If you're stuck somewhere in the game, post in the TNM Spoiler Zone forum. If the game crashes, you can't load a savegame, or something just plain isn't working, this is the place to post.
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Critical Error: Can't bind to native class

Post by Jonas »

If you get a Critical Error saying "Can't bind to native class TNMNative.tnmNativeHookObject" followed by a bunch of nonsense, you'll want to download and install the Visual C++ redistributable from Microsoft's download site here:

http://www.microsoft.com/downloads/deta ... 02b2af5fc2

This is in the manual too, but I thought I might as well mirror it here. Most people don't seem to get this issue but a good 20-25% of players apparently do. Installing this redist package is guaranteed to fix it :)

UPDATE: Make sure the package installs correctly, it can be tricky. If you can't get it working right away, try downloading it again.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
deuxhero
UNATCO
Posts: 208
Joined: Thu Feb 16, 2006 11:01 pm

Re: Critical Error: Can't bind to native class

Post by deuxhero »

first thing google lists my *^3... completly differnt page...
Bokaj
Mole Person
Posts: 7
Joined: Sun Mar 15, 2009 5:33 am

Re: Critical Error: Can't bind to native class

Post by Bokaj »

Hi,

I get this error, but I don't have a 64 bit version of Windows. I have XP with Service Pack 2. Anyway, I've tried downloading the Visual C++ redistributable as suggested. I think this is installing although it doesn't give any indication that the installation has been successful. And I still get the same error. I have the GOTY edition of Deus Ex which I understand is patched up to the latest version. Or do I maybe there is a more recent patch?
User avatar
Kee715
Illuminati
Posts: 1047
Joined: Sat Nov 29, 2008 7:15 pm

Re: Critical Error: Can't bind to native class

Post by Kee715 »

Some versions (Mine (unfortunately) included) did not have the latest patch, Google "Deus Ex v1112fm" patch and download it from somewhere.
Bokaj
Mole Person
Posts: 7
Joined: Sun Mar 15, 2009 5:33 am

Re: Critical Error: Can't bind to native class

Post by Bokaj »

Well, it seems it was the Visual C++ redistributable not installing properly. I tried installing it again and got TNM working. Looks great so far.
HungryBoar
Mole Person
Posts: 5
Joined: Sun Mar 15, 2009 12:49 pm

Re: Critical Error: Can't bind to native class

Post by HungryBoar »

Same problem as Bokaj... I tried to install the vcredist_x86.exe thing, but I still get the same result. I also tried the lastest patch for Deus Ex. Any other suggestions? And any way to claim on that guarantee?
HungryBoar
Mole Person
Posts: 5
Joined: Sun Mar 15, 2009 12:49 pm

Re: Critical Error: Can't bind to native class

Post by HungryBoar »

Never mind, it didn't install (the microsoft download) properly. I had to download it again for it to work...
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Re: Critical Error: Can't bind to native class

Post by Jonas »

Glad you guys got it working. I'm gonna sticky this.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
Jcelios
MJ12
Posts: 344
Joined: Mon Jul 14, 2008 8:13 am
Contact:

Re: Critical Error: Can't bind to native class

Post by Jcelios »

Thanks this fixed it for me also.
itsalladream
Mole Person
Posts: 1
Joined: Thu Feb 26, 2009 12:48 am

Re: Critical Error: Can't bind to native class

Post by itsalladream »

Thanks, about to try it now.
User avatar
Christian
Thug
Posts: 31
Joined: Sun Jan 01, 2006 5:43 pm
Location: Denmark

Re: Critical Error: Can't bind to native class

Post by Christian »

The game works for me now, thanks! :)
User avatar
Jetsetlemming
Illuminati
Posts: 2398
Joined: Mon Sep 18, 2006 9:11 pm
Contact:

Re: Critical Error: Can't bind to native class

Post by Jetsetlemming »

Does this also make Deus Ex not be able to run maximized? :-k
Image
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Re: Critical Error: Can't bind to native class

Post by Jonas »

...no.

The renderer might do that I guess. Make sure you use your .ini to set your resolution, and check for the line StartupFullscreen=True. If it says StartupFullscreen=False instead, change it and see if that helps.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
User avatar
Jetsetlemming
Illuminati
Posts: 2398
Joined: Mon Sep 18, 2006 9:11 pm
Contact:

Re: Critical Error: Can't bind to native class

Post by Jetsetlemming »

I can manually force the window resolution by altering the ini settings, but it won't run fullscreen, and the ingame graphics still look like software rendering. :? I dunno what's wrong. He's had DX installed successfully on this computer multiple times in the past, I had almost the same exact hardware before my video card died and I had no problems with DX, I know the drivers are installed right, everything else's running fine.... :(
Image
User avatar
Jonas
Off Topic Productions
Off Topic Productions
Posts: 14224
Joined: Sat Apr 24, 2004 9:21 pm
Location: Hafnia

Re: Critical Error: Can't bind to native class

Post by Jonas »

Can you find this in TNM.ini?

GameRenderDevice=OpenGLDrv.OpenGLRenderDevice

If so, try changing it to GameRenderDevice=D3DDrv.D3DrenderDevice and see if that helps.
Jonas Wæver
Chief Poking Manager of TNM

I've made some videogames:
Expeditions: Rome
Expeditions: Viking
Expeditions: Conquistador
Clandestine
Post Reply