|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sun Aug 26, 2007 8:51 am
[2.01] Unexplainable Crash Running An Alias to Turn on Buttons |
Okay I don't even know how to explain this one. I have an alias simply named ON. I keep buttons on a toolbar to turn on all different items of my curing system. This ON alias contains all the aliases to turn those buttons on and set the variables to true. I have an OFF alias that does just the opposite.
When I type in ON it says error something and then Access denied. I can't send a bug report for some reason.
If I just click the buttons, they work just fine. I just can't activate them with my alias. This is a problem if I get jumped in the game and need to activate all my curing at once. I can't even tell where the error is.
The error says
Error parsing command:
System Error. Code: 5.
Access is denied.
Then it just crashes when I close that dialog and try to click somewhere else.
exception class : EAccessViolation
exception message : Access violation at address 7C918FEA in module 'ntdll.dll'. Write of address 00000010.
Main ($ff4):
7c918fea +05b ntdll.dll RtlpWaitForCriticalSection
7c901046 +041 ntdll.dll RtlEnterCriticalSection
004871d0 +028 cMUD.exe Graphics 2214 +4 TCanvas.Lock
0050f41d +015 cMUD.exe Controls 8913 +1 TCustomControl.PaintWindow
00509eee +052 cMUD.exe Controls 6402 +4 TWinControl.PaintHandler
0050a514 +04c cMUD.exe Controls 6547 +6 TWinControl.WMPaint
0050f3f3 +01b cMUD.exe Controls 8907 +2 TCustomControl.WMPaint
00505f93 +1df cMUD.exe Controls 4645 +53 TControl.WndProc
00509cc2 +18e cMUD.exe Controls 6342 +33 TWinControl.WndProc
00509894 +034 cMUD.exe Controls 6237 +3 TWinControl.MainWndProc
0047fef8 +014 cMUD.exe Classes 10966 +8 StdWndProc
7c90eae0 +010 ntdll.dll KiUserCallbackDispatcher
7e4196c2 +00a USER32.dll DispatchMessageA
0052ee48 +0ac cMUD.exe Forms 6873 +13 TApplication.ProcessMessage
0052ee8f +00f cMUD.exe Forms 6892 +1 TApplication.HandleMessage
0052f12a +0a6 cMUD.exe Forms 6976 +16 TApplication.Run
00db2304 +088 cMUD.exe CMUD 336 +18 initialization
7c91312f +069 ntdll.dll RtlUnicodeStringToAnsiString
7c812b94 +0b6 kernel32.dll GetVersionExA |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sun Aug 26, 2007 8:56 am |
Okay clicking the button works, but if I manually type any of the aliases that activate the button then the same error occurs.
For instance, here is one alias.
Alias:
onelixirs
Value:
AutoElixirs=1
#noop %btncol( btn_elixirs, black, green)
info_notice Auto Elixirs Activated
elixirheal
It just crashes.
In the button value I have:
#if (@AutoElixirs = 1) {offelixirs} {onelixirs}
I'm sure something is wrong. I just don't know what because it worked perfectly fine in 1.34. |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Sun Aug 26, 2007 2:11 pm |
Looking at the error log especially the last two lines it's the threading that's having a problem. Since 1.34 didn't have threading and executed everything in sequence that is why it worked.
As you have posted both the alias and button details I'd say that Zugg has enough information to reproduce the bug, if not he'll be back in touch for more.
EDIT: By last two lines I actually mean the first two after Main: |
|
_________________ Taz :) |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Aug 27, 2007 5:59 pm |
I can't get this to fail here.
I need to see the XML code for the button, and for the aliases. Just click on the XML tab for each one and copy/paste the XML to your post (within a code tag). When I used the alias you gave above, it properly turned on the button and colored it green. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Aug 27, 2007 7:53 pm |
Well I would but...I can't seem to do anything without it crashing. I click the XML tab to view the code and then try and click another button to see it's code and it changes the name of that button to the one I just looked at and won't let me click on it (in the editor). I have to close the editor and reopen it.
Here is a couple at least.
Code: |
<button caption="Elixirs" toolstyle="true" transparent="false" color="aliceblue" priority="1050" id="105">
<value>#if (@AutoElixirs == 1) {offelixirs} {onelixirs}</value>
</button> |
Code: |
<alias name="onelixirs" id="86">
<value>AutoElixirs=1
#noop %btncol( btn_elixirs, black, green)
info_notice Auto Elixirs Activated
elixirheal</value>
</alias> |
Code: |
<alias name="offelixirs" id="84">
<value>AutoElixirs=0
#noop %btncol( btn_elixirs, grey, red)
info_notice Auto Elixirs Deactivated</value>
</alias> |
Code: |
<button caption="Health" toolstyle="true" transparent="false" color="aliceblue" priority="1060" id="106">
<value>#if (@AutoSip == 1) {offsip} {onsip}</value>
</button> |
Code: |
<alias name="onsip" id="87">
<value>AutoSip=1
#noop %btncol( btn_sip, black, green)
info_notice Auto Health and Mana Sip Activated</value>
</alias> |
Code: |
<alias name="offsip" id="85">
<value>AutoSip=0
#noop %btncol( btn_sip, grey, red)
info_notice Auto Health and Mana Sip Deactivated</value>
</alias> |
I get the errors on any button (even these) if I just try and enter the on or off aliases from the command line. |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Mon Aug 27, 2007 8:03 pm |
|
|
|
|
|
|