io:format error

HEINRICH VENTER <>
Tue Sep 9 14:54:59 CEST 2003


Hi

I am frankly stumped by this.

the following lines of code

finalize_result({TransactionData, R_ResponseCode, TransactionAmount, EndBalance, Flags_2, CostingInfo}, ConfigurationData) ->
   io:format("~nTransactionAmount = ~p", [TransactionAmount]),
   io:format("~n........ Finalize Result ..........."),
   io:format("~n<<< leah:close_connection >>>"),

   io:format("~nTransactionAmount voor leah call : ~p", [TransactionAmount]), 
%% more processing follows

causes the following VERY odd behavior

TransactionAmount = 0.00000e+0
........ Finalize Result ...........
<<< leah:close_connection >>>
TransactionAmount voor leah call : {io_request,
                                       <0.115.0>,
                                       <0.112.0>,
                                       {put_chars,
                                           io_lib,
                                           format,
                                           ["~nTransactionAmount = ~p",[0.00000e+0]]}}

This does not happen consistantly however... it happens every now and then.
It would seem that the TransactionAmount variable gets re-bound to the code in some way.

I am frankly at a loss.  HeeEEeEEeLp!

-]-[einrich
Teba Bank

#####################################################################################
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material.  Any review, retransmission,
dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient
is prohibited. If you received this in error, please contact the sender and
delete the material from any system and destroy all copies.
#####################################################################################



More information about the erlang-questions mailing list