运行codeblocks时出现的问题解决

简介: When I try running Code::Blocks, I get the following error message: Another program instance is already running.

When I try running Code::Blocks, I get the following error message:

Another program instance is already running. Code::Blocks is currently configured to only allow one running instance.

You can access this Setting under the menu item 'Environment'.

I had a similar problem before with e.g. Google Chrome when I didn't shut it down correctly, but for Chrome, I managed to locate the lock file, delete it, and it solves the problem.

For Code::Blocks, I looked around and tried several proposed solutions, but none of them worked:

  • look for the process (ps -A | grep 'codeblocks') and kill the process

    I found a stray process this way, but killing it did not help.

  • allow multiple instances Setting under 'Environment' menu

    I can not run any instance in the first place, so can not access the menu.

    I tried running Code::Blocks from terminal with codeblocks --multiple-instances but that parameter must have been abandoned some time ago, as it is no longer recognized.

  • I looked all over for some kind of a lock file, to try and delete it

    Unfortunately, I didn't find anything that looked to me distinctly like the lock file :(

Did anybody encounter a similar problem, and knows how to solve it? Any help would be great, as searching around only revealed people with the same problem unsolved, or solved by one of the solutions I outlined above (which didn't help).

I'm running 64b Fedora17.

 

解决方法:

Uh, sorry everybody, looks like I have this annoying habit of finding a solution within minutes of complaining about the problem, instead in my "look for solution" phase.

I found the lock file to delete and fix the problem: deleting /tmp/Code::Blocks-username fixes the problem.

Some further solutions are outlined in the Code::Blocks official forums, including how to change the settings from "allow single instance" to "allow multiple instance" without actually running Code::Blocks.

主要是看http://forums.codeblocks.org/index.php?topic=8529.0

相关文章
|
架构师 测试技术 Linux
嵌入式软件架构中抽象层设计方法
嵌入式软件架构中抽象层设计方法
647 0
|
安全 网络安全 开发工具
git 提示:fatal: Could not read from remote repository.
git 提示:fatal: Could not read from remote repository.
2368 0
git 提示:fatal: Could not read from remote repository.
|
监控 应用服务中间件 Linux
轻松解决日志文件积压问题:掌握logrotate的技巧
轻松解决日志文件积压问题:掌握logrotate的技巧
1437 1
|
人工智能 自动驾驶 数据安全/隐私保护
人工智能的伦理困境:我们如何确保AI的道德发展?
【10月更文挑战第21天】随着人工智能(AI)技术的飞速发展,其在各行各业的应用日益广泛,从而引发了关于AI伦理和道德问题的讨论。本文将探讨AI伦理的核心问题,分析当前面临的挑战,并提出确保AI道德发展的建议措施。
|
安全 网络安全 数据安全/隐私保护
HTTPS中的加密算法
HTTPS中的加密算法
|
存储 监控 数据可视化
常见的分布式定时任务调度框架
分布式定时任务调度框架用于在分布式系统中管理和调度定时任务,确保任务按预定时间和频率执行。其核心概念包括Job(任务)、Trigger(触发器)、Executor(执行器)和Scheduler(调度器)。这类框架应具备任务管理、任务监控、良好的可扩展性和高可用性等功能。常用的Java生态中的分布式任务调度框架有Quartz Scheduler、ElasticJob和XXL-JOB。
5580 66
|
监控 Java 数据库连接
Spring高手之路17——动态代理的艺术与实践
本文深入分析了JDK和CGLIB两种动态代理技术在Spring框架中的应用。讨论了动态代理的基础概念,通过实例展示了如何实现和应用这两种方法,并比较了它们的性能差异及适用场景。进一步,探讨了在动态代理中实现熔断限流和日志监控的策略,以及如何利用动态代理优化Spring应用的设计和功能。
373 6
Spring高手之路17——动态代理的艺术与实践
|
NoSQL 编译器 Linux
CodeBlocks-20.03下载安装及中文教程
CodeBlocks-20.03下载安装及中文教程
5226 5
|
网络协议 算法 中间件
【总结】单片机重点知识总结记录之CMSIS详解(六)
【总结】单片机重点知识总结记录之CMSIS详解(六)
1823 0
MCU最小系统电路设计(以STM32F103C8T6为例)-2
MCU最小系统电路设计(以STM32F103C8T6为例)
MCU最小系统电路设计(以STM32F103C8T6为例)-2

热门文章

最新文章