delphi IDE : danger stack overflow 错误

最近,Delphi2007,启动时,会出现如下错误,确定后,ide没反应,死掉,只能强制结束。

 image

参考:Found the reason of "Stack overflow"

那边说的是mmx 7.10过期了

可是,我的delphi都没有载入mmx,就比较奇怪了。

应该不是mmx的问题,用Delphidistiller重置了也没用

临时解决办法:

用DelphiDistiller 禁用掉start page ide package 后,IDE可以启动,可以编译。

由此可见,问题应该在IE,想办法重装IE。

___________

ps:

重装ie也不管用,重装系统后,解决

- 阅读全文 -

在Dropbox同步git版本库

使用过 Dropbox 的人都知道,其只能设置同步名为 My Dropbox 的文件夹,也就是说你不能随意设置想要同步的文件夹,

今天介绍两个微软自己提供的工具(via Cameos),分别适合于 Windows XP 及 Vista、Win7。

看实例:

1、针对 Windows XP 用户,请使用 junction.exe 工具

首先下载 junction.exe,如果你想让 D 盘下的 Data 文件夹与 Dropbox 连接使用,开始 > 运行 > cmd,输入如下命令

C:>junction d:data "d:My Dropbox"

此时你会发现 Data 文件夹和 My Dropbox 文件夹内容相同,在 Data 的任意操作都会继承到 My Dropbox 里,反之相同。

2、针对 Vista、Win7 用户,请使用系统自带的 mklink 命令

例子相同,首先在开始菜单中右键 “命令提示符”,选中 “以管理员身份运行”,之后输入

C:>mklink /d d:data "E:My Dropbox"

现在只要运行着 Dropbox 客户端,Data 文件夹内的内容就会同步到服务器上。

P.S. 命令行中加引号是由于文件夹名中有空格。

- 阅读全文 -

Beyond Compare IDE Expert – Delphi 2010 version

细节请看: www.jed-software.com/bc.htm.

新的特性可以让你查看到一个修改后的源文件和旧版本的区别。

新的命令菜单在”Edit”下的Compare子菜单下。

The new command is available in the Compare sub menu and is only enabled when the active file in the editor is the same name as an original source file that shipped with the IDE and is not in the original location.

image

- 阅读全文 -

lazarus的串口控件SynaSer

记录一个lazarus的串口控件SynaSer serial library

支持win32和Linux,可惜不支持wince

主要是Synapse TCP/IP library控件,用于delphi。

简单使用方法,算是有点怪异的。

var
  ser:TBlockSerial;
begin
  ser:=TBlockserial.Create;
  try
    ser.RaiseExcept:=True;
    ser.Connect('COM2');
    ser.Config(19200,8,'N',0,false,false);
    writeln (ser.ATCommand('ATI8'));
  finally
    ser.Free;
  end;
end.

下载

- 阅读全文 -

lazarus 奇怪的“compilation aborted”错误

今天编译一个lazarus的项目,发现只要编译,就会出现

xxxx.pas(1,1) Fatal: Compilation aborted

没有其他的错误指示。

在尝试替换ide,都发生相同的错误后,可以确定错误在pas文件里面。

经过比对之前的代码,发现在添加了如下代码后出现编译错误

property Device:TDevice index m_Device read GetDevice;

在delphi里面,这就是一个index属性的声明,可是,fpc里面,就会发生编译错误。

后,参考fpc的语法,正确的index属性声明应为:

property Device[AIndex:integer]: TDevice read GetDevice;

修改后,编译一切顺利。

记之。

- 阅读全文 -

colinux 新版(0.7.3以后)无法启动网络的问题

今天更新了CoLinux 为最新的稳定版0.7.5,在启动原先0.7.3建立的debian镜像文件时,出现

colinux:~# /etc/init.d/networking restart
>> Reconfiguring network interfaces...SIOCSIFADDR: No such device
>> eth0: ERROR while getting interface flags: No such device
>> SIOCSIFNETMASK: No such device
>> eth0: ERROR while getting interface flags: No such device
>> Failed to bring up eth0.

启动时也有相应的信息。

不管eth0是设置了什么网络,Slirp,tap,pcap或者ndis,都是一样的。

原因:

The problem is: Debian is *trying* to be smart.
Every time CoLinux starts up, it automatically generates a new MAC address
for each adapter, seen here in your log:
configured TAP at '' device as eth0
MAC address: auto generated
configured PCAP bridge at '' device as eth1
MAC address: auto generated
configured Slirp as eth2
MAC address: auto generated
Every time a new MAC address is generated, debian will rename your ethX
device.
Set a MAC address for each adapter in your CoLinux config file and clear
out debian's previous failed network connections.

 

