Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Bug in WindowEdit v1.8.5  (Read 3283 times)

0 Members and 1 Guest are viewing this topic.

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Bug in WindowEdit v1.8.5
« on: April 01, 2008, 11:24:26 AM »

When you try to open a file and you cancel the "Open File" window it shows a "Error opening file" window.
Logged

Net

  • Gripped Software Programmer
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 48
    • View Profile
    • Čurina
Re: Bug in WindowEdit v1.8.5
« Reply #1 on: April 01, 2008, 06:54:22 PM »

I think it's because in WME code there is called sequence like this (eg. in Object Pascal):

procedure OpenButton.OnClick(Sender: TObject);
begin
  OpenDialog.Execute;
  Window.Name:= OpenDialog.FileName;
end;

so when you close the OpenDialog window (by pressing CLOSE button), the variable Window.Name can't be set, because OpenDialog.FileName is not set and throws the error.

It can be avoided by using something like this:

if OpenDialog.Execute then
begin
  Window.Name:= OpenDialog.FileName;
end;

this code controls, if in OpenDialog was opened some file, else the code inside is not launched.


I think that Mnemonic just overlook this  ;)
Logged

MMR

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 349
  • http://mmrdeveloper.wordpress.com/
    • View Profile
    • TinyWME
Re: Bug in WindowEdit v1.8.5
« Reply #2 on: April 01, 2008, 09:38:21 PM »

I think it's very very easy to solve  ;) it's some kind of oversight by Mnemonic but nevertheless it would be good to fix  ::)
Logged
 

Page created in 0.164 seconds with 18 queries.