end of line comment crash

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

end of line comment crash

Post by dont_know_at_all » Tue Oct 07, 2003 11:32 pm

In EQLib_MacroCommands.cpp, line 218, szResult is non-zero and bogus. The crash is in the sprintf.

In VarCalc
szVar ="cursong 3.00-1 | restart song"


So, I put a break point in VarCalc and run this macro:

Code: Select all

sub main
/declare mytest global
/varset mytest 0
/varcalc mytest @mytest+1      | comment test
/echo @mytest
/return
It doesn't crash. Something funky is going on. The crash from the other macro was in an event handler.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Thu Oct 09, 2003 3:38 am

Get me a simple repro macro and I'll figure it out ;)
- Plazmic