running a simple app a 2nd fails to build..

Community Forums/General Help/running a simple app a 2nd fails to build..

Blitzplotter(Posted 2010) [#1]
Hi,

I can successfully build the following app 1 time:-

' Amazing Xbox360 avatar thing...

av$ = "markrusko" ' INSERT YOUR AVATAR NAME HERE! Or anyone else's...




Graphics 640, 480

SetClsColor 80, 32, 120
SetBlend ALPHABLEND
AutoMidHandle True

image:TImage = LoadImage (LoadBank ("http::avatar.xboxlive.com/avatar/" + av$ + "/avatar-body.png"))

xs = 4
ys = 4

Repeat

	Cls
	
	x = x + xs; y = y + ys; ang# = ang + 2
	If x < 0 Or x > GraphicsWidth () Then xs = -xs
	If y < 0 Or y > GraphicsHeight () Then ys = -ys

	SetRotation ang
	DrawImage image, x, y
	
	Flip
	
Until KeyHit (KEY_ESCAPE)

End 




But then if I try to build it a second time I receive:-

Building markrusko
Compiling:markrusko.bmx
flat assembler version 1.68 (1572863 kilobytes memory)
3 passes, 5163 bytes.
Linking:markrusko.debug.exe
C:/BlitzMax/bin/ld.exe: cannot open output file C:/BlitzMax/markrusko.debug.exe: Permission denied
Build Error: Failed to link C:/BlitzMax/markrusko.debug.exe
Process complete




Does anyone know why ?


Blitzplotter(Posted 2010) [#2]
Curious, it must be something peculiar to that code, I just tried some code from else where(here:- http://www.blitzbasic.com/codearcs/codearcs.php?code=2641)

and that executes fine a 2nd & third time:-




xlsior(Posted 2010) [#3]
It's possible that the application didn't terminate properly, and is still running in the background - check the taskmanager process list.

If there's still a running file, you won't be able to compile it a second time because can't overwrite the same executable file name at that time.


Blitzplotter(Posted 2010) [#4]
thanks xlsior, the fireworks look sweet don't they?


TaskMaster(Posted 2010) [#5]


Just looking... ;)

Here's mine...