[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

4023.0. "GURU visit when using Move, Draw, SetAPen, ..." by KETJE::VANWAMBEKE () Fri Aug 17 1990 06:54


	HI,

	Some problems programming the AMIGA in C : I am only trying to draw some
	lines in a window, using the Move(r,x,y) and Draw(r,x,y) routines ...
	The rastport pointer r is correctly assigned since drawing with the 
	Border routine instead of Move and Draw works.

	The problem : each time I try to use a low-level routine ( SetAPen,
	SetDrMd, Move, Draw, ... ) I have a visit from the GURU .... 

	I am using LATTICE V4.0 compiler, compilation and linking give no error.

	Anybody experienced the same problems ? Am I doing something wrong ?

	thanks for your help.

	regards

	PAUL
T.RTitleUserPersonal
Name
DateLines
4023.1SDOGUS::WILLIAMSTOPGUNFri Aug 17 1990 07:316
    What libraries do you have open?
    
    Be sure that all "associated" libraries are also open before you
    do the call.
    
    TOPGUN
4023.2I need more detailsNBOIS2::FRIESBDR 529Fri Aug 17 1990 08:593
    Can You post Your source code, please?
    
    Gerald
4023.3WHAT LIBRARIES ARE NEEDED ?KETJE::VANWAMBEKEFri Aug 17 1990 09:207
    
    
    	I will post the source code as soon as possible. Any idea what 
    	librairies need to be opened to use the routines ?
    
    	regards
    	PAUL
4023.4NBOIS2::FRIESBDR 529Fri Aug 17 1990 11:566
    You only need the graphics.library and intuition.library, I think.
    
    But let's wait for the source code.
    
    regards
    Gerald
4023.5THANKS FOR THE HELP , PROBLEM SOLVED ...KETJE::VANWAMBEKEWed Sep 12 1990 14:5513
	Thanks for your help in the previous replies : I have checked if I was 
	calling the necessry libraries ... I forgot the graphics library...
	It's a pity that the compiler/linker does not give an error message.
	The program crashes the whole machine when attempting to execute
	the missing routine ...

	thanks again,

	PAUL	



4023.6Don't blame the compiler/linker...WBC::BAKERWhatever happened to Fay Wrey...Wed Sep 12 1990 18:4024
 RE .5:

>					  I forgot the graphics library...
>	It's a pity that the compiler/linker does not give an error message.
>	The program crashes the whole machine when attempting to execute
>	the missing routine ...


	This isn't a compile or link time error, it's a programming issue.

	The compiler has no way of knowing whether you intend to open the
	library in the current module or some other module, so it can't
	just arbitrarily give you errors for not having an OpenLibrary
	call in your code.  

	Likewise, the linker can't just go tracking around your object 
	code looking for calls to OpenLibrary with the proper arguments.
	It would need to know something about the order of execution of
	your statements to decide whether you were trying to call a
	system function before you had opened the proper library.  This
	kind of flow-modelling is very tedious.

	~art-who-used-to-write-compilers-for-money
4023.7But...SSDEVO::YESSEComputing at 6200 ft.Thu Sep 13 1990 18:417
	...Of course, systems like VAX/VMS sure spoil you, when you
	make a similar error and all you get is a process crash.
	(Sorry, Joe's C compile failed, gotta reboot the cluster.. ;-)

	I don't suppose AmigaDos V2 is any different, by any chance?

	-KY
4023.8what are the OS requirements for crash catchersMILKWY::JANZENThu Sep 13 1990 18:581
    I don't see how, without virtual protected memory management. Tom
4023.9WELSWS::FINNISThu Sep 13 1990 22:5718
     
    
    Re   .7   
    
    
    ............ For Amiga Compatability of the GURU on VMS then
    
    set process/dump
    
    	or in sysgen
    
    		set bugcheckfatal = 1
    
    
    
    				-=Pete=-
    
    			Ha Ha :-)