我的Windows应用程序的特殊问题 [英] Peculiar problems with my windows application

查看:86
本文介绍了我的Windows应用程序的特殊问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚用C ++开发Windows应用程序.
尽管整个程序运行良好,但仍存在一些特殊的问题.
在下面.

我的应用程序使用两个不同类型的记录的两个不同的数据库.
我使用C I/O显式地处理所有数据库操作(即fread,fwrite和fseek).

我注意到一旦应用程序处理了几条记录,显示就会开始变得模糊;此外,在处理了几条记录后,对话框也开始变得不可见.为什么会这样?

另一个奇怪的现象是,在应用程序按照特定的例程处理多个数据库之后,计算机屏幕上似乎出现了云水飞溅,几乎隐藏了所有显示内容(包括操作系统的任务栏)以及其他内容.可见的窗框明显模糊.

我注意到当显示器具有图形,尤其是JPEGS时,模糊更容易发生.

这些可能是什么原因?

是因为我的课很多吗?
是因为我的功能很长吗?
是因为我使用的是笔记本电脑,而不是台式机.
是我的计算机VGA卡吗?
是因为我使用fread,fwrite和fseek创建和处理数据库,而不是使用Oracle和SQL吗?

I just finished developing a windows application in C++.
Although the whole program is running fine it has a some peculiar problems explained
below.

My application uses a two different data-bases of two different types of records.
I handle all data base operations explicitly on my own using C I/O (i.e fread, fwrite and fseek).

I notice that once the application handles several records, the display starts getting blurred.Also, after several more records have been handled the dialogue boxes starts getting invisible. Why are these so?

Another strange phenomenon is that, after the application handles several data bases in a certain routine, there occurs a seeming plash of cloud on the computer screen that hides almost all display(including the operating system''s task''s bar) and whatever is visible of the window frame are clearly blurred.

I notice that the blurring occurs more readily when the display has graphics especially JPEGS.

What could be the cause of these?

Is it because my classes are large?
Is it because my functions are very long?
Is it because I use a laptop and not a desktop computer.
Is it my computers VGA card.
Is it because I create and handle the data base-base with fread, fwrite and fseek rather than using Oracle and SQL?

What can be the cause and what are (or is) the solutions?

推荐答案

程序中大量丢失了GDI对象.使用任务管理器观察应用程序中GDI对象的使用.
这些对象可能是以下功能的结果:
CreateBrush,CreatePen,CreateIcon,CreateCursor,CreateBitmap等.
所有这些对象必须由适当的释放函数或DeleteObject函数释放.必须从绘制DC中取消选择对象.
问候.
There is a massive lost of GDI objects in your program. Use the task manager to observe the usage of GDI objects in your application.
These objects can be a result of the functions:
CreateBrush, CreatePen, CreateIcon, CreateCursor, CreateBitmap and so on.
All these objects MUST be released by the appropiate release function or DeleteObject function. The objects must be unselected from the paint dc.
Regards.


这篇关于我的Windows应用程序的特殊问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