import xbmc, xbmcgui emuData = [] class EMUL(xbmcgui.Window): def __init__(self): xbmc.output('APAN RUNKAR') print 'apan runkar' fh = open("Q:\\SCRIPTS\\TEST.TXT",'r') lines = fh.readlines() fh.close() self.cnt = 0 for i in len(lines): xbmc.output(':'.join('APA',str(i))) emuData.append(lines[i]) mydisplay = EMUL() mydisplay.doModal() del mydisplay ----------------------- log below ----------------------- 01:24:29 M: 32960512 INFO: -->Python Initialized<-- 01:24:29 M: 32940032 INFO: 01:24:29 M: 32423936 DEBUG: CGUIMediaWindow::GetDirectory (Q:\scripts) 01:24:29 M: 32423936 DEBUG: ParentPath = [Q:\scripts] 01:24:29 M: 32415744 INFO: APAN RUNKAR 01:24:29 M: 32415744 INFO: apan runkar 01:24:29 M: 32415744 INFO: 01:24:33 M: 143360 SEVERE: DLL: Q:\system\python\python24.dll : malloc failed, crash imminent (Out of memory)