Bug? FileStream will not open Win32 devices...

aaronk

Well-Known Member
Licensed User
Longtime User
Hi

When I run my app in debug mode (or even release mode), I am getting this error..

Activity is called Aux and has this code:
B4X:
#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: False
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.

End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
   
End Sub

Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
   
   
End Sub

Sub Activity_Resume
   
End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

I get this error when it tires to compile the app in debug mode (or even in release mode).

B4X:
Parsing code.  0.08
Compiling code.  Error
Error compiling program.
Error description: FileStream will not open Win32 devices such as disk partitions and tape drives. Avoid use of "\\.\" in the path.
Occurred on line: 10
End Sub

If I rename the Activity to something else then it works fine.
I am guessing there is something about having the Activity called Aux ?
 

aaronk

Well-Known Member
Licensed User
Longtime User
Seems to only happen if I have a Activity called Aux.
If I rename it from Aux to something else then it works fine.

The name of the project doesn't seem to matter.

Try doing this:
Create a new project, then add a Activity called Aux then try and run it. You will then see the error. When you rename the Activity to something else and run it, it will then work fine.

There seems to be something about the name Aux as the Activity name.
By the way, it doesn't let you save the project as well.
 

cyiwin

Active Member
Licensed User
Longtime User
Hah, I found this because I made a code module named "AUX" and got the same error. I guess we just can't use that name.
 
Top