Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Windows
 ActiveX Controls
 ActiveX problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nathalie

2 Posts

Posted - 22 Mar 2004 :  11:12:23  Show Profile  Reply with Quote
I use the real-time graphics Active X Control (WIN-AXC-200) in my software. Sometimes, this software crashes and this message appears :
"Error building a graph - access violation at 1e03bae". It seems that the problem occurs during the first refresh of the Active X meter (with the function "UpdateDynData").
My software runs on a computer with Windows NT4.0

What can I modify in my progran, in order to solve this problem ?

Thanks.

quinncurtis

1164 Posts

Posted - 22 Mar 2004 :  12:32:33  Show Profile  Reply with Quote
In any supsequent postings please specify what Active control you are using. The WIN-AXC-200 software includes many controls. Also specify the compiler and programming language that you are using.

Odds on you have the UpdateDynData called in a timer event that is independent of the creation of the control. The UpdateDynData is probably being called before or while the control is being instantiated. The UpdateDynData method cannot be called until the control is visible on the screen for the first time. If you start everything when the program starts, the timer event is probably being called before the operating system manages to place the ActiveX control in the display window.

The RT controls have an event named DrawReady. This event is called when it us OK to update the control, either using UpdateDynData, or UpdateGraph. You should be able to add this event to your program, and set a flag that indicates that it OK to update the control using UpdateDynData. Our examples usually enable the upate timers at the end of the FormLoad event, after the control properties have been initialized. Using the DrawReady event to enable the timers is a better technique.





Go to Top of Page

nathalie

2 Posts

Posted - 28 Jun 2004 :  05:40:22  Show Profile  Reply with Quote
Thank you for your answer.

I tried to do what you told me but I didn't find the event DrawReady for the controls RTMETERX and SCROLLX.

I use the Active X Control WIN-AXC-200 Version 1.0 (Part number RL998-100), with the language Visual Basic 5 and Windows NT 4.0.

What can I do ?
Go to Top of Page

quinncurtis

1164 Posts

Posted - 28 Jun 2004 :  08:37:35  Show Profile  Reply with Quote
The DrawReady event should be there. Can you identify when you purchased the software and if you are the original registered user of the software ?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07