General information
Category:
Visual FoxPro and .NET
Rick,
Thanks for the continued help. I believe you are on the right track here, threading is my issue, and I have re-created your the example on your web page. I created a vb.net dll with 1 form and is run by your example 'runform' procedure, starting a new thread.
I then created a simple form in VFP9 with 1 button that creates this .net object and executes the runform method. Works as described. No problems.
Now I created a VFP9 exe out of this. The main prg looks like this:
do form test
read events
In form test, there is 1 button that creates the .net object and brings up the form. When I build and execute this in the VFP IDE, it runs fine. When I run the exe from Windows explorer, it errors with :
ole error code 0x8007000b An attempt was made to load a program with an invalid format.
WTF? Am I missing some code that needs to run in this VFP exe when it runs outside of the IDE?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only