Author Topic: Would Somebody Please Look At Some Code For Me?  (Read 6102 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Would Somebody Please Look At Some Code For Me?
« on: August 23, 2007, 09:09:35 pm »
I'm writing an SDL app, and it is segfaulting during making an instance of a class for reasons I cannot seem to determine. Could somebody look at the code for me? I'd rather not just post it, so please PM me if you can/are willing to help.

Thanks.

EDIT: It's C++ code, and probably some stupid little omission that is causing the issue (that tends to be the case with me).
« Last Edit: November 10, 2007, 10:49:14 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Would Somebody Please Look At Some Code For Me?
« Reply #1 on: August 29, 2007, 08:58:35 pm »
I got it figured out (it was a stupid error in the order I initialized things FWIW).
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Would Somebody Please Look At Some Code For Me?
« Reply #2 on: November 10, 2007, 10:48:48 pm »
OK, I've hit another error (different program, this one in C++/FLTK). It compiles with no errors, and through my tests I have concluded that it segfaults when it tries to show the window, not during some function leading up to it. I'm out of ideas. Could somebody look at the code for me (the tarball has the .hpp and .cpp files, the Fluid file, and a diff of the current code and the previous, non-segfaulting version)? It's the source for CelestialConfig, if it makes more people look at it , and it compiles with:

Code: [Select]
fltk-config --compile celestialconfig.cpp
Thanks.

EDIT: You can PM me or post here if you have questions, comments, suggestions, or a solution. Thanks.
« Last Edit: November 10, 2007, 10:49:58 pm by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Would Somebody Please Look At Some Code For Me?
« Reply #3 on: November 13, 2007, 10:42:51 pm »
OK, I have incentive to rewrite the code anyway, so I guess I don't need help anymore (but if I hit the same unknown issue as before I will).
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Would Somebody Please Look At Some Code For Me?
« Reply #4 on: November 17, 2007, 01:00:56 pm »
Keep it going ... glad you got it going and somewhat fixed ...  ... I'm in coder's block ... just cannot get myself into the momentum to code anything ...

... ok, except perhaps rigging up a simple app on facebook ... but that doesn't really count as coding ...
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>