Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wierd PK Bug
Message
From
02/08/2002 12:38:29
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
01/08/2002 15:30:17
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00684957
Message ID:
00685538
Views:
27
Yep, bugs that don't show when you're debugging are always the toughest to exterminate.

You might try adding a wait window call with ALIAS() before and after your calls to cSelect:
WAIT WINDOW ALIAS() + ' is the alias before cSelect creation.'

CREATEOBJECT('cSelect', 'YourAliasName')

WAIT WINDOW ALIAS() + ' is the alias after cSelect creation.'
Since you won't have your debugger up, maybe it will trick the problem into rearing its ugly head just enough so you can start figuring out what's actually happening.

---J

>Jason,
>
>Thanks for thoughts. I am calling new records through the "new" button from the cAdminToolbar class, which calls the new() of the form (_screen.activeform.new() I believe). It does make a call to WriteBuffer first, which could be a culprit I suppose. Need to look at that in more detail.
>
>As far as the correct business object being the primary business object - yes, it is. I checked that a gazillion times!
>
>The part that throws me is I've stepped through the code a dozen times - from thisform.new() through to the end. I've gone through just about every line (EXCEPT the cSelect code). It shouldn't be switching alias' anywhere I can see (and as I said, it never happens while stepping through the code).
>
>Thanks again for the ideas. If anything else comes to mind (even a month from now!) please let me know. They can live with the band-aid till I figure this out!
>
>Take care,
>
>David
Previous
Reply
Map
View

Click here to load this message in the networking platform