Showing posts with label rda. Show all posts
Showing posts with label rda. Show all posts

Tuesday, March 27, 2012

Abnormal RDA.pull termination

Hi ,.

I am facing some issues with my RDA app.

The process of events are something like below:

1) The program shows a set of options in a combobox.Then navigate to the next page . After some processes, it should come back to the form with combobox.

2)The datasource of combobox is a table which is pu

lled down eachtime when the page is loaded.

The program works fine when the page is loaded for the first time.But on second time , exactly on rda.Pull mthod it terminates even without an error message.

The local db is deleted before each pull operation.

if(File.Exists("\\My Documents\\Rda.sdf"))

File.Delete(\\My Documents\\Rda.sdf);

The rda pull line is :

rda.Pull("Stores", "select * from Stores", rdaOleDbConnectString, RdaTrackOption.TrackingOff);

rda.Dispose();

Can anyone tell me what is going wrong....?

Hi,

I found the answer.

The issue was with the RDA object that was created in the original form.

Initially I forgot to dispose the rda object after pull. i.e,

rda.Dispose();

When I am returning to the same form this object reference was in conflict with the new one during the second RDA pull method.

When I added the RDA dispose code , all was working well.

Thank you!

Monday, March 19, 2012

a strange problem with RDA

Hello,

I have written a program for WinCE with .NET. In one of the forms, program gets data from the sql server with RDA. It works fine..the users get data.one two three.....but at 16th or 17th or 18th try an error occurs:

"SQL Mobile encounteres some problems..."

What does it mean? It gets data 15 times but after that it gets error....What is the problem with that?

I'm really confused...

Thanks in advance.

I tried to free the resources like RDA object and other SQL CE objects and it worked...