06 April 2015, 01:03 | #1 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
|
NewDTObject crash
I´m trying to load gfx with Datatypes but I have a problem when program reach NewDTObject line and the Amiga freeze.
This is the evil function. I have simplified it but error persists. If I comment the NewDTObject line I get no errors but obviously I need It. Any idea mates? Code:
Object* Load_Brush(char* file) { Object *temp = NULL; temp = NewDTObject( file , DTA_GroupID, GID_PICTURE, PDTA_Remap, FALSE, TAG_END ); if(!temp) { Printf("Cant load gfx file %s\n", file); return NULL; } return temp; } |
06 April 2015, 10:31 | #2 |
Registered User
Join Date: Oct 2014
Location: Europe
Posts: 470
|
|
06 April 2015, 10:37 | #3 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
|
Yes, before write here I have read all docs I have found but without clue of what's wrong here.
|
06 April 2015, 11:20 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
There is nothing wrong here. Your problem is somewhere else in your program.
Perhaps DataTypesBase not initialized? |
06 April 2015, 12:12 | #5 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
|
My init routine checks for failed libs but perhaps there is an error. I'll check It again later.
Thanks. |
06 April 2015, 14:22 | #6 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
|
But how much stupid a human can be?
Thomas pointed me in the right direction. I had the datatypes call before I open the libs! So sorry mates. Let's continue and don't tell it to anybody! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinUAE 2.7.0 Crash | BlackByte | support.WinUAE | 8 | 13 December 2013 11:13 |
Silkworm causes 1.4.5 to crash | jharrison | support.WinUAE | 2 | 22 December 2007 10:34 |
Crash with 1.4.1 + improvement wish | Kador | support.WinUAE | 3 | 22 April 2007 12:45 |
1.0 Crash | Methanoid | support.WinUAE | 0 | 20 June 2005 23:08 |
crash?? | Unregistered | support.WinUAE | 2 | 31 May 2001 14:32 |
|
|