Predikament's Profile User Rating: -----

Reputation: -2 Dishonored
Group:
Members
Active Posts:
19 (0.02 per day)
Joined:
11-March 10
Profile Views:
1,611
Last Active:
User is offline Oct 26 2011 04:28 AM
Currently:
Offline

Previous Fields

Country:
NO
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   Predikament ::NoobSaibot

Posts I've Made

  1. In Topic: Can't access array of structs' member variables through functi

    Posted 20 Oct 2011

    That's a good idea. I figured I'd do the nitty gritty stuff eventually, just wanted to see if anyone had any insight as to what I might be doing wrong.

    The #ifdef USE_SDL idea is a great tip and also something worth including in future code so I can just swap between console and graphics libraries to see that the gears are in fact turning the way I want them to.

    Thanks again! 8]
  2. In Topic: Can't access array of structs' member variables through functi

    Posted 20 Oct 2011

    View PostSalem_c, on 20 October 2011 - 05:32 AM, said:

    Are you familiar with the concept of a debugger?

    - Yes (hence the part where I stated that I can see that the vector class' variables aren't being assigned any values)

    I've already tried to debug it to the extent that I can (usually with somewhat greater success). My question is basically why making a single struct works with all the function calls whilst when defining an array of the same structs it does not, even though I am referencing them as single values, array[0], array[1], in the same manner as I would if they were single variables.

    Thanks for the reply btw!:bigsmile:
  3. In Topic: ProgressBar and thread question/mini-canundrum

    Posted 13 Sep 2011

    Ooooo, thanks to the logcat trick I actually managed to fix it myself.

    The problem was actually really simple. For some reason my graphical layout editor wasnt saving the XML properly and thus the NullPointerException came from referencing stuff in the XML that wasnt actually there, so I remade it and now it works like a charm!

    Sorry for posting and then figuring it out on my own..
  4. In Topic: ProgressBar and thread question/mini-canundrum

    Posted 13 Sep 2011

    View Postmacosxnerd101, on 13 September 2011 - 05:33 PM, said:

    If you're getting a NullPointerException, your stack trace should reflect such, including where in your code it is occurring. Also, don't printStackTrace() on your Exceptions, b/c that goes to the console like System.out.println(), which is as good as useless. Instead, Log your Exceptions so you can view them on the LogCat.


    Thanks for the tip, edited my previous post so you can see what logcat gave me.
  5. In Topic: ProgressBar and thread question/mini-canundrum

    Posted 13 Sep 2011

    Thanks, sorry about posting in the wrong part of the forum, thought I actually had the right one.

    E/IndexActivity( 6544): exception
    E/IndexActivity( 6544): java.lang.NullPointerException
    E/IndexActivity( 6544): 	at predikament.testingStuff.IndexActivity.onCreate(IndexActivity.java:23)
    E/IndexActivity( 6544): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    E/IndexActivity( 6544): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1594)
    E/IndexActivity( 6544): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1646)
    E/IndexActivity( 6544): 	at android.app.ActivityThread.access$1500(ActivityThread.java:121)
    E/IndexActivity( 6544): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:936)
    E/IndexActivity( 6544): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    E/IndexActivity( 6544): 	at android.os.Looper.loop(Looper.java:123)
    E/IndexActivity( 6544): 	at android.app.ActivityThread.main(ActivityThread.java:3652)
    E/IndexActivity( 6544): 	at java.lang.reflect.Method.invokeNative(Native Method)
    E/IndexActivity( 6544): 	at java.lang.reflect.Method.invoke(Method.java:507)
    E/IndexActivity( 6544): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)
    E/IndexActivity( 6544): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
    E/IndexActivity( 6544): 	at dalvik.system.NativeStart.main(Native Method)
    
    
    

My Information

Member Title:
New D.I.C Head
Age:
27 years old
Birthday:
December 12, 1985
Gender:
Location:
Oslo
Interests:
Technology & Science
Years Programming:
0
Programming Languages:
Java, C++

Contact Information

E-mail:
Private

Friends

Comments

Predikament has no profile comments yet. Why not say hello?