This problem went away when I did the following. I had wrapped all my mk usage into one class whihc I had instantiated globally in a particular module which then made long heavy use of my cllass full of mk calls. That class of mk calls keeps a dictionary of the storages that have been opened(there may be quite a few) and re-uses them to recreate a view whihc is then used to select,append, etc. When I instead instatiated my mk interface class locally just in functions that needed it, and thus garbage collected often, the problem disappeared. I guess the problem is something about keeping the db references for a long time maybe? This was a really nutty problem, I'll try and replicate it with some simple test code.
Message: 7 Date: Thu, 29 Jan 2004 23:43:49 -0500 From: Adam Russell <[EMAIL PROTECTED]> Subject: [Metakit] utf-8 string weirdness To: Metakit list <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I am writing an application which usesmetakit to store lists of strings.
Sometimes when I retrieve these strings I get these oddball utf-8 charcaters. wtf?
It'll be workin a-ok then all of a sudden *boom* all these utf-8 strings.
I'll then go back and re-red the same db file and it'll be ok.
What would cause this?
I am using mk4py.
Any advice would be greatly appreciated!!
ryngitis, Acute Nos; Dysphagia; Dysphagia', 'None', 'PR')
('33333334', 'Shock/Coma', '11/09/2003', '30 to 34', 'M', 'Minneapolis:55440:*No
MemRec*', '', 'None', '0', '01/01/1970', 'BT, Test', '33333334', '33333334', 'Sh
ock, Other, W/o Trauma', 'None', 'PR')
read encounters, n= 15 cutoffdate= 20031110
ll= [' ']
('55555555', 'Fever', '1/10/2003', '/1970', 'e', 's:55440:*NoMemRec*', '', '/197
0', 'e', '/1/1970', 'T, Test', '2222222', '', 'itis, Acute Nos; Dysphagia; Dysph
agia', 'PR', '\x01\x87\x1d\xbf\x88\n\xe4\x80\x03\xfa$\xea\x8f\n\xec\x80\xcb\r\xd
6\x88\x0e\xa1\x80\xad\x16\xa6\x84\x0e\xa9\x80PR')
('55555555', 'Respiratory', '/1/1970', '/1970', 'None', 's:55440:*NoMemRec*', ''
, '1970', '\xaa\xaa\xaa*\x99\x99\x99\x99\x99\x99\x99\t11/10/2003', '\x05\xff\xff
\xff?\xff\xff?\xff\xff?\xff?1970', 'T, Test', '8888888', '$\xea\x8f\n\xe6\x80\xc
b\r\xce\x88\x0e\x99\x80\xad\x16\xa6\x84\x0e\xa1\x80\xd4\x80\x01\x87\x15\x9f\x88\
n\xdc\x80\x01\x87\x1d\xbf\x88\n\xe4\x80\x03\xfa$\xea\x8f\n\xec\x80\xcb\r\xd6\x88
\x0e\xa1\x80\xad\x16\xa6\x84\x0e\xa9\x80PR', 'bdominal Pain,generalize; Chest Pa
in, Unspecified', 'ec*', 'PR')
Exception in thread autoProcessor:
_____________________________________________ Metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
