Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
dbigham
Posts: 469
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

How to bork your simulator

I had not realized that I declared a variable as const:

 

char*** frameSets;

 

... and then in my "main" function, I did:

 

frameSets = (char***)malloc(50);

 

The result was that my simulator would become un-usable... any time I'd click on an app to launch, nothing would happen, and I'd have to restart my simulator.

 

Prior to narrowing it down this far, I was getting errors that looked like:

 

Malloc Check Failed: ...

 

... in my console, but I couldn't figure out what they meant.

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: How to bork your simulator

Noob question - I have never seen something like char***. Little explanation please
Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: How to bork your simulator

[ Edited ]

If you know Java:
C/C++ | Java
char = char
char* = String
char** = String[]
char*** = String[][]

 

At least, that's how I would explain it.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: How to bork your simulator

Now it's clear. Thx
Please use plain text.