Board index » cppbuilder » Strange problem

Strange problem


2003-07-23 05:57:14 AM
cppbuilder51
Hi folks!
I have a strange problem with the C++Builder 6 IDE. I have developed a
wizard (PaletteBar) which is distributed as a BPL-file. The wizard is
written in D6/7 and runs there without any problem. Normally I can load a
D6 BPL in to CB6 and use it there (PaletteBar before Version 3.00 did so).
The new version 3.00 of PaletteBar (including Docking support and others)
comes now up with an error in the CB6 IDE (translation from the german error
text):
Registerprocedure pb_main.Register in package <youknowwhat>has caused a
EReadError: Error reading ImageList->Bitmap. ImageList data could not read
from stream.
This happens when I call the Create function of the main form:
procedure Register;
begin
// Stuff for docking
RegisterFieldAddress (cWizardName, @FPaletteBar);
RegisterDesktopFormClass (TPaletteBarForm, cWizardName, cWizardName);
// create the main form
FPaletteBar:= TPaletteBarForm.Create (Application);
end;
The OnCreate Event is never fired, the error above is happend before.
When I delete the bitmaps in the ImageList, the wizad is loaded by CB6
without any problem, and all functions are working well. The same BPL
loaded with D6 runs also without any problem.
Has anybody a hint for me whats going on, and how can I solve this?
Helli
 
 

Re:Strange problem

"Peter Hellinger" < XXXX@XXXXX.COM >wrote in message
Quote
Has anybody a hint for me whats going on, and how can I solve this?
I've seen these errors before when loading an image list that was created
and saved using an IDE being run in Windows XP themed mode. However, I
would have thought that the Delphi6 IDE would {*word*88} the same as BCB6 did.
- Clayton
 

Re:Strange problem

"Clayton Arends" < XXXX@XXXXX.COM >wrote
Quote
I've seen these errors before when loading an image list that was created
and saved using an IDE being run in Windows XP themed mode. However, I
would have thought that the Delphi6 IDE would {*word*88} the same as BCB6 did.
Thank you, that was the right tip!
Helli
 

{smallsort}

Re:Strange problem

Hi All,
I use the clientdataset(cdsQuery) to call the datasetprovider(dspquery)
to update the fields. There is no problem using interbase 6.5, but SQL200. I
use try....except, there is no problem exceptional error prompt. but the
errorcount is 1 when i use the following command.
database1.connected := true;
database1.StartTransaction;
try
dspQuery.ApplyUpdates(Submit,0,ErrorCount);
database1.Commit;
except
on E:Exception do
begin
SHOWMESSAGE(E.MESSAGE);
Result := e.message;
database1.rollback;
end;
end;
I wish to know what is the reason and how to know that error where the
errorcount is 1.
PS the table structure is same in interbase and sql2000.
Thank all,
 

Re:Strange problem

Hi there,
Iam using D6.
After creating a form I perform the following actions
1) edit1.clear;
2) edit3.clear;
3) edit4.clear;
4) edit5.clear;
5) edit6.clear;
6) edit8.clear;
7) edit9.clear;
8) memo1.clear;
for some strange reason I get a (consequent) error on line 7, 'edit9.clear'.
The strange thing is that when remove line 7 then I get the same error on
line 6, etc etc, When inserting a new line 8 containing 'edit10.text' I get
the error on that line .............
I only get this error on one specific form. There rest of my form's are
fine.
The precise error is : Project 2004.exe raised exeption class
Eaccesviolation with message 'accesviolation at adres.........
Is there something that I miss or what !?!
Kind regards Erik
 

Re:Strange problem

"ErikSw" < XXXX@XXXXX.COM >wrote
Quote
I am using D6.
After creating a form I perform the following actions
1) edit1.clear;
...
7) edit9.clear;
8) memo1.clear;
for some strange reason I get a (consequent) error ...
The precise error is : Project 2004.exe raised exception class
Eaccesviolation with message 'accesviolation at address ....
Erik, If you could make very small project demonstrating that
error and post a zip of all of its source files to the attachments
forum, then it would help a lot to diagnose your problem.
Regards, JohnH
 

Re:Strange problem

And by the way, this is not the best group for posting
this problem.
Forum borland.public.delphi.language.delphi.win32
would have been better. Regards, JohnH
 

