Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User-interface error in in-process DLL
Message
From
01/07/1999 20:33:36
 
 
To
01/07/1999 15:56:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00236539
Message ID:
00236773
Views:
11
>>This is my first attempt at creating a DLL. Of course it's not going smoothly. I'm getting 1031: User-interface operation not allowed at this time.
>>
>>I understand that I can't have a user-interface in an in-process DLL. The line of code that it's choking on is:
>>
>>lnfields = afields(lafields)
>>
>>What on this line would cause a UI error?
>>
>>paul
>
>I think Jim is correct. The error method in my COM DLLs write error information out to a text file using text merge. You should also look at COMRETURNERROR().

Actually, this ones a little trickier. AFIELDS, like a few other VFP data functions (to my infinite frustration) doesn't throw an error when there is no table open in the current area, it displays an Open dialog. Only after cancelling put of the dialog does the error get thrown.

Paul, to solve your problem, just fix your code and make sure that there is a table open in the current work area. To try to avoid future issues like this, you can see if SYS(2335) will disable this dialog in your dll server (it is really meant for exe servers, but it might do the trick).
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform