[RESOLVED] Errors again - BLACK screen

one question not related to this problem:

i followed “memory leak” tutorial (http://www.coronalabs.com/blog/2011/08/15/corona-sdk-memory-leak-prevention-101/) and removed all objects that are not being used. However, I see that my memory usage is growing every time I hit a ‘‘bullet’’ even it is deleted when it is not being used. Also, all objects are deleted in same condition.

Why’s that? I’m experiencing memory leak while playing this part of my game on a device…

@kizzwiz could you start a new thread on this topic and include your bullet creation code and bullet removal code?

We should try and keep this thread on topic!

FOUND IT!

As I thought at first - own stupid fault caused a black screen.

gameoverShare = ui.newButton{ defaultSrc = "share.png", defaultX = 100, defaultY = 69, overSrc = "shareover.png", overX = 83, overY = 71, ... ... ... }

So, when I was creating share image, I created only share-2.png image which is for mobile devices that use larger resolution. In other words, I forgot to create share.png image that is called here in the code.

Strange how I didn’t see that before because I was checking if I have all images included in a folder.

Once again - thanks for your time and now help me with memory leak :smiley: I’m really bad with that…
http://forums.coronalabs.com/topic/37218-memory-leak/