error: outpubuffer too small for block

Posted on 2005-04-25
Last Modified: 2008-01-09

in my application I sometimes get an error "outpubuffer too small for block".
I can't find this error message somewhere in the code, i think it comes from one of the components i use (mysql, supercom, ...)
How can i find out where this error comes from?

Question by:cleaverX
    LVL 30

    Expert Comment

    Hi cleaverX,
    Try seeing if you can get the error in debug mode, and then check that stack when you get the error.

    Otherwise you can add error logging to your code, and then check the error logs.

    David Maisonave :-)

    Author Comment


    debug mode is out of the question: error only happens once in a while...
    logging would be a sollution, but the error can be anywhere, and the program has a lot of code.  Logging everything to find the error means a lot of work...
    Isn't there a way to search this errormessage somehow in the components directly?
    LVL 22

    Expert Comment

    do a grep among your library files for that error message, that will at least narrow it down to ONE library.

    or maybe this will help:

    Q. Importing gives Error message "COMx could not be opened" or "Output buffer too small for block".
    A. One or more of the following:

       1. The VC3000 is not turned on or is unplugged.
       2. The USB port drivers are not loaded yet. Wait about 5 seconds after plugging the VC3000 in and turning it on before attempting to import.
       3. The port number for the virtual serial port has changed. Use Options to select the correct port for the USB serial port (usually the last one in the list) or select Auto.
       4. PDA synchronization software such as "Hot Sync" is running and controlling the serial port. Close the PDA software and try again.
       5. USB serial converter drivers not installed correctly. The latest drivers are available in the downloads section of our web site. Unplug the VC3000. Uninstall the USB drivers (USB Serial Port Uninstall). Plug the VC3000 USB port in again and follow the installation procedure USB Serial Port installation.
       6. Open Control Panel/System/Device Manager and check COM ports. "USB serial port (COMx) should be listed. If it is not, check other devices and reinstall drivers if USB serial port has a question mark.

    Q. When importing it gives error message “Wrong response reading file count”
    LVL 39

    Accepted Solution

    You generally could increase size of all buffers used for communication, I/O and database - say to 4k. If the error is gone then, it's ok. If not, increasing buffer size couldn't be bad.

    Where does the message arise? Somewhere at console output?

    I googled for the message text "Output buffer too small for block" using double quotes and got only three valid hints to products: COMX, BACST and Hypertrader. if you are using none of them, either the exact message is different or the message you got never showed before...

    Regards, Alex
    LVL 14

    Expert Comment

    No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
    I will leave the following recommendation for this question in the Cleanup topic area:

    Delete - No refund

    Any objections should be posted here in the next 4 days. After that time, the question will be closed.

    EE Cleanup Volunteer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
    Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now