Welcome, Guest. Please login or register.

Author Topic: Compiler  (Read 14001 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: Compiler
« Reply #59 from previous page: June 02, 2003, 10:09:44 PM »
Looking back at your code post, don't you need to create the object before you go setting its parameters?

-edit-

sorry, I just saw that you did
int p; // A
 

Offline quiesceTopic starter

  • Jr. Member
  • **
  • Join Date: Feb 2003
  • Posts: 72
    • Show only replies by quiesce
Re: Compiler
« Reply #60 on: June 02, 2003, 10:10:25 PM »
I did that in the call to InitInterface()
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: Compiler
« Reply #61 on: June 02, 2003, 10:12:53 PM »
Have you put any runtime pointer checks to make sure that your objects are created?

Each time you create something just add a little check to make sure the pointer is not NULL.

This goes for libraries too...
int p; // A
 

Offline quiesceTopic starter

  • Jr. Member
  • **
  • Join Date: Feb 2003
  • Posts: 72
    • Show only replies by quiesce
Re: Compiler
« Reply #62 on: June 03, 2003, 12:25:11 AM »
I stuck a few pointer checks in and weeded out a few errors. However now everything SHOULD work, but WinUAE still shuts down as soon as SetAttrs() is called.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: Compiler
« Reply #63 on: June 03, 2003, 01:12:15 AM »
To be honest I haven't done any MUI coding, but BOOPSI is pretty much all alike.
Send me the executable just to see if I can get any crash info. Perhaps it's not your program at fault...
int p; // A