Memory access violation

BlitzPlus Forums/BlitzPlus Programming/Memory access violation

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I created a simple movieplayer, which must be loaded when I double-click an AVI-file.
I changed the filetype in Windows for setting my movieplayer to run when an AVI is opened.
When doubled-clicking this file: "c:\TestMovie.avi",
Windows runs my movieplayer, but I get the error-message "Memory Acces Violation".

This is the code used for opening the file:

file$=CommandLine()
movie=OpenMovie(file$)

When I change the code to this:

movie=OpenMovie("C:\TestMovie.avi")

then it works perfectly.
I printed the commandline onscreen, using:

text 0, 0, file$

and then it said: "C:\TestMovie.avi"
So I don't see any problem why the upper approach doesn't work.

Can anyone help me with this?