Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fail to allocate bitmap
#1
i am getting error message "Fail to Allocate Bitmap", i need add more than one lakh images of 16X16 Pixels in to canvas. please help. it gives error after loading 4989 bitmaps.

rowimage = {}
x= 1
for row in range(135):
for col in range(448):
filename = str((col) * 16) + ',' + str((row) * 16)
if filename in images:
rowimage[filename] = PhotoImage(
file="F:/Symbols/" + images[filename])
canvas.create_image(((col)*16) + 8, ((row)*16) + 8, image=rowimage[filename],
anchor='center')
x = x + 1
print(x)
Reply


Messages In This Thread
Fail to allocate bitmap - by rsbeesh - Dec-13-2017, 12:41 PM
RE: Fail to allocate bitmap - by j.crater - Dec-13-2017, 12:55 PM
RE: Fail to allocate bitmap - by rsbeesh - Dec-13-2017, 01:08 PM
RE: Fail to allocate bitmap - by j.crater - Dec-13-2017, 01:16 PM
RE: Fail to allocate bitmap - by rsbeesh - Dec-13-2017, 01:22 PM
RE: Fail to allocate bitmap - by hshivaraj - Dec-13-2017, 01:30 PM
RE: Fail to allocate bitmap - by rsbeesh - Dec-13-2017, 01:35 PM
RE: Fail to allocate bitmap - by wavic - Dec-13-2017, 01:36 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why does [root.destroy, exit()]) fail after pyinstaller? Rpi Edward_ 4 659 Oct-18-2023, 11:09 PM
Last Post: Edward_
  How to calculated how many fail in each site(s) in csv files SamLiu 4 1,323 Sep-26-2022, 06:28 AM
Last Post: SamLiu
  Imports that work with Python 3.8 fail with 3.9 and 3.10 4slam 1 2,627 Mar-11-2022, 01:50 PM
Last Post: snippsat
  [SOLVED] Why does regex fail cleaning line? Winfried 5 2,501 Aug-22-2021, 06:59 PM
Last Post: Winfried
  scraping video src fail jacklee26 5 3,563 Jul-11-2021, 09:38 AM
Last Post: snippsat
  Unable to allocate specific memory VirtualDreamer 1 2,498 Jul-13-2019, 07:04 AM
Last Post: Gribouillis
  Create bitmap image for my exe atlass218 5 3,679 Nov-04-2018, 06:24 AM
Last Post: atlass218
  fail to upgrade pygobject jiapei100 0 3,095 Aug-16-2018, 10:32 AM
Last Post: jiapei100

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020