Archived

This forum has been archived. Please start a new discussion on GitHub.

How can I develop a File transfer application?question 2.1

question 2.1: about Ice.MessageSizeMax
In my application,I config Ice.MessageSizeMax=100000
and then I test the application.
when I transfer file of size 1M,15M.45M,every thing is Ok.
But when I transfer file of size 70.5M , there comes a window Message box:

Microsoft visual C++ Runtime Library
Runtime Error!
Program:C:\client.exe
abnormal program termination


why?

Comments

  • In general, it is not advisable to send such huge amounts of data in a single requests. I recommend to send the data in several chunks, like IcePatch is doing it.

    To find out what exactly the reason for the program termination is, you must attach the debugger to the program, and look at the stack trace. See the Visual C++ debugger documentation for further details.
  • ok,I study the Icepatch src now to make my application of file transfer
    better.

    thank you
    xiehua