Pelles C forum

Pelles C => Bug reports => Topic started by: stecoop on August 28, 2015, 02:54:15 AM

Title: Can't Paste Into Source File
Post by: stecoop on August 28, 2015, 02:54:15 AM
I have a blank source code file open (DisplayControl.c) and another source file open (Base_Code.c) in the IDE. I select several lines of code in Base_Code.c, copy (CTRL-C or the tool bar button) to the clipboard, switch to DisplayControl.c, and attempt to paste (CTRL-V, or the tool bar button)...and nothing happens. I can paste the code into a NotePad or WordPad file so I know it's on the clipboard, but I can't paste it into my blank source file. And after some experimentation, I've found I can't paste anything into a source file in the IDE from any external source at all! This has brought my project to a complete halt - I'm transferring programs from Microsoft Visual C (Ver. 5) to Pelles C.

BTW, I'm using Windows 10.
Title: Re: Can't Paste Into Source File
Post by: jj2007 on August 28, 2015, 04:08:43 AM
I can't paste anything into a source file in the IDE from any external source at all!

No problem here on Win7-64. Have you tried closing and relaunching the IDE, or rebooting? Sometimes the clipboard is really messed up, and Pelles C is rarely the culprit.
Title: Re: Can't Paste Into Source File
Post by: Bitbeisser on August 28, 2015, 06:50:39 AM
Works just fine for me, on both Windows 8.1/64 and Windows 10/64...

Ralf
Title: Re: Can't Paste Into Source File
Post by: Stefan Pendl on August 28, 2015, 12:15:03 PM
What release of PellesC are you using?
Title: Re: Can't Paste Into Source File
Post by: stecoop on August 28, 2015, 06:14:46 PM
I'm using version 8 of Pelles C.

On further experimentation, I've found I can't paste at all, even if I cut or copy from the same source file. I know what I'm cutting or copying is getting on the clipboard because I can open NotePad or WordPad and paste from the clipboard successfully.

I suppose I'll try re-installing Pelles C and see if that solves the problem. I'm on a new laptop and have been installing (and uninstalling) a lot of software over the last 3 weeks; it's possible Pelles got damaged.
Title: Re: Can't Paste Into Source File
Post by: stecoop on August 28, 2015, 06:51:46 PM
I downloaded the setup64.exe file again and ran it, re-installing Pelles C version 8.00.60.

I still cannot paste into files in the IDE. I even checked to make sure the files weren't read-only.

This is a deal breaker for me...I'm going to have to find another C compiler, even though I really liked the features I was seeing in Pelles.

Good luck to the rest of you.
Title: Re: Can't Paste Into Source File
Post by: avcaballero on August 28, 2015, 08:46:50 PM
Have you installed it as administrator?
Title: Re: Can't Paste Into Source File
Post by: stecoop on August 28, 2015, 11:31:12 PM
Yes, I installed as Administrator.
Title: Re: Can't Paste Into Source File
Post by: stecoop on August 29, 2015, 02:21:00 AM
A short time ago, Microsoft forced another update on me, the second one today. Right after the update finished, I got all setup to make a screen capture video of the problem I've been fighting with for the last 24 hours. I started recording, and went into Pelles IDE to demonstrate what I was doing when the problem began, and, wouldn't you know it, the problem has gone away. I can paste in the IDE again!

All I can figure is that one of yesterdays updates crippled the clipboard in a way that only manifested in Pelles IDE, and today's most recent update fixed the problem.

Are any of you Windows 10 users as frustrated with Microsoft as I'm becoming? I'm really beginning to miss Win98...again.
Title: Re: Can't Paste Into Source File
Post by: Bitbeisser on August 30, 2015, 06:31:38 AM
Are any of you Windows 10 users as frustrated with Microsoft as I'm becoming? I'm really beginning to miss Win98...again.
Well,...

