Access violation on Receive - WeOnlyDo Discussion board

Access violation on Receive (General questions)

by David Lucas, Thursday, August 17, 2006, 10:31 (6673 days ago)

I get an access violation when calling Receive if the wodSSH Disconnected event has fired (i.e. the other end has disconnected the connection). However, this access violation only occurs if I call Receive with a Count that's less than the number of bytes remaining in the buffer.

If I call Receive with wodSSH->DataReady as the Count parameter (i.e. the remaining bytes in the buffer) then it doesn't access violate.

We are currently on version 2.3.7.30 (so it's possible this has been fixed, and I will request an update to the latest version to check). Developing under Borland C++ Builder 6.

Re: Access violation on Receive

by wodDrazen, Thursday, August 17, 2006, 11:53 (6673 days ago) @ David Lucas

Hi David,


Can you prepare simple sample with your error and send to techsupport@weonlydo.com.
Sample will help us to duplicate and probably resolve your problem.

Hope I helped.


Regards,
Drazen

Re: Access violation on Receive

by David Lucas, Friday, August 18, 2006, 10:53 (6672 days ago) @ wodDrazen

As requested, I have sent a simple application to illustrate the problem.

Re: Access violation on Receive

by wodDamir, Friday, August 18, 2006, 11:06 (6672 days ago) @ David Lucas

Hi David,

We havent received it yet. Seems like there was a typo in Drazen's post with the ending dot. Can you please re-send to techsupport@weonlydo.com

Regards,
Damba

Re: Access violation on Receive

by wodDamir, Friday, August 18, 2006, 12:37 (6672 days ago) @ wodDamir

David,

I have received your package, however when i try to run it i receive an error Unable to open file weonlydo.obj .

What Drazen meant by sample, is if you could prepare a small sample so we could run it over here and it would demonstrate us the exact problem you get.

Can you do that please, that would be of great help?

Regards,
Damba

Re: Access violation on Receive

by David Lucas, Friday, August 18, 2006, 12:55 (6672 days ago) @ wodDamir


What Drazen meant by sample, is if you could prepare a small sample so we could run it over here and it would demonstrate us the exact problem you get.

Can you do that please, that would be of great help?

I don't understand what you mean. You can run both the client.exe and server.exe I sent you without having to look at the code if you don't want to. They were compiled without runtime packages or RTL so they shouldn't be dependent on anything (and I've tested them on another clean machine, and they do work).

The WeOnlyDo.obj required for compiling them is generated from the package I sent you in a separate e-mail after sending the client and server projects and executables. You don't need to compile the code if you don't want to.

Re: Access violation on Receive

by wodSupport, Saturday, August 19, 2006, 01:53 (6671 days ago) @ David Lucas

David,

I was able to duplicate this, and believe now is fixed. Can you request update and try it out?

Thanks,
Kreso