就是说,debian的智能化处理,每次启动时,为每个网卡自动生成一个新的mac地址,而debian就重新生成一个ethx的设备。

而udev系统有个规则,保存在"/etc/udev/rules.d/z25_persistent-net.rules",只允许里面记录的mac地址的网卡生成。所以导致了失败。

- 阅读全文 -

Cooperative Linux 0.7.5 released

colinux 发布0.7.5新版,更新如下:
  Version 0.7.5
  * Bug #1959846, #2760666: Don't crash the host, if an other virtualization
    runs in VMX mode.

  Network:
  * Bug #2849262: SLiRP: Active FTP failed with "500 Illegal PORT command".
    Environment COLINUX_HOST_IPADDR overwrites auto detected host ip address.

  Console and daemons:
  * Insert keys from fltk console without keyboard mapping. (Paolo Minazzi)
  * New: NT console WinKey+V paste keys from clipboard. (Vladislav Grishenko)
  * Linux as host: Handle extended keys, for example ALT+CurRight.
  * Automatically add network dependency to coLinux as service.
  * Version informations about binutils and SVN revision added to daemon file.

  Kernel:
  * Remove floating point handling from passage page code. FPU save/restore
    only on demand and only inside Linux guest kernel, if Linux kernel or Linux
    userland needs the FPU. In cases where FPU was not used on Linux guest side,
    the registers of FPU are not touched. That saves some time between operating
    system switches. It's 1 percent (or less) faster now.
  * Increase CO_LINUX_API_VERSION to 13, avoids crashes with older builds.
  * cloop updated to version 2.625
  * Forward plain text panic message instead "terminated with code 3".

  Buildsystem:
  * Bug #2847393: Configure detected wrong program versions. (Steven Chen)

  Updated libraries and tools:
  * w32api 3.13
Download CoLinux 0.7.5

- 阅读全文 -

从firefox移除Java quick Start插件

在安装了JavaSE 6 update 10(或者以上),就会在firefox的附加组件里面看到一个“Java Quick Start”的组件,并且,只能禁用和启用,而“卸载”是灰色的,就是说不能卸载。

image

卸载办法:

打开  “控制面板”——Java——高级

如下图:

image

取消选中图中选择的项,确定,重启firefox。

就会发现,Java Quick Start扩展已经卸载了。

 

参考:http://forums.mozillazine.org/viewtopic.php?f=38&t=921325&start=0

- 阅读全文 -

DelForExp 2.5.3 For 2010 修改版

DelForExp 是delphi的一个自动格式化插件,可选择格式化当前编辑文件或者打开文件,甚至是整个工程文件。

如下图:

image

image

在使用了shadowstar codefast 后,深深的为其快速格式化当前文件的功能折服,因为经常都是写了一段代码后,才发现格式乱得一塌糊涂,快捷键一按,一切井井有条,多好。可惜,codefast一直都没发现有for 2010的版本。delforexp 终于有同志放出for 2010的版本,可是,每次格式化当前文件,都需要去打开菜单,然后显示对话框,然后选择格式化当前文件,实在是麻烦,因此做了修改:

添加菜单:格式化当前文件

添加快捷键:ctrl+alt+tab

如同codefast,按快捷键即可迅速格式化当前文件。

image 

ps:暂时只for d2010,压缩包中的for其他版本为未修改版本。

下载

- 阅读全文 -

热门文章

最新文章

最近回复

  • wfzlxvvgte: 你的文章让我感受到了不一样的风景,谢谢分享。 http://ww...
  • sfiutfecff: 你的文章内容非常用心,让人感动。 http://www.55ba...
  • dyqoaaqpdc: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • vrfedcneqp: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • wmhoubuazg: 你的文章内容非常用心,让人感动。 http://www.55ba...
  • khhhttrppu: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • atjzyxiutr: 你的文章内容非常用心,让人感动。 http://www.55ba...
  • dlamzmkwwi: 你的文章内容非常卖力,让人点赞。 http://www.55ba...
  • predcxvhsz: 《蛋黄人》国产剧高清在线免费观看:https://www.jgz...
  • qmffcradmz: 《逃狱者》剧情片高清在线免费观看:https://www.jgz...

分类

标签

其它