[VSDK PB] 1.9.8b17 * Followup *

Totte Alm totte at code66.se
Thu Jul 24 16:15:28 CDT 2003


torsdagen den 24 juli 2003 kl 15.03 skrev Totte Alm:

> Hello Ruslan,
>
> I'm trying to find out why my App doesnt behave correctly when using  
> VSDK 1.9.8b17 and GCC 3.3, but behaves OK under VSDK 1.9.7 and GCC 3.1
>
> The place where it fails is when I create Two cursors, that points the  
> the same data, and steps those cursors to compare records with each  
> other, to qualify which recods can be  put into a merge record.
> What bothers me is that is this:
>
> Pieces of code:
> // Do the two selects
> mc1 = db->SqlSelect("SELECT recid, HID, Name, bundlename, NameChanged,  
> IsGoverner, totalshares, "
> "bundleid, isbundled, isinsider, totalvotes FROM HolderTable WHERE  
> bundlename = '' ORDER BY Name ASC, HID ASC , totalshares DESC" );
> mc2 = db->SqlSelect("SELECT recid, HID, Name, bundlename, NameChanged,  
> IsGoverner, totalshares, "
> "bundleid, isbundled, isinsider, totalvotes FROM HolderTable WHERE  
> bundlename = '' ORDER BY Name ASC, HID ASC , totalshares DESC" ):
>
> This code doesnt seem to work under 1.9.8 GCC 3.3:
> 	// Position the second
> 	*(mc2->GetULongField(8))=mTaskData->bundleCounter;
> 	*(mc2->GetShortField(9))=1;
> 	LOG(TRCB_STD0, "Bundle set with Group=%ld", mTaskData->bundleCounter);
> 	mc2->Update();
>
This seems to work though:
		// Position the first
		*(mc1->GetULongField(8))=mTaskData->bundleCounter;
		*(mc1->GetShortField(9))=1;
		mc1->Update();

So it ONLY updating the second Cursor that fails.
Rings any bells for anyone???

// Totte

> The Cursors record  isnt Updated, so it seems like a problem either  
> with 1.9.8b17 VSDK PB, or with the GCC 3.3 Build if it.
>
> // Totte
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
>
------------------------------------------------------------------------ 
--------------------------
!YET the successor of .NET



More information about the Valentina mailing list