NetTalk Central

Author Topic: NT 11.04 - both Websockets examples (Web82 / Desktop) not working  (Read 4904 times)

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Hello Bruce,

right after the webinar I started this Websockets example here, following your steps, but it does not work.

This is what I see in DebugView++:

[st] [netTalk][thread=3] SendError = 400 Bad request : Failed to accept key FileRequest=[index.htm]

[st] [netTalk][thread=3] NetSimple.ErrorTrap -34 Error sending data NetSimple.Send

[st] [netTalk][thread=3] Prompt::RectWidth :

When I closed the two clients, I get a GPF-message from Clarion itself:

Clarion Version : 11.0.0.13244
.NET Version         : 4.0.30319.42000
OS Version           : Microsoft Windows NT 6.2.9200.0
Current culture      : German (Germany) (de-DE)
Working Set Memory   : 218352kb
GC Heap Memory       : 29908kb


Unhandled exception
Exception Type: System.ArgumentException



Exception Type: System.ArgumentException

Exception thrown:
System.ArgumentException: Illegales Zeichen im Pfad.
   bei System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   bei System.IO.Path.GetFileName(String path)
   bei System.IO.FileSystemWatcher.MatchPattern(String relativePath)
   bei System.IO.FileSystemWatcher.NotifyFileSystemEventArgs(Int32 action, String name)
   bei System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   bei System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

##################################################

Then I tried the Web82 Example for websockets.

[st] [netTalk][thread=3] p_wexta= Title="Click here to sort by Mail Box Name"
[st] [netTalk][thread=3] p_wexta= Title="Click here to sort by Size Limit"
[st] [netTalk][thread=3] p_wexta= Title="Click here to sort by Forward Address"
[st] [netTalk][thread=3] p_wexta= Title="Click here to sort by Start Date"
[st] [netTalk][thread=5] NetSimple.ErrorTrap -34 Unable to Close connection NetSimple.CloseServerConnection
[st] [netTalk][thread=3] NetSimple.ErrorTrap -40 Error sending data NetSimple.Send
[st] [netTalk][thread=3] NetSimple.ErrorTrap -34 Unable to Close connection NetSimple.CloseServerConnection
[st] [netTalk][thread=3] SendError = 400 Bad request : Failed to accept key FileRequest=[index.htm]
[st] [netTalk][thread=3] NetSimple.ErrorTrap -40 Error sending data NetSimple.Send
[st] [netTalk][thread=3] NetSimple.ErrorTrap -34 Unable to Close connection NetSimple.CloseServerConnection
[st] [netTalk][thread=3] NetSimple.ErrorTrap -40 Error sending data NetSimple.Send
....

I added a file "index.htm" to the web-folder, but still the same errors.

And (btw) again the error when pressing the "Change" button.
Alert1. Record not found: (-2) Error 30: Entry Not Found from key MAI:PrimaryKey



Maybe someone could test and compare? TIA

NT 11.04 and all other stuff are the very recent releases.

Wolfgang
« Last Edit: November 30, 2018, 12:03:05 PM by Wolfgang Orth »

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: NT 11.04 - both Websockets examples (Web82 / Desktop) not working
« Reply #1 on: December 02, 2018, 06:30:28 AM »
Follow Up

I copied the working example from the machine with Nettalk 10 to the new computer, ran the EXE over there. Worked okay as expected.

Then I re-compiled this APP with Clarion 11 / Nettalk 11 and got the same errors.

To make sure that this is not machine-specific, I set up a new computer (actual hardware) with the latest Win 10.1809 Preview, Installed Clarion 11, all Nettalk plus xFiles etc stuff, repeated these steps with the same results (except those GPF I mentioned above).


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT 11.04 - both Websockets examples (Web82 / Desktop) not working
« Reply #2 on: December 03, 2018, 01:34:36 AM »
I wonder why you would get a GPF in .NET - since NetTalk does not use .NET at all I suspect that is completely unrelated to NetTalk and perhaps something completely different.

Have you got Cryptonite installed on your system?

cheers
Bruce

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: NT 11.04 - both Websockets examples (Web82 / Desktop) not working
« Reply #3 on: December 03, 2018, 03:52:33 AM »
Hello Bruce,
yes, I also think that it is unrelated. However, for completeness and confusions sake, I simply reported what happened.

Yes, Cryptonite 1.93 is installed.

Again, Web 82 compiled and ran okay under NT 10, same APP copied to NT 11 compiled okay, but did not work correct. The secret seems to be somewhere here: SendError = 400 Bad request : Failed to accept key FileRequest=[index.htm]

All too strange for a little mind like me.