07-08-2020, 09:59 +0200
AuthorPost
kennedyt  06-07-2010, 14:52   | Object Name Already Exists
Member since 06/2010
1 Post
I have this piece of code that uses a library in a risk managment system. I am however having problems when trying to construct an object on the last line of the code snippet.

What does the error Object name already exist indicate

Please help



  1. returns the size of the the ValTransList
set valtranslistsize [ValTransListSize $tr]
puts $outfile "valtranslistsize is $valtranslistsize"

  1. returns the Val Transactions object corresponding to the index specified
for {set i 0} {$i<$valtranslistsize} {incr i} {

set vt [ValTransactions $i $tr]
set valfromtransactions [ValFromTransactions $vt]
puts $outfile "Valtrans = $vt"
puts $outfile "Valfromtrans = $valfromtransactions"


set pValPtr [pValuable_fetch $valex]
set pValType [pValuable_valType $pValPtr]
set valObjPtr [pValuable_castTo$pValType $pValPtr]
$pValType thisPort -this $valObjPtr
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 165.6 msec, CPU time: 71.7 msec, 30 Database queries in 123.7 msec | 2.7 kB (9 kB) | Timezone: +0200