At 05:30 AM 3/2/2004, you wrote:
> I tried to write a macro to sort the contents of the clipboard. When
>executing it, vpw64.exe (6.12.1) crashes (under W2k, error-msg says an
>instruction @ 0x0044b7c8 tried to write to memory at 0x30312c35.)
>
>----------
>#100=Buf_Switch(Buf_Free)
>Clip_Ins()
>Sort_Merge("1,100",0,File_Size)
>Clip_Copy_Block(0,File_Size)
>Buf_Close(#100)
>--------------
>
>So probably I made an error in my macro?
>Would appreciate any help :-)
We cannot replicate the crash; perhaps it depends the contents of the clipboard.
In any case, you should use File_Save_As() before inserting the clipboard.
Also "Buf_Close(#100)" is meaningless and *unpredictable* !!
I think you want:
#100=Buf_Num
Buf_Switch(Buf_Free)
File_Save_As("c:\temp\file.tmp")
Clip_Ins()
Sort_Merge("1,100",0,File_Size)
Clip_Copy_Block(0,File_Size)
Buf_Quit(OK)
Buf_Switch(#100)
Ted.
|
|