access violation

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Stan001
Newbie
Posts: 5
Joined: Fri Apr 25, 2008 5:48 pm

access violation

Post by Stan001 » Tue Jan 27, 2009 7:01 pm

I took this example from the forum and if I try to edit in dialog editor I get access violation as soon as I try to close the dialog editor. I wanted to add the MainMenu feature yto some of my macros and I can't then edit them as soon as I add MainMenu=something and then try to edit in the dialog editor I get access violation. I don't know how to then change the size of the dialog or anything.

Dialog>MyDialog
Caption=Jordans Task Menu
Width=455
Height=279
Top=CENTER
Left=CENTER
Button=Run Tasks,184,146,98,20,3
Button=Exit Macro,184,170,97,20,2
CheckBox=msCheckbox1,DWC,24,140,97,False
CheckBox=msCheckbox2,Start Disk Defrag,24,160,97,False
CheckBox=msCheckbox3,Start Disk Clean,24,180,97,False
Button=www.youtube.com,24,17,120,25,10
Button=www.myspace.com,24,48,120,25,11
Button=www.yahoo.com,24,80,120,25,12
Button=www.mjtnet.com,24,112,120,25,13
Button=www.google.com,150,17,120,25,14
Button=www.itunes.com,150,48,120,25,15
Button=www.Morrowind.com,150,80,120,25,16
Button=www.aol.com,150,112,120,25,17
MainMenu=Browsers,IExplorer(101)
MainMenu=Applications,NotepPad(201),Paint(202),Itunes(203)
MainMenu=Games,World Of Warcraft(301)
EndDialog>MyDialog

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jan 27, 2009 7:18 pm

I've used the dialog editor with mainmenu= objects in multiple versions of Macro Scheduler and I've never seen a problem. I just copied the posted code into the dialog editor, made some changes and saved it, no problems. Can you post your exact error? Perhaps there is a conflict with some other software.

Stan001
Newbie
Posts: 5
Joined: Fri Apr 25, 2008 5:48 pm

Post by Stan001 » Tue Jan 27, 2009 7:31 pm


User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Jan 27, 2009 8:30 pm

I ran the Macro, looked at the resulting Dialog Window.
Made changes to WIDTH and HEIGHT, saved it.
Ran it again, saw the new dimensions take effect.
Made changes back to original sizes, saved it, and saw results again.

No Problems. Cannot duplicate the problem here.

Are you sure you don't have another copy of this macro open in a minimized editor? Could someone on your network be editing the macro file at the same time? Any change you made the macro ReadOnly by mistake or intentional and just forgot about it? When I compile a script I usually make a ReadOnly copy for future editing purposes.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Stan001
Newbie
Posts: 5
Joined: Fri Apr 25, 2008 5:48 pm

Post by Stan001 » Tue Jan 27, 2009 8:42 pm

Maybe people are not understanding me.

If I select the text and right click and select Edit Mydialog and I either do NOTHING or have tryed to resize. As soon as I click the red X on the Dialog Designer it pops up with those 2 errors.

Yes you can go in and change the numbers using regular editor but then you need to guess the size you want to make the Dialog.

And I have tryed everything. Closed just about everything and rebooted and only have one thing open. And THE BIG thing is as soon as I take out the mainmenu items I can edit in Dialog Designer fine. It's something to do with adding the mainmenu items.

So I guess its my computer .. I don't know what else to do.

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jan 27, 2009 9:24 pm

Maybe people are not understanding me.
I'm pretty sure I understand. I'm also pretty sure it is something unique to your setup. It might also be something only Marcus will be able to help you with. But it won't hurt to gather info and maybe point you in directions that you can maybe find the problem yourself.

What version of Macro Scheduler are you using?

Anything else in Macro Scheduler giving you AV errors?

Do you have a high power video card?

Have you tried disabling antivirus software?

Have you looked up the error on the microsoft website?

Stan001
Newbie
Posts: 5
Joined: Fri Apr 25, 2008 5:48 pm

Post by Stan001 » Tue Jan 27, 2009 9:43 pm

using 11.1.01 as far as I know it's the latest.

No special video card , Windows XP and disabled everything possable.

Only get error if trying to do as stated. No other errors ever using this program till I tryed to add mainmenu=

Did not look up error as it states it's in msched.exe. If it said error in explorer or something else then yes I would have checked microsoft.

sorry if you took what I said the wrong way. Just fustrated that the error only seems to be happening for me and I thought it was the way I was doing something. If everyone else does the same thing as I stated and then don't get an error. then it's something unknown on my computer.

The way I read other posts it sounded as though people just changed the numbers in the window size or they ran the script. I can run the script and I can manually change the numers but can not use the dialog editor cause as soon as I click the red X on the dialog editor I get the errors.

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jan 27, 2009 11:09 pm

I think this problem is going to have to wait until Marcus can look into it. I searched the forum and found that the dialog builder has caused
Access Violations in the past. Also looked up "Invalid pointer operation" (the other error message from your screen shots) on Google. Roughly half of the first page contains references to Delphi memory management issues. Macro Scheduler is written in Delphi.

Sorry I wasn't more helpful.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Wed Jan 28, 2009 3:20 am

I did misunderstand, but your explanation made a difference.

I also get the same error messages. Tested with XP PRO SP2 with Macro Scheduler 11.1. So I can also confirm the problem, but a solution is not within my knowledge base, will need Marcus for this one.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Wed Jan 28, 2009 5:24 am

I also get the error on my home computer.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Jan 28, 2009 9:47 am

This issue has been replicated and the cause identified and fixed in production. Expect an update soon. Thanks for bringing it to my attention.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts