yeah that's also what I think.
any idea how to overcome it ?
Search found 38 matches
- Thu Dec 26, 2024 12:56 pm
- Forum: Coding Questions
- Topic: Detect invalid Connection ID prior
- Replies: 6
- Views: 1223
- Thu Dec 26, 2024 8:12 am
- Forum: Coding Questions
- Topic: Detect invalid Connection ID prior
- Replies: 6
- Views: 1223
Re: Detect invalid Connection ID prior
TCP.
I send packets periodically
There are many clients that connect and disconnect randomly.
So it may happen that the client is connected when the decision is taken to send it a packet but then discconnects just before the packet is sent
I send packets periodically
There are many clients that connect and disconnect randomly.
So it may happen that the client is connected when the decision is taken to send it a packet but then discconnects just before the packet is sent
- Wed Dec 25, 2024 11:22 pm
- Forum: Coding Questions
- Topic: Detect invalid Connection ID prior
- Replies: 6
- Views: 1223
Detect invalid Connection ID prior
hello
look at this code :
How to check if Connection ID is valid before using it
look at this code :
Code: Select all
ClientID = 750154536 ;Random invalid Connection ID
sent = SendNetworkString(ClientID, "Hello"); Returns Invalid memory accesss
- Tue Dec 24, 2024 8:43 am
- Forum: Coding Questions
- Topic: Memory error in SendNetworkData
- Replies: 10
- Views: 1078
Re: Memory error in SendNetworkData
look at this example :
Atomic_Server_NetworkErrorContinue(ClientID) still returns 1
Code: Select all
ClientID = 750154536 ;Invalid Connection ID
sent = SendNetworkString(ClientID, "Hello"); Returns Invalid memory accesss
- Tue Dec 24, 2024 12:43 am
- Forum: Coding Questions
- Topic: Memory error in SendNetworkData
- Replies: 10
- Views: 1078
Re: Memory error in SendNetworkData
Actually I think that the error occurs when ClientID doesn't exist anymore.
So is there a way to check if a ConnectionID really exist before sending data ?
So is there a way to check if a ConnectionID really exist before sending data ?
- Thu Dec 19, 2024 6:57 pm
- Forum: Coding Questions
- Topic: Memory error in SendNetworkData
- Replies: 10
- Views: 1078
Re: Memory error in SendNetworkData
I'm pretty sure it's related to that specific function
- Thu Dec 19, 2024 8:28 am
- Forum: Coding Questions
- Topic: Memory error in SendNetworkData
- Replies: 10
- Views: 1078
Re: Memory error in SendNetworkData
Still the same error :/
Actually, the server uses that function to ping a list of connected clients that may disconnect at any time.
I tried checking if ConnectionID is not 0 before sending the packet but still the same
Actually, the server uses that function to ping a list of connected clients that may disconnect at any time.
I tried checking if ConnectionID is not 0 before sending the packet but still the same
- Thu Dec 19, 2024 8:22 am
- Forum: Coding Questions
- Topic: Memory error in SendNetworkData
- Replies: 10
- Views: 1078
- Wed Dec 18, 2024 9:34 pm
- Forum: Coding Questions
- Topic: Memory error in SendNetworkData
- Replies: 10
- Views: 1078
Memory error in SendNetworkData
Hello,
I wrote an enhanced SendNetworkData function that checks if all data was sent. it receives a packet that should have a header containig the packet length in 8 bytes followed by packet type in 1 byte then the payload.
it's been months i'm trying to figure out a problem : once in a while, i ...
I wrote an enhanced SendNetworkData function that checks if all data was sent. it receives a packet that should have a header containig the packet length in 8 bytes followed by packet type in 1 byte then the payload.
it's been months i'm trying to figure out a problem : once in a while, i ...
- Wed Nov 27, 2024 8:00 pm
- Forum: Coding Questions
- Topic: bcdedit.exe not found in shellExecute_()
- Replies: 0
- Views: 2406
bcdedit.exe not found in shellExecute_()
Hello
When I run this command
ShellExecute_(0, "RunAS", "bcdedit.exe", "/set {Default} safeboot minimal", "", #SW_SHOWNORMAL)
The command is not successful but if I copy bcdedit.exe to an other location and call it, it works.
PB x86 on Windows x64.
How to do it ?
thanks
When I run this command
ShellExecute_(0, "RunAS", "bcdedit.exe", "/set {Default} safeboot minimal", "", #SW_SHOWNORMAL)
The command is not successful but if I copy bcdedit.exe to an other location and call it, it works.
PB x86 on Windows x64.
How to do it ?
thanks
- Mon Nov 11, 2024 4:08 pm
- Forum: Coding Questions
- Topic: ReadFile() in a loop becomes slower and slower
- Replies: 13
- Views: 1648
Re: ReadFile() in a loop becomes slower and slower
It's most likely the file cache of your system, either your operating systems file cache or the cache in your harddrive or ssd. At first it's fast and after a while it is getting slower.
Btw. Why do you have a `Delay(1000)` in there?
You are right. I was working on an external SSD.
I've ...
- Mon Nov 11, 2024 2:36 pm
- Forum: Coding Questions
- Topic: ReadFile() in a loop becomes slower and slower
- Replies: 13
- Views: 1648
Re: ReadFile() in a loop becomes slower and slower
It's most likely the file cache of your system, either your operating systems file cache or the cache in your harddrive or ssd. At first it's fast and after a while it is getting slower.
Btw. Why do you have a `Delay(1000)` in there?
You are right. I was working on an external SSD.
I've just ...
- Mon Nov 11, 2024 2:26 pm
- Forum: Coding Questions
- Topic: ReadFile() in a loop becomes slower and slower
- Replies: 13
- Views: 1648
Re: ReadFile() in a loop becomes slower and slower
It's most likely the file cache of your system, either your operating systems file cache or the cache in your harddrive or ssd. At first it's fast and after a while it is getting slower.
Btw. Why do you have a `Delay(1000)` in there?
for the delay(1000) after each subfolder, i thought i would ...
- Mon Nov 11, 2024 2:17 pm
- Forum: Coding Questions
- Topic: ReadFile() in a loop becomes slower and slower
- Replies: 13
- Views: 1648
ReadFile() in a loop becomes slower and slower
Hi
I have a folder with thousands of html files that I need to read and process.
The script runs good and fast then suddenly the performance drops and it becomes slower and slower.
I suspect the ReadFile() function but I'm not sure.
Here is my code :
Procedure.s ExtractString(str.s, prefix.s ...
I have a folder with thousands of html files that I need to read and process.
The script runs good and fast then suddenly the performance drops and it becomes slower and slower.
I suspect the ReadFile() function but I'm not sure.
Here is my code :
Procedure.s ExtractString(str.s, prefix.s ...
- Mon Nov 11, 2024 8:28 am
- Forum: Coding Questions
- Topic: Regex and parenthesis problem
- Replies: 8
- Views: 803
Re: Regex and parenthesis problem
same result
Weird, that should work (but I have to admit, I didn't test it - it was dinner time!) Try this:
regex.s = "(<input[^>]*name=" + #DQUOTE$ + "tiersForm\.cin" + #DQUOTE$ + "[^>]*value=" + #DQUOTE$ + ")([A-Z]\d+)(" + #DQUOTE$ + ")"
Debug regex
text.s = "<input type=" + #DQUOTE ...