#1  
Old 4th June 2007, 11:48 PM
Alexandre Eduardo.·.
 
Posts: n/a
Default access violation

I have a NX table, then I copy the structure to a ClientDataset and try use
it. Using the code bellow, it raises an access violation at
NexusDB206db70.Bpl. It only happens with a table with Blob Fields used to
store files and images. The same code
worked previously with FF1.

Someone could help me?

Thanks
Alexandre.·.
Teresópolis, Brazil

------> Code

for Index := 0 to nxTable1.Fields.Count -1 do
if nxTable1.Fields[Index].FieldKind = fkData then
begin
Field :=
TFieldClass(nxTable1.Fields[Index].ClassType).Create(ClientDataSet1);
Field.Size := nxTable1.Fields[Index].Size;
Field.FieldKind := nxTable1.Fields[Index].FieldKind;
Field.FieldName := nxTable1.Fields[Index].FieldName;
Field.DataSet := ClientDataSet1;

if Field is TBlobField then
Field.SetFieldType(nxTable1.Fields[Index].DataType);
end;

ClientDataSet1.CreateDataSet; // ---> In this line the app crashes
ClientDataSet1.Open;
Henrique Rebello.·. AssinaturaAlexandre Eduardo Costa .·. Gerente de
Desenvolvimento Shop (21)2643-9520 - R. 9633 www.alterdata.com.br


  #2  
Old 6th June 2007, 09:34 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: access violation

Alexandre Eduardo.7. wrote:

> I have a NX table, then I copy the structure to a ClientDataset and try use
> it. Using the code bellow, it raises an access violation at
> NexusDB206db70.Bpl. It only happens with a table with Blob Fields used to
> store files and images. The same code
> worked previously with FF1.
>
> Someone could help me?


I'd like to help you but am not sure how to reproduce that. Can you upload a
small compilable example?


--

Hannes Danzl [NexusDB Developer]
Newsgroup archive at http://www.tamaracka.com/search.htm
  #3  
Old 7th June 2007, 12:02 AM
Alexandre Eduardo.·.
 
Posts: n/a
Default ClientDataset error with nxTable

I´ve already posted a souce code to the public.binaries that reproduces the
problem.

Regards,
Alexandre
Brazil


  #4  
Old 7th June 2007, 05:16 AM
Bill Mullen
 
Posts: n/a
Default Re: access violation

>I have a NX table, then I copy the structure to a ClientDataset and try use
>it. Using the code bellow, it raises an access violation at
>NexusDB206db70.Bpl. It only happens with a table with Blob Fields used to
>store files and images. The same code
>worked previously with FF1.
>
>Someone could help me?
>
>Thanks
>Alexandre.·.
>Teresópolis, Brazil
>
>------> Code
>
> for Index := 0 to nxTable1.Fields.Count -1 do
> if nxTable1.Fields[Index].FieldKind = fkData then
> begin
> Field :=
>TFieldClass(nxTable1.Fields[Index].ClassType).Create(ClientDataSet1);
> Field.Size := nxTable1.Fields[Index].Size;
> Field.FieldKind := nxTable1.Fields[Index].FieldKind;
> Field.FieldName := nxTable1.Fields[Index].FieldName;
> Field.DataSet := ClientDataSet1;
>
> if Field is TBlobField then
> Field.SetFieldType(nxTable1.Fields[Index].DataType);
> end;
>
> ClientDataSet1.CreateDataSet; // ---> In this line the app crashes
> ClientDataSet1.Open;
>Henrique Rebello.·. AssinaturaAlexandre Eduardo Costa .·. Gerente de
>Desenvolvimento Shop (21)2643-9520 - R. 9633 www.alterdata.com.br
>


While you are at it, you may want to consider the 2.07 update since
you are using Blobs!


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
access violation in dcc70.dll Alain Schellinck nexusdb.public.support 6 17th November 2009 06:01 PM
Re: Access Violation Eivind Bakkestuen [NDD] nexusdb.public.support 1 29th May 2007 02:11 AM
Access Violation in Nexus 1.08 Arturo Monge nexusdb.public.support 9 9th September 2006 02:51 AM
v2.02 Access Violation David Charron nexusdb.public.support.sql 1 14th September 2005 12:30 PM
Access violation in nxServer 1.3.01 Dirk Sommerlinck nexusdb.public.support 1 10th December 2003 09:26 AM


All times are GMT +11. The time now is 06:15 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.