473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unknown delay

Hi

I'm writing graph drawing application, and 've encountered a problem which i
dont know how to solve.

There is a function in my app, which reads graph parameters from file
(simple File/Open). For huge graphs it takes some time to read whole file
and attach
read data to appropriate data structure. So, for those bigger graphs i've
encounered something like this:
After clicking File / Open and selecting a file in modal dialol, void Load()
function is being called, it reads the file, fills the data structures of
the graph and terminates. The client is beind redrawn, and here my message
handler for clicking in File->Open (OnFileOpen()) terminates. The
application should be ready to interact with user normally at this moment.
But for about 3 seconds (on my AMD Athon 1GHz) it "hangs". It looks as the
main window would be disabled, but its not. After that delay everything is
normal, except that each message the user's generated when app was not
reacting, is being processed now (after the delay).

I have no idea what's the cause. I've debugged that function, and everything
seems ok.
I've added message processing to my function but it didn't help.

I'd be grateful for any help.

Than

I'm using Ms Visual C++ 6.0.
Jul 19 '05 #1
1 1810
"Than" <th**@gazeta.pl> wrote...
I'm writing graph drawing application, and 've encountered a problem which i dont know how to solve.

There is a function in my app, [...]
But for about 3 seconds (on my AMD Athon 1GHz) it "hangs". It looks as the
main window would be disabled, but its not. After that delay everything is
normal, except that each message the user's generated when app was not
reacting, is being processed now (after the delay).

I have no idea what's the cause. I've debugged that function, and everything seems ok.
I've added message processing to my function but it didn't help.


Two suggestions: read FAQ section 5, question 5.8. If you think that the
problem is in _your_ code, we would need to see the code. However, just as
you suspect, the problem is likely elsewhere. Then we cannot help and the
best you can do is to ask in a newsgroup where opening file dialogs and
hanging windows would be on topic -- comp.os.ms-windows.programmer.win32.

Best of luck!

Victor
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Des L. Davis | last post by:
System: Dell PowerEdge Server with 3 GB RAM, 2.4 GHz Celeron Software: Microsoft SQL Server 2000 Enterprise running on Windows 2003 Server Software: Microsoft SQL Server 2000 Enterprise running on...
6
by: lucifer | last post by:
hi i need to insert delay in my program what function should i use the old delay is not supported by the VC6
20
by: Doug Thews | last post by:
I ran into an interesting re-pain delay after calling the Abort() method on a thread, but it only happens the very first time I call it. Every time afterward, there is no delay. I've got a...
11
by: Maheshkumar.R | last post by:
Hi groups, How i can introduce some milliseconds delay in application. How i can do achieve this... let me clearly say... (1) I'm displaying slices of medical images. For framerate - for...
7
by: mfeingold | last post by:
I am working on a system, which among other things includes a server and a ..net control sitting in an html page and connected to the server. I ran into a couple of problems, you guys might have...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I make a 10 second delay? ----------------------------------------------------------------------- There...
3
by: phocis | last post by:
I wrote a pair of functions to enable scoped or referenced setTimeout calls. I did this because I have an object factory that creates multiple objects and those objects need to delay a few calls on...
4
by: puntino | last post by:
Hi I have created my Alarm, at compile time I don't have any problem, but at run time I receive the follo wing messages: Exception in thread "main" java.lang.NullPointerException at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.