Solved

Error Creating Form

Posted on 1997-07-29
4
943 Views
Last Modified: 2012-08-14
I have just had to re-install windows and delphi after my system files became corrupted and now one of my forms in my delphi 2.01
project will not open.

I get the message cannot open form - unspecified error

I have reinstalled all the components for the form but I still cannot load it up. When the program runns it works ok until I get an interaction between the ChartFX and a VCFormula 1 table at which point I get an  Exception - EAccessViolation

Anybody have a solution?
0
Comment
Question by:essbb
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
StevenB earned 50 total points
ID: 1340160
 Beware the Formula1 component, all is not as it seems. This component forms the backbone of our project, a decision we made some time ago, but are now starting to regret. The component behaves in a strange manner when run through Delphi. The most significant problem being that it generates access violations when its maximum values are exceded. (The maximum value is about 9.9e301 as I recall, it's in the help file under specifications). It does much the same when a single value greater than about 1e19 is entered into a formula.
  This is not the behaviour which I expected from a component that I'd payed a significant amount of money for, so I contacted the manufacturers. They told me that, in essence, their component did not specifically support Delphi (The decision to ship the trial version with D2 and 3 was made by Borland, who own the rights to the trial version) They said that the component works perfectly under VisualBasic (I checked, it seems to) and that it fullfilled all the criteria specified by Microsoft for the ActiveX specifications. They put the blame with Borland and suggested that the Delphi support for ActiveX controls was not quite 100%. (There was some explanation given here involving Windows DLLs and changing Microsoft standards, but it got a bit beyond my knowledge of the underlying windows structure). I phoned Borland and put these accusations to them. They were less than direct in their answers, refusing to confess guilt directly, however they did hint that the fault might be theirs. There was also some vague suggestion that an upgrade for D3 in early August might resolve some of these problems.
  That is the story so far as far as I can ascertain. The question of where it leaves you still remains. From what you've described it sound to me like you are exceding the maximum values in the F1Book and causing the Access violation. Check if this is the case, and if so try and put in some error trapping to prevent it happening. I know this is very difficult and we havn't managed to implement it in our project. If this is not what is occuring then feel free to reject the answer, but please heed my warning and tread very carefully with Formula1. It can cause huge problems if you let it.

  Steven.

  P.S. If you discover any more Bugs etc. with F1 and Delphi then I'd be most grateful if you could let me know. You're the only other person I've found who uses the component.

  stemail@dial.pipex.com
0
 

Author Comment

by:essbb
ID: 1340161
Steven,

Our project only uses Formula 1 in a small way the table size is about 6 x 20 cells and the values rarely exceed 100. The point at which the program crashes is when I set the chartfx.maxserie to formula1.maxcol.

My Main Problem is that I Cannot display the form in design mode, this is when I get the error.
0
 

Author Comment

by:essbb
ID: 1340162
If you delete all refernces to the table (from both the .pas & .dfm) and then add a new one it works!
0
 
LVL 4

Expert Comment

by:StevenB
ID: 1340163
F1UPDATE F1UPDATE F1UPDATE F1UPDATE F1UPDATE F1UPDATE F1UPDATE

  Recently discovered bug (Fortunately with very easy work around)

  Never do this : EntryRC := '';

  The empty string siezes the machine. Always check for empty strings.

  Steven.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

746 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

10 Experts available now in Live!

Get 1:1 Help Now