Re:Strange problem

Hi,
I am using Delphi 6 Enterprise (with the latest updates).
I am connected via a TADOTable to an access database table.
My table has approx. 150 records in it, with an autoincrementing
id-field, called ArchiveID as the primary key.
When I execute the following code:
if tblArchive.Active = false then
tblArchive.Open;
tblArchive.Last;
showmessage(tblArchive.fieldbyname('ArchiveID').asstring);
Now instead of getting a message showing '150' I am getting a message showing '94'. I checked in my table and I have sequencial records from 1 to 150.
Why when I call the last procedure does it not position itself on the last record in the table, in my case the record with an ArchiveID=150??
Many thanks for you help
 

Re:Strange problem

jason wrote:
Quote
Why when I call the last procedure does it not position itself on the last record in the table, in my case the record with an ArchiveID=150??
If you want to /guarantee/ a particular order, use a TADODataset,
with an ORDER BY clause in the SQL statement. Accept no
substitiutes ;-)
--
jc
Remove the -not from email
 

Re:Strange problem

"Jeremy Collins" < XXXX@XXXXX.COM >wrote in message
Quote
jason wrote:

>Why when I call the last procedure does it not position itself on
the last record in the table, in my case the record with an
ArchiveID=150??
Quote

If you want to /guarantee/ a particular order, use a TADODataset,
with an ORDER BY clause in the SQL statement. Accept no
substitiutes ;-)

--
jc

Remove the -not from email
Jeremy is correct. SQL guarantees no ordering unless you use the
ORDER BY clause on a SELECT. You are positioning to the last physical
record in the table. That has nothing to do with key order.
- Arnie
 

Re:Strange problem

You are positioning to the last physical
Quote
record in the table. That has nothing to do with key order.

- Arnie
Arnie, how then using a TADOTable component can I position myself at the last record in a table with an index/key?
 

Re:Strange problem

Quote
If you are using a TadoTable set the Indexname to the index of your Primary key
field to order by that field
--
Brian Bushay (TeamB)
XXXX@XXXXX.COM
Thanks Brian, but I get the same result???? It's really wierd.
Could it be anything else??
Cheers,
Jason.
 

Re:Strange problem

jason wrote:
Quote
You are positioning to the last physical

>record in the table. That has nothing to do with key order.
>
>- Arnie


Arnie, how then using a TADOTable component can I position myself at the last record in a table with an index/key?
Because an index contains an implicit order - that's
the whole point. You were simply displaying the table
in it's "raw" order.
The Access GUI may display the table in what you
perceive to be the "correct" order, but that doesn't
mean it's actually stored that way, or that an ADO
recordset will show the data in the same order.
Outside of MS, no-one really knows the structure of an
MDB, but it's likely that a new record may be placed
not at the "end" of the table, but placed in a position
where a previous record was deleted.
Like I said, use an ORDER BY clause.
--
jc
Remove the -not from email
 

Re:Strange problem

Hi
I have an application, D7, BDE and Paradox, install on a local network.
The network include one main computer with the application and the data,
and 3 other station.
I check and double check that all the BDE setting are ok (the path, the net
dir
and the local share) all are directed to the main computer. The application
too
is installed only on the main computer and all the others have only
shortcuts.
Now to the problem: the application run fine on the main computer and on
2 station. Only one computer raise, on some modules, error messages like,
index out of date or index doesn't exist, and on others modules is ok.
There is only one Alias for all the application.
I don't think it should matter but the problematic computer work on WinXP,
and all the others with Win98.
Any suggestion will be appreciated
Thanks Sorin
 

Re:Strange problem

I have a problem that is annoying at work and a killer at home.
at work:
I have dual head using onboard i845 APC for left monitor and PCI ATI
Xpert 128 for the right.
In the IDE I have a problem of dialog boxes not having the text if they
display on the left monitor but I can drag them to the right and see
what they say. (Like I said "annoying")
at home:
I have a dual head using an AGP ATI Radeon & PCI ATI 7000
I get NO text anywhere in the ide.
Project Manager
Tabs
Object Inspector
Project Options
...
Do you see where I am going with this?
Has anyone ever seen this before?
TIA
Randy