Solved

Scrolling big documents

Posted on 2000-03-18
7
160 Views
Last Modified: 2013-11-20
In several programs I've written in Visual C++ version 6 under Windows 98 I find that I cannot scroll document larger that approx CSize (*,4500), when using MM_TEXT. Using 5000, for example, causes a system crash. No warnings when in debug mode.
0
Comment
Question by:mgordon
  • 3
  • 2
  • 2
7 Comments
 
LVL 30

Expert Comment

by:Zoppo
ID: 2635204
Could you post some peace of code where it crashes?
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 150 total points
ID: 2638303
In Windows 98 coordinates are limited to 16bits.  This is probably related to your problem.

Some into about the message that appears when the crash hppens would probably help .. as would some code.

0
 

Author Comment

by:mgordon
ID: 2639376
Adjusted points from 50 to 150
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:mgordon
ID: 2639398
Sorry, No message, the system just locks up.
I can't tell where it crashes as the system just locks up. I get a vertical white line down the screen and then nothing works.
If the document .cy size is set to 5000 everything is fine until I scroll nearly to end of the document then the system locks. If I set the document .cy to 4500 (or less) no problem.
This gives a document much much shorter than those possible in the Visual C++ editor. It certainly gives the impression that I've exceed some max value or run out of memory, but I can't find a value that gets too big.
Hope this helps. Mike Gordon.
0
 

Author Comment

by:mgordon
ID: 2639409
Sorry,
I can't tell where it crashes as the system locks up. I get a vertical white line down the screen and then nothing works.
If the document .cy size is set to 5000 everything is fine until I scroll nearly to end of the document then the system locks. If I set the document .cy to 4500 (or less) no problem.
Hope this helps. Mike Gordon.
0
 
LVL 30

Expert Comment

by:Zoppo
ID: 2639439
First, why did you accept this answer if it doesn't help you anything??? Did you read the EE-guidelines or EE-help?

BTW, what kind of drawing occurs for the document in the view's ? Is it that you're creating a bitmap in memory with the size >4500 pixels? I once had problems with creating thus large bitmaps (reproducable blue screen on a IBM LapTop running NT4) which seemed to be hardware (graphic card) dependant. Neither MicroSoft nor IBM could help me to solve the problem so I had to redesign my application to use an array of smaller bitmaps.

ZOPPO
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2639913
I didn't even post it as an answer.  Guess he must have been impressed?
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now