access violation
Moderators: JRL, Dorian (MJT support)
access violation
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
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
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.
I can show you screen shots.
http://img134.imageshack.us/img134/1255/68755295at5.png
http://img510.imageshack.us/img510/7844/94205782ur7.png
http://img134.imageshack.us/img134/1255/68755295at5.png
http://img510.imageshack.us/img510/7844/94205782ur7.png
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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.
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!
Bob
A humble man and PROUD of it!
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.
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.
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.Maybe people are not understanding me.
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?
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.
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.
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.
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.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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.
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!
Bob
A humble man and PROUD of it!
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?