I don't need the "_cdecall" statement because .NET provides Interop Assemblies in order to access them like any other library.
My app become unstable immediately after the execution of this statement..
CDarkGDK.oDBMultiplayer.JoinNetGame(Session.ID, "Client Player")
Where Session.ID is the ID of the session obtained with the PerformChecklistForNetSession command.
Also this statement doesn't work:
CDarkGDK.oDBMultiplayer.DefaultNetGame(Session.Name, "Client Player", 10, 2)
Where Session.Name is the name of the already existing session obtained with the PerformChecklistForNetSession command.
If I try to execute this code:
Public Shared Sub CreateClient(ByVal Session As NetSession)
CDarkGDK.oDBMultiplayer.JoinNetGame(Session.ID, "Client Player")
For I As Integer = 1 To 50
Try
CDarkGDK.oDB3D.MakeObjectPyramid(I, 40.0F)
Console.WriteLine("Object " & I & " created")
Catch ex As Exception
Console.WriteLine("Object " & I & ": " & ex.Message)
End Try
Next
End Sub
I get an "AccessViolationException" after 33 objects have been created.
Fear leads to anger
Anger leads to hate
Hate leads to suffering