Where p is a pointer to the clipboard data (which is apparently a NULL pointer).
You seem to be using cm_loadselectionfromclip. Unfortunately I couldn't find any situation where this would crash, but you should double check the data you pass to the clipboard. Make sure that you end each name with <cr><lf> (characters #13 and #10).
Where p is a pointer to the clipboard data (which is apparently a NULL pointer).
You seem to be using cm_loadselectionfromclip. Unfortunately I couldn't find any situation where this would crash, but you should double check the data you pass to the clipboard. Make sure that you end each name with <cr><lf> (characters #13 and #10).
AS the complete script also fill the clipboard, I already got such error in C because i was not respecting the following sequence :
Loop xxx times to get clip handle with OpenClipboard(NULL)
if OK
GetClipboardData
GlobalLock
-->Read data in local buffer <--
GlobalunLock
CloseClipboard
Use your local buffer
endif
I do not have the error if i put a wait time before sending windows messages.
TC is not copying the data to a local buffer, it access the buffer directly which it gets with GlobalLock. The buffer shouldn't go away as long as the memory is locked with GlobalLock.
How can I reproduce the error? Can you post what exactly you write to the clipboard, please?