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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
Developer
dbigham
Posts: 318
Registered: ‎04-01-2009
My Carrier: Rogers

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: 660
Registered: ‎03-21-2012
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,789
Registered: ‎04-28-2009
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.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo 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: 660
Registered: ‎03-21-2012
My Carrier: Vip

Re: How to bork your simulator

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