1. Re: meditor; Jonas may want to read this as well.

On Fri, 29 Nov 2002 13:29:33 +1100, Patrick.Barnes at transgrid.com.au
wrote:

>If you run a program, and you change it's focus for any reason, when you c=
lose it the editor window does not reappear, and won't unless you maximise =
it.

This took a while to track down...

in procedure onClick_RUN(), after
	err_msg =3D system_exec(exe, 2)=20
add:
	doEvents(0)	-- fixes elusive window minimise error

I think the problem was that the system_exec() call stops all
processing, but if windows sends the minimised app a message, then it
was being processed _after_ all the restore etc code.

Thanks, Patrick, I've been after this one for a while.

>If there is an instance of the editor open already, and you open another f=
or editting... (c:\euphoria\bin\medit\editor.exe "<filename>" ) <-- How I h=
ave my file associations set
>then it opens a dialog window with:
>"The instruction at 0041530d referenced memory at 00000000. The memory cou=
ld not be written"
>
>This is on win2k, with the compiled version of the editor.

The only way I could reproduce this was to run the source version of
the editor, and then invoke the shrouded/bound exe.
If that is not what is happening, ignore the rest of this paragraph.
My best guess is that the shrouded version is not passing the string
"MEditorFile" undamaged to the ipc routines (and why should it)
If just one byte off on the shared memory it would crash.
My second guess is that if you were running say code genie version
3.09.12 with single instance handling enabled, and then attempted to
run 3.10.2, or vice versa, it would crash (assuming the guys 'n gals
at code genie haven't already coded round it).
So my advice would be to only run one "version" on a machine, where
version is in this case extended by source/bound/shrouded status.

If you think I'm right with this, I could change the ipc code to add
version and packaging method info to the control strings.
[bound programs return command_line() of x.exe x.exe params, for]
[fullsource vs shrouded my best bet is to open the .exw file and see]
[if it starts with a comment. I shall endeavour not to release bound, and]
[bound and shrouded, versions.]

Jonas, by any chance you are leaving the source version running when
you test run the bound, shrouded version?

Pete

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu