Menu

#33 Paths containing spaces

v1.0
open
legalize
New Package (6)
5
2002-07-02
2002-07-02
Anonymous
No

When a path containing spaces is specified in
the 'Database Filename' field, an error occurs in the
OpenDatabase method called inside the
create_package() sub, and after that many other
errors occur, since the object wasn't correctly set.

I took a look at the code and noticed that there's an
if statement that puts double-quotes around the
path if it contains spaces, and that's the whole
problem.

I would like to suggest too a little modification in
the check() sub, since the way the error is shown is
very confusing (I had to take a look at the source
code to understand the message). I'd suggest
something like:

==========
Err Number: 123
Description: something
Source: asd

Installer Last Error:
qweasdzxc
==========

Discussion

  • legalize

    legalize - 2002-07-02

    Logged In: YES
    user_id=36316

    Thanks for the bug report!

    I believe this is no longer a problem in version 1.1, as I was
    not able to reproduce it there. I will double check to make
    sure there is not a problem with quoting.

    I will also look at enhancing the check routine in the manner
    that you suggest. This routine was there mostly for myself
    as a developer and an end user shouldn't ever see that dialog,
    but it should be more clear when the occasional bug creeps
    in.

     
  • legalize

    legalize - 2002-07-02
    • assigned_to: nobody --> legalize
     

Log in to post a comment.