As for your problem with Pelle's C, you should consider that this is such a trivial function that it isn't very likely to be a general problem with the IDE. I for one, when ever people come with programming issues in here and I want to check out their code (and they don't post a zipped project file), I am doing a copy&paste ALL THE TIME. And I am sure there a quite a few other regulars who do exactly the same. So this would have come up long, long time ago...

Ralf
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 05, 2015, 09:28:34 PM
Well, as of last night it started doing it again...I can't paste into the IDE >:(

And there are no Windows updates to blame it on this time.

I can't be the only person who has run into this problem.
Title: Re: Can't Paste Into Source File
Post by: RKSJBeck on September 05, 2015, 11:59:12 PM
I have had the *exact* same problem.  I could cut and paste from/into any application except Pelles C.  Except my issue isn't consistent.  I am running Win7 64 bit and Pelles V8.00.60 64 bit install and if Pelles is the first program run, it seems to not have the issue, but that could just be coincidence.  Needless to say it can get very annoying.
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 06, 2015, 02:04:33 AM
It's good to know I'm not the only one having this problem, which means it's not something hinky with my machine or operating system.

Could the authors/programmers please look into this - "pasting" is NOT a minor function; when you're working with ten's of thousands of lines of code, "pasting" is a very valuable function! ;D

And anybody else out in the land of Pelles C having this problem, even infrequently, please, speak up. A problem no one talks about is not going to get fixed.

For the record: I am using a Dell Inspirion 15 with an Intel Quad Core I7 processor, Windows 10 64 bit home edition, and Pelles C version 8.00.60 64 bit.
Title: Re: Can't Paste Into Source File
Post by: TimoVJL on September 06, 2015, 10:31:27 AM
Can you give an example for situation when it happens?
Try smaller MaxFileSize value in register or XML-file.
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 06, 2015, 03:03:56 PM
The first time it happened, I had just booted the computer, went in to Pelles C IDE and tried to copy and paste from one source file to another, but the paste function wouldn't work. For more than a day, no matter how I tried to paste, paste wouldn't work, until I set-up to record a screen capture of the problem, at which point paste started working again.

The second time it failed, I had been in Pelles C IDE all day and paste was working fine until it suddenly wasn't.

And as I pointed out earlier, the tool icon shows there is something on the clipboard, and I can paste into WordPad or NotePad, but not Pelles C IDE.
Title: Re: Can't Paste Into Source File
Post by: jj2007 on September 07, 2015, 01:03:24 AM
Are you working on any projects that use the clipboard (i.e. OpenClipboard() etc)?
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 07, 2015, 03:33:09 PM
I haven't been, but today, I dug out my Petzold and have begun exploring the clipboard to see what might be going on.
So far, I know that forcibly emptying the clipboard does not solve the problem; I also see that when I copy to the clipboard, four (4) formats are added to the clipboard, however, I have not yet determined what those formats are (I'm just getting started on this clipboard vivisection). I'll have more information later.
Title: Re: Can't Paste Into Source File
Post by: TimoVJL on September 07, 2015, 04:08:03 PM
Try Free Clipboard Viewer (http://www.freeclipboardviewer.com/)
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 07, 2015, 04:58:26 PM
Try Free Clipboard Viewer (http://www.freeclipboardviewer.com/)
Thanks, TimoVJL, but I think I'll learn more if I dissect the clipboard myself.

And the four (4) formats I found are: CF_TEXT, CF_OEMTEXT, CF_UNICODETEXT, & CF_LOCALE

Which gives me no clue as to why paste is not working :'(

I'm tempted to dig into the source code for the IDE, but that may be way beyond my skill level (I've always had trouble reading other peoples code).
Title: Re: Can't Paste Into Source File
Post by: jj2007 on September 07, 2015, 06:43:57 PM
I've asked whether you are working with the clipboard because Pelles C might not be the culprit. The clipboard chain is an old and messy beast, even Microsoft acknowledges this (http://blogs.msdn.com/b/ntdebugging/archive/2012/03/29/how-the-clipboard-works-part-2.aspx):

Quote
An obvious problem with this design is it relies on each clipboard viewer application to behave correctly, not to terminate unexpectedly, and to generally be a good citizen.  If any viewer decided not to be friendly, it could simply skip notifying the next viewer in line about an update, rendering the next viewer and all subsequent viewers impotent.

So it could well be that some other application is running/was running, maybe in the background. They are even dedicated repair tools (http://support.citrix.com/article/CTX106226).

When your problem hits you again, try to remember which applications you used shortly before.
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 07, 2015, 07:16:52 PM
I think I've found the culprit(s) - it's either WebRoot (my anti-virus software), or Windows Defender. I turned them off and I can paste again. At present, I can't seem to turn off one without turning off the other, but I suspect WebRoot is the cause - it has been overly aggressive in other situations and this just maybe another one of it's extremes. Hopefully there's a setting in WebRoot to make it leave Pelles C alone.
Title: Re: Can't Paste Into Source File
Post by: jj2007 on September 07, 2015, 10:06:45 PM
There are indeed plenty of hits for a WebRoot clipboard search.

The solution is to go to Webroot Identity Protection settings and turn OFF Identity Shield.

Full thread is here. (https://community.webroot.com/t5/Webroot-SecureAnywhere-Complete/Copy-Paste-Stops-Working-in-some-applications/td-p/21588) The WebRoot team firmly believes it's a good idea to turn the Windows clipboard off by default, and without warning the user. Wow! I thought Adobe was the dumbest software company on Earth...
Title: Re: Can't Paste Into Source File
Post by: Bitbeisser on September 09, 2015, 01:25:13 AM
There are indeed plenty of hits for a WebRoot clipboard search.

The solution is to go to Webroot Identity Protection settings and turn OFF Identity Shield.

Full thread is here. (https://community.webroot.com/t5/Webroot-SecureAnywhere-Complete/Copy-Paste-Stops-Working-in-some-applications/td-p/21588) The WebRoot team firmly believes it's a good idea to turn the Windows clipboard off by default, and without warning the user. Wow! I thought Adobe was the dumbest software company on Earth...
Well, while I have certain problems with Adobe as a company itself, I am pretty sure that there are a quite a few companies FAR ahead of them on top of that list...

Ralf
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 12, 2015, 02:08:13 AM
I can't really fault WebRoot for their aggressiveness - they have been very effective at protecting my computer. And, let's face it, hackers and virus writers are getting more aggressive.

I found I could set up WebRoot to ignore Pelles C IDE and I'll see how well that works for me. I'm a little reluctant to turn off the identity shield, at least for now; I have some confidential business info on this machine I want to keep protected.
Title: Re: Can't Paste Into Source File
Post by: stecoop on September 12, 2015, 02:26:26 AM
There are indeed plenty of hits for a WebRoot clipboard search.

The solution is to go to Webroot Identity Protection settings and turn OFF Identity Shield.

Full thread is here. (https://community.webroot.com/t5/Webroot-SecureAnywhere-Complete/Copy-Paste-Stops-Working-in-some-applications/td-p/21588) The WebRoot team firmly believes it's a good idea to turn the Windows clipboard off by default, and without warning the user. Wow! I thought Adobe was the dumbest software company on Earth...

WOW! This problem has been around for a while.

How about putting this issue in the FAQ? It might save others some frustration.