EldoS | Feel safer!

Software components for data protection, secure storage and transfer

100% CPU when Sending message to unavailable host.

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 05/10/2007 08:51:20
by Adam Leyshon (Standard support level)
Joined: 05/08/2007
Posts: 23

any ideas why CPU is 100% after sending a message to a host which is unavailable?
I am using TCP Transport Socket and I set the maxtimeout on all the controls and connectattempts to 1 but still 100% even after I've recieved the
Private Sub MsgFail(ByVal UserData As Object, ByRef Message As MsgConnect.MCMessage, ByVal ErrorCode As Integer)

Even postmessage does the same.

Thanks Adam.
Posted: 05/10/2007 09:01:42
by Eugene Mayevski (Team)

1) Please specify what exactly version of MsgConnect you are using. If it's not build 55, please take the latest build from the site
2) Is the problem reproducible with SendNote or other sample application or it only happens in your code?

Sincerely yours
Eugene Mayevski
Posted: 05/10/2007 09:51:14
by Adam Leyshon (Standard support level)
Joined: 05/08/2007
Posts: 23

Build is latest, 55.
No it does not happen in SendNote.

I have attached the code nessercary to sending a message.

I can also give you the settings for each control upon request.

I am using ZLib Compression and CRC32 Sealing if that makes any difference.

The controls are:
SocketTransport as McSocketTransport
MCMessenger1 as McMessenger
and MCQueue1 as McQueue

Thanks, Adam.

[ Download ]
Posted: 05/10/2007 10:04:00
by Eugene Mayevski (Team)

The transformers don't make any difference, but I would need a complete test case (i.e. compileable project) to run and see what's going on inside.

Sincerely yours
Eugene Mayevski
Posted: 05/10/2007 10:31:27
by Adam Leyshon (Standard support level)
Joined: 05/08/2007
Posts: 23

OK here is the source.
Its a very stripped down version since my app has some
icons and PNGs. Also some code is remove, for instance
remembering when an IP check last occured, again that
sub has been removed.
I've tested it with the code removed and it still used
100% CPU with me.

Thanks, Adam.

[ Download ]
Posted: 05/10/2007 13:07:05
by Eugene Mayevski (Team)

Continued in HelpDesk.

Sincerely yours
Eugene Mayevski
Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.



Topic viewed 5324 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!