From: walter@... Date: 2003-07-13T12:08:27+09:00 Subject: abnormal program termination with dynamic data, but not with fixed data hi everyone. I am stumped! I have code that is part of a simple persistent object manager. The system takes an object, builds an update statement, and builds the parameter list. I keep getting an abnormal program termination. Hoever as you can see in the modified code segment below, I can run the same query with the same data that is hand keyed and it works fine. Below, you can see that the dynamically created arrays and the hand keyed one are identical, but one always aborts and one works fine. I am running ruby 1.8 on windows 2000 using the pragmatic programmers installer. Does anyone have any ideas? Walt This one ends in a segmentation fault ## original code ## def update(obj) raise SpomDBClosedException.new if closed? executeCount = 0 dbObject = @spom.getObjectMapping(obj.class) dbHandle.prepare(dbObject.updateSQL) do |sth| params = [] dbObject.nonKeyFields.each{|field| params << field.toDB(obj)} dbObject.keyFields.each{|field| params <