UE crashes after opening a file with a macro

Help with writing and playing macros

UE crashes after opening a file with a macro

Postby thomasm76 » Mon Aug 06, 2007 9:33 am

Hi,

I have a problem with some of my macros, that nearly drive my crazy. When running them, UE sometimes (but not always!) crashed.

I thought the problem could be fixed with the actual UE-Version, but now these problem-macros make UE crashing always.

But I think I found the reason: In these macros a file is loaded at the beginning (with "Open") and manipulated by the macro. When loading the file manually by myself and run the rest of the macro (without the "Open"-line) there's no problem at all.

So the reason is probably, that the file isn't fully loaded into UE while the macro is already going to do the next commands onto it.

Is there a possibility to make the macro wait until the file is fully loaded before continuing or is there a "wait"-command in macro language?
User avatar
thomasm76
Basic User
Basic User
 
Posts: 19
Joined: Sun Jun 18, 2006 11:00 pm

Re: UE crashes after opening a file with a macro

Postby Mofi » Mon Aug 06, 2007 11:01 am

First you should report this bug to IDM support per email. Zip your file, the macro file, your uedit32.ini and the crash dump file to an archive and attach this zip file. Write in the email also which version of UltraEdit you use on which operating system and explain in detail the steps necessary to reproduce the problem.

I have also detected some "synchronizing" problems. In your situation try following after the Open command:

Bottom
" "
Key BACKSPACE
Top
" "
Key BACKSPACE

Sometimes inserting a space and immediately deleting it helps.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: UE crashes after opening a file with a macro

Postby thomasm76 » Mon Aug 06, 2007 11:40 am

thanx Mofi,

but your hint didn't help, UE still crashes. I'll report that error to IDM.
User avatar
thomasm76
Basic User
Basic User
 
Posts: 19
Joined: Sun Jun 18, 2006 11:00 pm

Re: UE crashes after opening a file with a macro

Postby mrainey56 » Mon Aug 06, 2007 1:04 pm

Would a delay at the start of the macro be of any help? Something like this as the next two lines after opening the file:

Loop 10000
EndLoop
User avatar
mrainey56
Master
Master
 
Posts: 212
Joined: Tue Jul 27, 2004 11:00 pm
Location: Spartanburg, South Carolina

Re: UE crashes after opening a file with a macro

Postby thomasm76 » Tue Aug 07, 2007 1:09 pm

I think I found the reason for this problem. Because of getting the files from DOS and UNIX-Systems I turned "automatic conversion into DOS-format" in UEs option ON.

When turning this conversion OFF there's no crash.
User avatar
thomasm76
Basic User
Basic User
 
Posts: 19
Joined: Sun Jun 18, 2006 11:00 pm


Return to Macros