Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
On migrating an application from Powerbuilder 11 to powerbuilder 12.6, few external functions are not working as they worked earlier and the application crashes.

The external function calls a "*.dll" which is generated by C code. On invoking the function the application crashes with the error - "Unhandled win 32 Exception".

The external dll has db handler and window handler to copy the data to the clipboard.

The same dll works fine in Powerbuilder 11 but fails in Powerbuilder 12.6

While migrating powerbuilder to 12.6 is there anything need to be done for external functions and window handler dlls?

Compilation and build was done successfully. On accessing specific function the mentioned error occurred and the application was crashed.

In PB 11.0, the SQLCAhandle value ranges around 130000000 while debugging all the time (For eg. 132149016).
Whereas in PB 12.6, the SQLCAhandle value ranges around 40000000 (For eg.43671880).

During migration do we need to make any changes for sql handlers to fetch the correct values to populate the data properly?

If so what configuration changes should be done? Could you please let us know what documentation you referred earlier?
Posted
Updated 25-Nov-15 23:48pm
v3
Comments
Richard MacCutchan 26-Nov-15 3:23am    
Which dll file, what is the exception?
Member 11918152 26-Nov-15 4:22am    
An application dll - developed by C code (it has SQL handler and window handler),
It throws Unhandler win 32 exception on invoking the external function
Richard MacCutchan 26-Nov-15 4:42am    
Then use your debugger to find out what the exception is, and where it occurs.

1 solution

Migrating to a newer version is the normal in the Sofware industry. It has more features, less bugs and more comfort.

In your case you need a newer dll which works with your code. Are you sure, that isnt some configuration error, as missing dlls or rights?

Check the documentation for details, but if it compiles everything should be fine.
 
Share this answer
 
Comments
Member 11918152 26-Nov-15 4:18am    
Compilation and build was done successfully. On accessing specific function the mentioned error occurred and the application was crashed.

In PB 11.0, the SQLCAhandle value ranges around 130000000 while debugging all the time (For eg. 132149016).
Whereas in PB 12.6, the SQLCAhandle value ranges around 40000000 (For eg.43671880).

During migration do we need to make any changes for sql handlers to fetch the correct values to populate the data properly?

If so what configuration changes should be done? Could you please let us know what documentation you referred earlier?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900