Author Topic: NWNX² Chat PlugIn crashes server on Win7 Pro Machine  (Read 1367 times)

Legacy_dunahan_schwerterkueste_de

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
NWNX² Chat PlugIn crashes server on Win7 Pro Machine
« on: September 18, 2014, 05:56:49 pm »


               

Hello Folks,


 


got some probs I got partly cleaned. But at first...


 


Had to set up our server due security probs to Win7 Pro (x86). Added some redistributables for all needed situations, but when I start NWNX² with nwnx_chat.dll (vers. 0.3.4 - win32) and after login with some twaddling, the nwserver.exe crashes. Without this plugin, everything is fine...


 


Thought I could do some compiling in MS-VS-2010 to compile the ressources from that previous rar-file (acquired from nwnx.org better said from virusman.ru...) but got a problem with madCHook.h (209) named <error C2733>. My C++ isn't that good, so I couldn't clear that prob...


 



   Spoiler
   


 


The other prob I had (error C4996), was cleared as I used the two following lines in the stdafx.h:



   Spoiler
   


 


Could someone help me about the prob with the CreateRemoteThreadEx to get it usable?


 


Thanks in advance!


 


Dunahan



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
NWNX² Chat PlugIn crashes server on Win7 Pro Machine
« Reply #1 on: September 19, 2014, 08:17:34 am »


               

If this is for Win32 then I think you may be able to comment out the definition of 


madCHookApi(HANDLE) CreateRemoteThreadEx(
  HANDLE                 hProcess,
  LPSECURITY_ATTRIBUTES  lpThreadAttributes,
  DWORD                  dwStackSize,
  LPTHREAD_START_ROUTINE lpStartAddress,
  LPVOID                 lpParameter,
  DWORD                  dwCreationFlags,
  LPDWORD                lpThreadId
);


 


As a version of it is defined within Windows already.


 


The error message you are getting is basically saying that you cannot overload this method - eg: create a duplicate of it.


Does the error vanish when you comment it out?



               
               

               
            

Legacy_dunahan_schwerterkueste_de

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
NWNX² Chat PlugIn crashes server on Win7 Pro Machine
« Reply #2 on: September 19, 2014, 02:50:47 pm »


               

Wonderful Baaleos! That worked fine!


I thought this routine would be nessessary and is no where else to find, but was so simple to solve...


 


Okay, finally it worked, but now I'm having another prob with the ressources to compile to VS2010... The error says, that some file named <afxres.h> seems to be included, but could not found. RC1015 is the code to that error. Done some Auntie Google Tasks and tried to solve it by entering #include "windows.h" like the found solutions ment, but it produces more errors named LNK2001...


 


 


Auntie Edith:


Found out, that afflicted2rpg had a newer version of nwnx_chat (4.0.1), which seems to be for Win7. I'll give it a try...


By the way, here's the link: http://www.nwnx.org/...opic.php?t=2109



               
               

               
            

Legacy_dunahan_schwerterkueste_de

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
NWNX² Chat PlugIn crashes server on Win7 Pro Machine
« Reply #3 on: September 21, 2014, 06:39:45 pm »


               

Okay, that PlugIn does what it shoud does. But, for another PlugIn, or better the sources from Terra777 from nwnx.org, which I wanted to compile for Win7, the same errors occur...



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
NWNX² Chat PlugIn crashes server on Win7 Pro Machine
« Reply #4 on: September 22, 2014, 07:28:59 pm »


               Can you post the full error message.
I know you are getting LNK2001 error- but depending on what it is getting it on (file wise) - it may require different solutions.
               
               

               
            

Legacy_dunahan_schwerterkueste_de

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
NWNX² Chat PlugIn crashes server on Win7 Pro Machine
« Reply #5 on: September 28, 2014, 02:23:50 pm »


               

Sorry for that delay, I hadn't the time to get back to this '<img'>


Okay here's the first error message of the compiler:


 



   Spoiler
   


 


If I add #include "windows.h" to NWNXChat.rc I got the following errors...



   Spoiler
   


 


Due they are in German, I hope you know what to read to get what you need ':unsure:'