|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Mon Aug 11, 2008 2:06 pm
[2.35] JScript/COM Issue |
The following are steps to reproduce an odd JScript/COM problem that charneus and I are having while trying to use a script by Dharkael.
Steps to reproduce.
1. Run CMUD.
2. Press escape.
3. Paste #FUNCTION ElapsedMinutes($t1,$t2) {#return {%mss("(Date.parse('"$t2"')"-"Date.parse('"$t1"'))/1000/60","JScript")}} into command line and press return.
4. Paste #echo @ElapsedMinutes("5/22/2008 12:43:16 PM","5/22/2008 12:53:16 PM") and press return.
5. Press the "OK" button.
6. Press return on the command line.
7. Press the "Close" button.
8. Click the red cross at top right of CMUD window.
9. Press the "Yes" button.
Code: |
date/time : 2008-08-11, 14:55:43, 728ms
computer name : LDS086
user name : blank <admin>
registered owner : IT Services / York St John University
operating system : Windows XP Service Pack 3 build 2600
system language : English
system up time : 1 hour 53 minutes
program up time : 1 minute 14 seconds
processors : 2x Intel(R) Pentium(R) 4 CPU 3.80GHz
physical memory : 2151/3070 MB (free/total)
free disk space : (C:) 207.82 GB
display mode : 1280x1024, 32 bit
process id : $eb0
allocated memory : 19.89 MB
executable : cMUD.exe
exec. date/time : 2008-07-29 03:08
version : 2.34.0.0
compiled with : BCB 2006/07
madExcept version : 3.0h
contact name : Taz
contact email : blank
callstack crc : $036230c6, $312d7b07, $312d7b07
exception number : 1
exception class : EAccessViolation
exception message : Access violation at address 036230C6. Read of address 00000003.
Main ($354):
036230c6 +014 ???
00cb4516 +046 cMUD.exe zsh 192 +3 TZSHScriptControl.Close
00cb47b9 +00d cMUD.exe zsh 247 +1 TZSHScriptControl.Destroy
00cba66d +029 cMUD.exe ekWSHmain 2845 +3 TekWSHControl.Destroy
00404da4 +008 cMUD.exe System 12 +0 TObject.Free
00cbbb4a +012 cMUD.exe cmudcore 126 +3 TCoreDat.DataModuleDestroy
0047c0a7 +02b cMUD.exe Classes TDataModule.DoDestroy
0047bf7b +027 cMUD.exe Classes TDataModule.BeforeDestruction
004051b1 +009 cMUD.exe System 12 +0 @BeforeDestruction
0047bf86 +006 cMUD.exe Classes TDataModule.Destroy
00405152 +002 cMUD.exe System 12 +0 @ClassDestroy
00404da4 +008 cMUD.exe System 12 +0 TObject.Free
00459f90 +008 cMUD.exe SysUtils FreeAndNil
00cbb898 +018 cMUD.exe cmudcore 66 +2 FreeCore
00ccfd0a +15a cMUD.exe PARENT 3876 +61 TParentForm.FormDestroy
004a022d +031 cMUD.exe Forms TCustomForm.DoDestroy
004a00b6 +052 cMUD.exe Forms TCustomForm.Destroy
00520ea2 +012 cMUD.exe CustomForm 65 +1 TzCustomForm.Destroy
00727095 +019 cMUD.exe International 47 +2 TInterForm.Destroy
00727b3e +012 cMUD.exe zsForm 93 +1 TzForm.Destroy
00a6c396 +012 cMUD.exe MultiForm 338 +3 TMultForm.Destroy
0047af9f +047 cMUD.exe Classes TComponent.DestroyComponents
0049df56 +032 cMUD.exe Forms DoneApplication
004514fe +026 cMUD.exe SysUtils DoExitProc
00405c39 +021 cMUD.exe System 12 +0 @Halt0
00e4e7de +0a2 cMUD.exe CMUD 353 +26 initialization
7c912c01 +069 ntdll.dll RtlUnicodeStringToAnsiString
7c812c24 +0b6 kernel32.dll GetVersionExA |
|
|
_________________ Taz :) |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Aug 11, 2008 3:19 pm |
Confirmed.
[Edit]
Oddly enough this just gives a JScript compilation error.
Code: |
#FUNCTION ElapsedMinutes($t1,$t2) {#return {%mss( "(Date.parse('"$t2"')"-"Date.parse('"$t1"'))/1000/60","JScript")}} |
Note the extra space after the opening parenthesis after %mss. |
|
_________________ Asati di tempari! |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|