English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 06 April 2015, 01:03   #1
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
Floppy disk 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;
}
tolkien is offline  
Old 06 April 2015, 10:31   #2
Cylon
Registered User
 
Join Date: Oct 2014
Location: Europe
Posts: 470
http://wiki.amigaos.net/wiki/Datatypes_Library

maybe this helps?
Cylon is offline  
Old 06 April 2015, 10:37   #3
tolkien
AmigaMan
 
tolkien's Avatar
 
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.
tolkien is offline  
Old 06 April 2015, 11:20   #4
thomas
Registered User
 
thomas's Avatar
 
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?
thomas is online now  
Old 06 April 2015, 12:12   #5
tolkien
AmigaMan
 
tolkien's Avatar
 
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.
tolkien is offline  
Old 06 April 2015, 14:22   #6
tolkien
AmigaMan
 
tolkien's Avatar
 
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!
tolkien is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:48.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.20844 seconds with 15 queries